Browse Source

审核数量修改

hym 3 years ago
parent
commit
360aa2cf27

+ 1 - 1
zoniot-rmcp/zoniot-rmcp-core/src/main/java/com/zcxk/rmcp/core/mapper/MeasurementInstanceMapper.xml

@@ -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">