dingxin 6 years ago
parent
commit
d93314efa0

+ 0
- 9
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpRentalHouse.java View File

89
      */
89
      */
90
     private String mattress;
90
     private String mattress;
91
 
91
 
92
-    /**
93
-     * 衣柜 1 有
94
-     */
95
-    private String wardrobe;
96
-
97
     /**
92
     /**
98
      * 餐桌
93
      * 餐桌
99
      */
94
      */
129
      */
124
      */
130
     private String smartLock;
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 View File

105
      */
105
      */
106
     private List<TpShopType> tpShopTypeList;
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
     public List<TpShopType> getTpShopTypeList() {
121
     public List<TpShopType> getTpShopTypeList() {
109
         return tpShopTypeList;
122
         return tpShopTypeList;
110
     }
123
     }

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpShopServicelmpl.java View File

89
             for (TpShop tpShop : tpShopList) {
89
             for (TpShop tpShop : tpShopList) {
90
                 // 1 表示查询当前首页图片
90
                 // 1 表示查询当前首页图片
91
                 List<TpShopImg> tpShopImgList = tpShopImgMapper.selectShopIdCommunity(userElement.getCommunityId(), tpShop.getId(), 1);
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
             tpShopTypeList = tpShopTypeMapper.selectCommunityIdShop(userElement.getCommunityId());
96
             tpShopTypeList = tpShopTypeMapper.selectCommunityIdShop(userElement.getCommunityId());

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpShopTypeMapper.xml View File

117
   <select id="selectCommunityIdShop" resultMap="BaseResultMap">
117
   <select id="selectCommunityIdShop" resultMap="BaseResultMap">
118
     select
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
   </select>
121
   </select>
122
 
122
 
123
 </mapper>
123
 </mapper>