Ver código fonte

修改sql条件

xuefy 3 anos atrás
pai
commit
408d45d944

+ 1 - 1
sc-service/src/main/resources/mapper/credit/OwnCreditMapper.xml

@@ -252,7 +252,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="paramMap.idList != null  and paramMap.idList != ''">
                 and (b.zbi_id  IN (${paramMap.idList}) or  b.zbi_id  NOT IN (${paramMap.billIdList}))
             </if>
-            <if test="paramMap.idList == null  and paramMap.idList == ''">
+            <if test="paramMap.idList == null  or paramMap.idList == ''">
                 <if test="paramMap.billIdList != null  and paramMap.billIdList != ''">
                     and b.zbi_id  NOT IN (${paramMap.billIdList})
                 </if>