|
@@ -124,8 +124,8 @@
|
|
|
<update id="update">
|
|
|
update rmcp_measurement_instance
|
|
|
<set>
|
|
|
- <if test="planid != null">
|
|
|
- plan_Id = #{planid},
|
|
|
+ <if test="planId != null">
|
|
|
+ plan_Id = #{planId},
|
|
|
</if>
|
|
|
<if test="totalWaterMeters != null">
|
|
|
total_water_meters = #{totalWaterMeters},
|
|
@@ -165,7 +165,7 @@
|
|
|
</update>
|
|
|
<update id="modifyTheNumberOfAudits">
|
|
|
update rmcp_measurement_instance set number_of_water_meters_reviewed=
|
|
|
- number_of_water_meters_reviewed+#{size}
|
|
|
+ (select count(*) from rmcp_measurement_record where plan_id=#{id})
|
|
|
where id=#{id}
|
|
|
</update>
|
|
|
<update id="modifyAllTheNumberOfAudits">
|