|
@@ -66,7 +66,7 @@
|
|
|
<select id="getUserList" resultType="java.util.Map">
|
|
|
select a.meter_card_id,a.customer_no,b.customer_name,b.customer_address,a.quantity
|
|
|
from tf_ywys_bw_meter_read_plan a inner join tf_ywys_da_customer b on a.customer_no=b.customer_no
|
|
|
- where a.mr_flag = '1' and a.audit_flag='1' and a.cal_flag = '0'
|
|
|
+ where a.mr_flag = '1' and a.audit_flag='1' and a.cal_flag = '0' and a.cal_state='1'
|
|
|
|
|
|
<if test="companyBranch!=null and companyBranch!=''">
|
|
|
and a.company_branch=#{companyBranch}
|
|
@@ -82,7 +82,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getMeterCardIds" resultType="java.util.ArrayList">
|
|
|
- select meter_card_id from tf_ywys_bw_meter_read_plan where mr_flag='1' and audit_flag='1' and cal_flag='0'
|
|
|
+ select meter_card_id from tf_ywys_bw_meter_read_plan where cal_state='1' and mr_flag='1' and audit_flag='1' and cal_flag='0'
|
|
|
|
|
|
<if test="mrBooks!=null and mrBooks!=''">
|
|
|
and mr_book in(${mrBooks})
|