dingxin 6 years ago
parent
commit
a1312b3311

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

30
      * @param priceFluctuate
30
      * @param priceFluctuate
31
      * @return
31
      * @return
32
      */
32
      */
33
-    List<TpRentalHouse> getRentalHouse(String houseName, Integer rentalType, Integer houseType, Integer rentalPrice, Integer priceFluctuate);
33
+    List<TpRentalHouse> getRentalHouse(String houseName, Integer rentalType, Integer houseType, Integer rentalPrice, Integer priceFluctuate,Integer communityId);
34
 }
34
 }

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

84
      */
84
      */
85
     private String wardrobe;
85
     private String wardrobe;
86
 
86
 
87
+    /**
88
+     * 床垫 1 有
89
+     */
90
+    private String mattress;
91
+
92
+    /**
93
+     * 衣柜 1 有
94
+     */
95
+    private String wardrobe;
96
+
87
     /**
97
     /**
88
      * 餐桌
98
      * 餐桌
89
      */
99
      */
105
      * 洗衣机
115
      * 洗衣机
106
      */
116
      */
107
     private String washingMachine;
117
     private String washingMachine;
118
+    /**
119
+     * 冰箱 1 有
120
+     */
121
+    private String fridge;
122
+    /**
123
+     * 电视 1有
124
+     */
125
+    private String tv;
126
+
127
+    /**
128
+     * 智能锁 1有
129
+     */
130
+    private String smartLock;
131
+
132
+    /**
133
+     * 热水器 1 有
134
+     */
135
+    private String waterHeater;
108
 
136
 
109
     /**
137
     /**
110
      * 空调
138
      * 空调

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

38
         Map<String, Object> parameter = Maps.newHashMap();
38
         Map<String, Object> parameter = Maps.newHashMap();
39
         //使用分页插件
39
         //使用分页插件
40
         Page<TpRentalHouse> pageTpRentalHouseList = PageHelper.startPage(pageNum, pageSize);
40
         Page<TpRentalHouse> pageTpRentalHouseList = PageHelper.startPage(pageNum, pageSize);
41
-        List<TpRentalHouse> tpRentalHouseList= tpRentalHouseMapper.getRentalHouse(houseName,rentalType,houseType,rentalPrice,priceFluctuate);
41
+        List<TpRentalHouse> tpRentalHouseList= tpRentalHouseMapper.getRentalHouse(houseName,rentalType,houseType,rentalPrice,priceFluctuate,userElement.getCommunityId());
42
             // 把字符串转数组
42
             // 把字符串转数组
43
         for (TpRentalHouse tpRentalHouse:tpRentalHouseList){
43
         for (TpRentalHouse tpRentalHouse:tpRentalHouseList){
44
             String [] result = tpRentalHouse.getHouseLabel().split(",");
44
             String [] result = tpRentalHouse.getHouseLabel().split(",");

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

94
             // 查询当前商铺类型
94
             // 查询当前商铺类型
95
             tpShopTypeList = tpShopTypeMapper.selectCommunityIdShop(userElement.getCommunityId());
95
             tpShopTypeList = tpShopTypeMapper.selectCommunityIdShop(userElement.getCommunityId());
96
            for (TpShopType tpShopType:tpShopTypeList){
96
            for (TpShopType tpShopType:tpShopTypeList){
97
-               int a=tpShopType.getId().intValue();
97
+               int a=tpShopType.getSort().intValue();
98
              if (a == 1){
98
              if (a == 1){
99
                  //美食图片
99
                  //美食图片
100
                  List<String> tpShopTypeImg = new ArrayList<>();
100
                  List<String> tpShopTypeImg = new ArrayList<>();

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

31
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
31
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
32
     <result column="create_user" property="createUser" jdbcType="INTEGER" />
32
     <result column="create_user" property="createUser" jdbcType="INTEGER" />
33
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
33
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
34
+
35
+    <result column="mattress" property="mattress" jdbcType="VARCHAR" />
36
+    <result column="wardrobe" property="wardrobe" jdbcType="INTEGER" />
37
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
38
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
39
+    <result column="update_user" property="updateUser" jdbcType="INTEGER" />
34
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
40
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
35
   </resultMap>
41
   </resultMap>
36
   <resultMap id="ResultMapWithBLOBs" type="com.community.huiju.model.TpRentalHouse" extends="BaseResultMap" >
42
   <resultMap id="ResultMapWithBLOBs" type="com.community.huiju.model.TpRentalHouse" extends="BaseResultMap" >
507
       <if test="priceFluctuate == 2" >
513
       <if test="priceFluctuate == 2" >
508
         and  order by rh.rental_price  desc
514
         and  order by rh.rental_price  desc
509
       </if>
515
       </if>
516
+        and community_id = #{communityId}
510
         and rh.house_status = 1
517
         and rh.house_status = 1
511
     </where>
518
     </where>
512
   </select>
519
   </select>