|
@@ -165,7 +165,7 @@
|
|
|
</update>
|
|
|
<update id="modifyTheNumberOfAudits">
|
|
|
update rmcp_measurement_instance set number_of_water_meters_reviewed=
|
|
|
- (select count(*) from rmcp_measurement_record where plan_id=#{id})
|
|
|
+ (select count(*) from rmcp_measurement_record where plan_id=#{id} and approval_status=1)
|
|
|
where id=#{id}
|
|
|
</update>
|
|
|
<update id="modifyAllTheNumberOfAudits">
|