|
@@ -141,7 +141,8 @@
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="deleteByInspectionId">
|
|
<delete id="deleteByInspectionId">
|
|
- DELETE FROM inspection_item
|
|
|
|
|
|
+ DELETE
|
|
|
|
+ FROM inspection_item
|
|
WHERE inspection_id_ = #{InspectionId}
|
|
WHERE inspection_id_ = #{InspectionId}
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
@@ -174,6 +175,9 @@
|
|
<if test="operation != null">
|
|
<if test="operation != null">
|
|
AND ii.operation_ = #{operation}
|
|
AND ii.operation_ = #{operation}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="ids != null">
|
|
|
|
+ AND FIND_IN_SET(ii.id_,#{ids})
|
|
|
|
+ </if>
|
|
<if test="startTime != null">
|
|
<if test="startTime != null">
|
|
AND i.month_ >= #{startTime}
|
|
AND i.month_ >= #{startTime}
|
|
</if>
|
|
</if>
|