Browse Source

修改sql条件

xuefy 3 years ago
parent
commit
408d45d944
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sc-service/src/main/resources/mapper/credit/OwnCreditMapper.xml

+ 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>