Parcourir la source

优化小区信息

java110 il y a 6 ans
Parent
commit
0b4145c9f3

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/repair/RepairDto.java

@@ -52,6 +52,7 @@ public class RepairDto extends PageDto implements Serializable {
     private String repairId;
     private String tel;
     private String state;
+    private String states;
     private String stateName;
     private String communityId;
     private String roomId;
@@ -279,4 +280,12 @@ public class RepairDto extends PageDto implements Serializable {
     public void setPhotos(List<PhotoVo> photos) {
         this.photos = photos;
     }
+
+    public String getStates() {
+        return states;
+    }
+
+    public void setStates(String states) {
+        this.states = states;
+    }
 }

+ 6 - 0
java110-db/src/main/resources/mapper/community/RepairServiceDaoImplMapper.xml

@@ -435,6 +435,9 @@
         <if test="state !=null and state != ''">
             and t.state= #{state}
         </if>
+        <if test="states !=null and states != ''">
+            and t.state in (#{states})
+        </if>
         <if test="communityId !=null and communityId != ''">
             and t.community_id= #{communityId}
         </if>
@@ -488,6 +491,9 @@
         <if test="state !=null and state != ''">
             and t.state= #{state}
         </if>
+        <if test="states !=null and states != ''">
+            and t.state in (#{states})
+        </if>
         <if test="communityId !=null and communityId != ''">
             and t.community_id= #{communityId}
         </if>