diff --git a/emis-biz/src/main/resources/mapper/EmisSettleSubBillMapper.xml b/emis-biz/src/main/resources/mapper/EmisSettleSubBillMapper.xml
index 1a3f53197..e3c72266d 100644
--- a/emis-biz/src/main/resources/mapper/EmisSettleSubBillMapper.xml
+++ b/emis-biz/src/main/resources/mapper/EmisSettleSubBillMapper.xml
@@ -113,11 +113,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- and b.settle_bill_no is null
+ and b.bl_merge='0'
+ and b.bl_confirm_center='1'
+ and b.bl_confirm_site='1'
+
- and b.settle_bill_no is not null
+ and b.bl_merge='1'
+ and b.bl_confirm_center='1'
+ and b.bl_confirm_site='1'
@@ -129,10 +134,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-
- and a.salesmen = #{params.salesmen}
+
+ and a.payment_type = #{params.paymentType}
+
and a.bl_special_quote = #{params.blSpecialQuote}
@@ -141,11 +147,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and a.calc_fee_type = #{params.calcFeeType}
-
- and a.payment_type = #{params.paymentType}
-
-
-
and a.send_date = ]]> #{params.beginSendDate}
@@ -234,13 +235,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- and b.settle_bill_no is null
+ and b.bl_merge='0'
and b.bl_confirm_center='1'
and b.bl_confirm_site='1'
+
- and b.settle_bill_no is not null
+ and b.bl_merge='1'
and b.bl_confirm_center='1'
and b.bl_confirm_site='1'
@@ -254,10 +256,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-
- and a.salesmen = #{params.salesmen}
-
-
and a.payment_type = #{params.paymentType}