dingxin 6 年之前
父節點
當前提交
48865ab00a

+ 8
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpShopTypeMapper.java 查看文件

@@ -23,7 +23,14 @@ public interface TpShopTypeMapper {
23 23
     int updateByPrimaryKey(TpShopType record);
24 24
 
25 25
     /**
26
-     * 获取当前小区所有类型商铺
26
+     * 获取当前小区首页所有类型商铺
27 27
      */
28 28
     List<TpShopType> selectCommunityIdShop(@Param("communityId") Integer communityId);
29
+
30
+    /**
31
+     *获取小区所有店铺
32
+     * @param communityId
33
+     * @return
34
+     */
35
+    List<TpShopType> selectCommunityIdShopAll(@Param("communityId") Integer communityId);
29 36
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpHotelServiceimpl.java 查看文件

@@ -60,7 +60,7 @@ public class TpHotelServiceimpl implements TpHotelServicel {
60 60
     public ResponseBean getHotelCommunity(UserElement userElement) {
61 61
         ResponseBean response= new ResponseBean<>();
62 62
         // 查询当前的酒店是否展示
63
-        TpHotel tpHotel = null;
63
+        TpHotel tpHotel = new TpHotel();
64 64
         String img = null;
65 65
         String  hotelSetting= tpHotelMapper.hotelSetting(userElement.getCommunityId());
66 66
         if (null != hotelSetting){

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpShopServicelmpl.java 查看文件

@@ -55,7 +55,7 @@ public class TpShopServicelmpl implements TpShopServicel {
55 55
                 }
56 56
             }
57 57
         }
58
-        List<TpShopType> tpShopTypeList = tpShopTypeMapper.selectCommunityIdShop(userElement.getCommunityId());
58
+        List<TpShopType> tpShopTypeList = tpShopTypeMapper.selectCommunityIdShopAll(userElement.getCommunityId());
59 59
         parameter.put("total", pageShopList.getTotal());
60 60
         parameter.put("list", tpShopList);
61 61
         parameter.put("tpShopTypeList",tpShopTypeList);

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpHotelRoomMapper.xml 查看文件

@@ -186,7 +186,7 @@
186 186
     where id = #{id,jdbcType=INTEGER}
187 187
   </update>
188 188
 
189
-  <select id="selectHotelRoomList" resultType="com.community.huiju.model.TpHotelRoom">
189
+  <select id="selectHotelRoomList" resultMap="BaseResultMap">
190 190
     select
191 191
     <include refid="Base_Column_List" />
192 192
     from tp_hotel_room

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TpShopMapper.xml 查看文件

@@ -265,7 +265,7 @@
265 265
     from tp_shop
266 266
     <where>
267 267
       <if test="houseName != null and houseName != ''" >
268
-        shop_name = #{houseName,jdbcType=INTEGER}
268
+         shop_name like concat('%',#{houseName},'%')
269 269
       </if>
270 270
       <if test="tpShopTypeId != null and tpShopTypeId != ''" >
271 271
        and shop_type_id = #{tpShopTypeId,jdbcType=INTEGER}

+ 6
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpShopTypeMapper.xml 查看文件

@@ -120,4 +120,10 @@
120 120
     from  tp_shop_type where community_id = #{communityId,jdbcType=INTEGER} and source = 'sys'
121 121
   </select>
122 122
 
123
+  <select id="selectCommunityIdShopAll" resultMap="BaseResultMap">
124
+    select
125
+    *
126
+    from  tp_shop_type where community_id = #{communityId,jdbcType=INTEGER}
127
+  </select>
128
+
123 129
 </mapper>