Sfoglia il codice sorgente

update 乐团巡查加,乐团主管名字

周箭河 4 anni fa
parent
commit
999ca9795a

+ 11 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/page/InspectionQueryInfo.java

@@ -23,6 +23,9 @@ public class InspectionQueryInfo extends QueryInfo {
 
 
     private Date endTime;
     private Date endTime;
 
 
+    @ApiModelProperty(value = "ids",required = false)
+    private String ids;
+
 	public String getOrganId() {
 	public String getOrganId() {
 		return organId;
 		return organId;
 	}
 	}
@@ -70,4 +73,12 @@ public class InspectionQueryInfo extends QueryInfo {
     public void setEndTime(Date endTime) {
     public void setEndTime(Date endTime) {
         this.endTime = endTime;
         this.endTime = endTime;
     }
     }
+
+    public String getIds() {
+        return ids;
+    }
+
+    public void setIds(String ids) {
+        this.ids = ids;
+    }
 }
 }

+ 5 - 1
mec-biz/src/main/resources/config/mybatis/InspectionItemMapper.xml

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