Explorar el Código

加入查询小区店铺的功能

java110 hace 3 años
padre
commit
ca4521e1c4

+ 10 - 0
java110-bean/src/main/java/com/java110/dto/shopCommunity/ShopCommunityDto.java

@@ -40,6 +40,8 @@ public class ShopCommunityDto extends ShopDto implements Serializable {
     private String statusCd = "0";
     private String rangeName;
 
+    private String returnTel;
+
 
     public String getCommunityName() {
         return communityName;
@@ -177,4 +179,12 @@ public class ShopCommunityDto extends ShopDto implements Serializable {
     public void setCodeName(String codeName) {
         this.codeName = codeName;
     }
+
+    public String getReturnTel() {
+        return returnTel;
+    }
+
+    public void setReturnTel(String returnTel) {
+        this.returnTel = returnTel;
+    }
 }

+ 3 - 1
java110-db/src/main/resources/mapper/store/StoreShopCommunityV1ServiceDaoImplMapper.xml

@@ -20,8 +20,10 @@
         select t.address,t.city_code,t.city_code cityCode,t.code_name,t.code_name
         codeName,t.community_name,t.community_name communityName,t.start_time,t.start_time
         startTime,t.status_cd,t.status_cd statusCd,t.shop_id,t.shop_id shopId,t.end_time,t.end_time
-        endTime,t.state,t.community_id,t.community_id communityId,t.message,t.sc_id,t.sc_id scId
+        endTime,t.state,t.community_id,t.community_id communityId,t.message,t.sc_id,t.sc_id scId,
+        s.shop_name shopName,s.return_link returnLink
         from s_shop_community t
+        left join s_shop s on t.shop_id = s.shop_id and s.status_cd = '0'
         where 1 =1
         <if test="address !=null and address != ''">
             and t.address= #{address}