java110 4 anni fa
parent
commit
d139bb680d

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/community/CommunityDto.java

@@ -20,6 +20,7 @@ public class CommunityDto extends PageDto implements Serializable {
     private String nearbyLandmarks;
     private String cityCode;
     private String name;
+    private String nameLike;
     private String communityId;
     private String[] notInCommunityId;
     private String mapY;
@@ -240,4 +241,12 @@ public class CommunityDto extends PageDto implements Serializable {
     public void setTel(String tel) {
         this.tel = tel;
     }
+
+    public String getNameLike() {
+        return nameLike;
+    }
+
+    public void setNameLike(String nameLike) {
+        this.nameLike = nameLike;
+    }
 }

+ 4 - 1
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml

@@ -500,7 +500,10 @@
             and t.city_code= #{cityCode}
         </if>
         <if test="name !=null and name != ''">
-            and t.name like concat('%',#{name},'%')
+            and t.name = #{name}
+        </if>
+        <if test="nameLike !=null and nameLike != ''">
+            and t.name like concat('%',#{nameLike},'%')
         </if>
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}