dingxin 6 years ago
parent
commit
48865ab00a

+ 8
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpShopTypeMapper.java View File

23
     int updateByPrimaryKey(TpShopType record);
23
     int updateByPrimaryKey(TpShopType record);
24
 
24
 
25
     /**
25
     /**
26
-     * 获取当前小区所有类型商铺
26
+     * 获取当前小区首页所有类型商铺
27
      */
27
      */
28
     List<TpShopType> selectCommunityIdShop(@Param("communityId") Integer communityId);
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 View File

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

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

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

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

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

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

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

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

120
     from  tp_shop_type where community_id = #{communityId,jdbcType=INTEGER} and source = 'sys'
120
     from  tp_shop_type where community_id = #{communityId,jdbcType=INTEGER} and source = 'sys'
121
   </select>
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
 </mapper>
129
 </mapper>