Selaa lähdekoodia

审核过的数据无需审核

hym 3 vuotta sitten
vanhempi
commit
371fc8a73b

+ 2 - 2
zoniot-rmcp/zoniot-rmcp-core/src/main/java/com/zcxk/rmcp/core/mapper/MeasurementRecordMapper.xml

@@ -133,14 +133,14 @@
     </update>
     <update id="auditWater">
         update rmcp_measurement_record set approval_status=1
-        where id  in
+        where approval_status=0 and id  in
         <foreach collection="list" item="item" open="(" close=")" separator=",">
             #{item}
         </foreach>
     </update>
     <update id="auditAllWater">
         update rmcp_measurement_record set approval_status=1
-        where plan_id =#{planId}
+        where approval_status=0 and plan_id =#{planId}
 
     </update>
     <update id="modifyTheAmountOfWater">