dingxin 6 vuotta sitten
vanhempi
commit
a1312b3311

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpRentalHouseMapper.java Näytä tiedosto

@@ -30,5 +30,5 @@ public interface TpRentalHouseMapper {
30 30
      * @param priceFluctuate
31 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 Näytä tiedosto

@@ -84,6 +84,16 @@ public class TpRentalHouse {
84 84
      */
85 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,6 +115,24 @@ public class TpRentalHouse {
105 115
      * 洗衣机
106 116
      */
107 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 Näytä tiedosto

@@ -38,7 +38,7 @@ public class TpRentalHouseServicelImpl implements TpRentalHouseServicel {
38 38
         Map<String, Object> parameter = Maps.newHashMap();
39 39
         //使用分页插件
40 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 43
         for (TpRentalHouse tpRentalHouse:tpRentalHouseList){
44 44
             String [] result = tpRentalHouse.getHouseLabel().split(",");

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpShopServicelmpl.java Näytä tiedosto

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

+ 7
- 0
CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml Näytä tiedosto

@@ -31,6 +31,12 @@
31 31
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
32 32
     <result column="create_user" property="createUser" jdbcType="INTEGER" />
33 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 40
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
35 41
   </resultMap>
36 42
   <resultMap id="ResultMapWithBLOBs" type="com.community.huiju.model.TpRentalHouse" extends="BaseResultMap" >
@@ -507,6 +513,7 @@
507 513
       <if test="priceFluctuate == 2" >
508 514
         and  order by rh.rental_price  desc
509 515
       </if>
516
+        and community_id = #{communityId}
510 517
         and rh.house_status = 1
511 518
     </where>
512 519
   </select>