Quellcode durchsuchen

优化 巡检路线查询功能

wuxw vor 6 Jahren
Ursprung
Commit
56496b0fd8

+ 10 - 0
java110-bean/src/main/java/com/java110/dto/inspectionRoute/InspectionRouteDto.java

@@ -20,6 +20,8 @@ public class InspectionRouteDto extends PageDto implements Serializable {
     private int seq;
     private String remark;
 
+    private String communityId;
+
     private String[] InspectionRouteIds;
 
     private Date createTime;
@@ -81,4 +83,12 @@ public class InspectionRouteDto extends PageDto implements Serializable {
     public void setInspectionRouteIds(String[] inspectionRouteIds) {
         InspectionRouteIds = inspectionRouteIds;
     }
+
+    public String getCommunityId() {
+        return communityId;
+    }
+
+    public void setCommunityId(String communityId) {
+        this.communityId = communityId;
+    }
 }

+ 5 - 5
java110-db/src/main/resources/mapper/community/InspectionRouteServiceDaoImplMapper.xml

@@ -26,7 +26,7 @@
         <if test="inspectionRouteId !=null and inspectionRouteId != ''">
             and t.inspection_route_Id= #{inspectionRouteId}
         </if>
-        <if test="seq !=null ">
+        <if test="seq !=null and seq != 0">
             and t.seq= #{seq}
         </if>
         <if test="remark !=null and remark != ''">
@@ -56,7 +56,7 @@
         <if test="inspectionRouteId !=null and inspectionRouteId != ''">
             and t.inspection_route_Id= #{inspectionRouteId}
         </if>
-        <if test="seq !=null ">
+        <if test="seq !=null and seq != 0">
             and t.seq= #{seq}
         </if>
         <if test="remark !=null and remark != ''">
@@ -84,7 +84,7 @@
         <if test="inspectionRouteId !=null and inspectionRouteId != ''">
             and t.inspection_route_Id= #{inspectionRouteId}
         </if>
-        <if test="seq !=null ">
+        <if test="seq !=null and seq != 0">
             and t.seq= #{seq}
         </if>
         <if test="remark !=null and remark != ''">
@@ -122,7 +122,7 @@
         <if test="newBId != null and newBId != ''">
             ,t.b_id = #{newBId}
         </if>
-        <if test="seq !=null ">
+        <if test="seq !=null and seq != 0">
             , t.seq= #{seq}
         </if>
         <if test="remark !=null and remark != ''">
@@ -152,7 +152,7 @@
         <if test="inspectionRouteId !=null and inspectionRouteId != ''">
             and t.inspection_route_Id= #{inspectionRouteId}
         </if>
-        <if test="seq !=null ">
+        <if test="seq !=null and seq != 0">
             and t.seq= #{seq}
         </if>
         <if test="remark !=null and remark != ''">