Browse Source

往来账款增加不等于99状态

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

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

@@ -252,11 +252,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 <!--                and b.zbi_id  NOT IN (${paramMap.billIdList})-->
 <!--            </if>-->
             <if test="paramMap.idList != null  and paramMap.idList != ''">
-                and (b.zbi_id  IN (${paramMap.idList}) or  b.zbi_id  NOT IN (${paramMap.billIdList}))
+                and (b.zbi_id  IN (${paramMap.idList}) or (b.zbi_id  NOT IN (${paramMap.billIdList}) and zbi_status != '99'))
             </if>
             <if test="paramMap.idList == null  or paramMap.idList == ''">
                 <if test="paramMap.billIdList != null  and paramMap.billIdList != ''">
                     and b.zbi_id  NOT IN (${paramMap.billIdList})
+                    and zbi_status != '99'
                 </if>
             </if>
             ORDER BY b.create_time DESC
@@ -302,11 +303,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 <!--                and b.zbi_id  NOT IN (${paramMap.billIdList})-->
 <!--            </if>-->
             <if test="paramMap.idList != null  and paramMap.idList != ''">
-                and (b.zbi_id  IN (${paramMap.idList}) or  b.zbi_id  NOT IN (${paramMap.billIdList}))
+                and (b.zbi_id  IN (${paramMap.idList}) or (b.zbi_id  NOT IN (${paramMap.billIdList}) and zbi_status != '99'))
             </if>
             <if test="paramMap.idList == null  or paramMap.idList == ''">
                 <if test="paramMap.billIdList != null  and paramMap.billIdList != ''">
                     and b.zbi_id  NOT IN (${paramMap.billIdList})
+                    and zbi_status != '99'
                 </if>
             </if>
             ORDER BY b.create_time DESC