dingxin 6 년 전
부모
커밋
d93314efa0

+ 0
- 9
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpRentalHouse.java 파일 보기

@@ -89,11 +89,6 @@ public class TpRentalHouse {
89 89
      */
90 90
     private String mattress;
91 91
 
92
-    /**
93
-     * 衣柜 1 有
94
-     */
95
-    private String wardrobe;
96
-
97 92
     /**
98 93
      * 餐桌
99 94
      */
@@ -129,10 +124,6 @@ public class TpRentalHouse {
129 124
      */
130 125
     private String smartLock;
131 126
 
132
-    /**
133
-     * 热水器 1 有
134
-     */
135
-    private String waterHeater;
136 127
 
137 128
     /**
138 129
      * 空调

+ 13
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpShop.java 파일 보기

@@ -105,6 +105,19 @@ public class TpShop {
105 105
      */
106 106
     private List<TpShopType> tpShopTypeList;
107 107
 
108
+    /**
109
+     * 商铺首页图
110
+     */
111
+    private String tpShopImgUrl;
112
+
113
+    public String getTpShopImgUrl() {
114
+        return tpShopImgUrl;
115
+    }
116
+
117
+    public void setTpShopImgUrl(String tpShopImgUrl) {
118
+        this.tpShopImgUrl = tpShopImgUrl;
119
+    }
120
+
108 121
     public List<TpShopType> getTpShopTypeList() {
109 122
         return tpShopTypeList;
110 123
     }

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpShopServicelmpl.java 파일 보기

@@ -89,7 +89,8 @@ public class TpShopServicelmpl implements TpShopServicel {
89 89
             for (TpShop tpShop : tpShopList) {
90 90
                 // 1 表示查询当前首页图片
91 91
                 List<TpShopImg> tpShopImgList = tpShopImgMapper.selectShopIdCommunity(userElement.getCommunityId(), tpShop.getId(), 1);
92
-                tpShop.setTpShopImgList(tpShopImgList);
92
+               TpShopImg tpShopImg= tpShopImgList.get(0);
93
+                tpShop.setTpShopImgUrl(tpShopImg.getImgUrl());
93 94
             }
94 95
             // 查询当前商铺类型
95 96
             tpShopTypeList = tpShopTypeMapper.selectCommunityIdShop(userElement.getCommunityId());

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpShopTypeMapper.xml 파일 보기

@@ -117,7 +117,7 @@
117 117
   <select id="selectCommunityIdShop" resultMap="BaseResultMap">
118 118
     select
119 119
     *
120
-    from  tp_shop_type where community_id = #{communityId,jdbcType=INTEGER}
120
+    from  tp_shop_type where community_id = #{communityId,jdbcType=INTEGER} and source = 'sys'
121 121
   </select>
122 122
 
123 123
 </mapper>