瀏覽代碼

Merge branch '2.0.0' of http://git.ycjcjy.com/fuxingfan/smartCommunity into 2.0.0

魏熙美 6 年之前
父節點
當前提交
7d5d747c95
共有 29 個檔案被更改,包括 1463 行新增702 行删除
  1. 14
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AssembleController.java
  2. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/dao/TpRentalHouseMapper.java
  3. 107
    147
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpRentalHouse.java
  4. 13
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpShop.java
  5. 2
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpHotelServiceimpl.java
  6. 1
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpRentalHouseServicelImpl.java
  7. 3
    2
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpShopServicelmpl.java
  8. 170
    107
      CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml
  9. 1
    1
      CODE/smart-community/app-api/src/main/resources/mapper/TpShopTypeMapper.xml
  10. 157
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TpRentalHouseController.java
  11. 4
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TpShopController.java
  12. 4
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpRentalHouseImgMapper.java
  13. 12
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpRentalHouseMapper.java
  14. 81
    21
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpRentalHouse.java
  15. 41
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/ITpRentalHouseService.java
  16. 173
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpRentalHouseServiceImpl.java
  17. 1
    1
      CODE/smart-community/property-api/src/main/resources/mapper/HotelRoomMapper.xml
  18. 7
    1
      CODE/smart-community/property-api/src/main/resources/mapper/TpRentalHouseImgMapper.xml
  19. 38
    0
      CODE/smart-community/property-api/src/main/resources/mapper/TpRentalHouseMapper.xml
  20. 52
    0
      VUECODE/smart-property-manage/src/api/rental.js
  21. 1
    1
      VUECODE/smart-property-manage/src/router/index.js
  22. 4
    1
      VUECODE/smart-property-manage/src/store/index.js
  23. 70
    0
      VUECODE/smart-property-manage/src/store/modules/rental.js
  24. 97
    75
      VUECODE/smart-property-manage/src/views/rental/rentalAdd.vue
  25. 107
    85
      VUECODE/smart-property-manage/src/views/rental/rentalEdit.vue
  26. 45
    47
      VUECODE/smart-property-manage/src/views/rental/rentalIndex.vue
  27. 8
    2
      VUECODE/smart-property-manage/src/views/shop/shopSettingEdit.vue
  28. 125
    101
      文档/MYSQL/smartCommunity.pdb
  29. 124
    100
      文档/MYSQL/smartCommunity.pdm

+ 14
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/AssembleController.java 查看文件

@@ -8,6 +8,8 @@ import com.community.huiju.model.ToBanner;
8 8
 import com.community.huiju.service.BannerServiceI;
9 9
 import com.community.huiju.service.MenuServiceI;
10 10
 import com.community.huiju.service.MessageServiceI;
11
+import com.community.huiju.service.TpHotelServicel;
12
+import com.community.huiju.service.TpShopServicel;
11 13
 import io.swagger.annotations.Api;
12 14
 import io.swagger.annotations.ApiImplicitParam;
13 15
 import io.swagger.annotations.ApiImplicitParams;
@@ -43,6 +45,12 @@ public class AssembleController extends BaseController {
43 45
 	@Autowired
44 46
 	private MessageServiceI messageService;
45 47
 	
48
+	@Autowired
49
+	private TpHotelServicel tpHotelServicel;
50
+	
51
+	@Autowired
52
+	private TpShopServicel tpShopServicel;
53
+	
46 54
 	@ApiOperation(value = "首页数据获取接口", notes = "首页数据获取接口")
47 55
 	@ApiImplicitParams({ @ApiImplicitParam(paramType = "path", dataType = "String", name = "communityId", value = "小区Id"),
48 56
 			@ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token") })
@@ -64,11 +72,17 @@ public class AssembleController extends BaseController {
64 72
 		List<ToBanner> toBannerList = bannerService.viewAllBannerImg(1);
65 73
 		//获取消息总数接口
66 74
 		Map<String,Object> totalMap = messageService.getMessageTotal(communityId, userElement.getUserVerifyId());
75
+		//获取当前小区的酒店信息
76
+		ResponseBean hotelRes = tpHotelServicel.getHotelCommunity(userElement);
77
+		//获取当前小区的商铺信息
78
+		ResponseBean shopRes = tpShopServicel.getShopCommunity(userElement);
67 79
 		
68 80
 		//组装数据
69 81
 		indexMap.put("menuList",menuList);
70 82
 		indexMap.put("bannerList",toBannerList);
71 83
 		indexMap.put("messageTotal",totalMap.get("messageTotal"));
84
+		indexMap.put("hotelMap",hotelRes.getData());
85
+		indexMap.put("shopMap",shopRes.getData());
72 86
 		indexMap.put("toDoTotal",totalMap.get("toDoTotal"));
73 87
 		responseBean.addSuccess(indexMap);
74 88
 		return responseBean;

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

@@ -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
 }

+ 107
- 147
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpRentalHouse.java 查看文件

@@ -4,177 +4,89 @@ import java.util.Date;
4 4
 import java.util.List;
5 5
 
6 6
 public class TpRentalHouse {
7
-    /**
8
-     * ID
9
-     */
10 7
     private Integer id;
11 8
 
12
-    /**
13
-     * 房间名称
14
-     */
9
+    private Integer communityId;
10
+
15 11
     private String houseName;
16 12
 
17
-    /**
18
-     * 房屋租金
19
-     */
20 13
     private String rentalPrice;
21 14
 
22
-    /**
23
-     * 面积
24
-     */
25 15
     private String area;
26 16
 
27
-    /**
28
-     * 出租方式 1 是整租 2是合租
29
-     */
30 17
     private String rentalType;
31 18
 
32
-    /**
33
-     * 户型 1 是一室居 2是二室居 3 是三室局 4 是四室居及以上
34
-     */
35 19
     private String houseType;
36 20
 
37
-    /**
38
-     * 上架状态 1 是已上架 2是已下架
39
-     */
40 21
     private String houseStatus;
41 22
 
42
-    /**
43
-     * 楼层
44
-     */
45 23
     private String houseLevel;
46 24
 
47
-    /**
48
-     * 标签
49
-     */
50 25
     private String houseLabel;
51 26
 
52
-    /**
53
-     * 权重
54
-     */
55 27
     private Integer sort;
56 28
 
57
-    /**
58
-     * 联系电话
59
-     */
60 29
     private String houseTel;
61 30
 
62
-    /**
63
-     * 小区地址
64
-     */
65 31
     private String communityAddress;
66 32
 
67
-    /**
68
-     * 小区经度
69
-     */
70 33
     private String communityLongitude;
71 34
 
72
-    /**
73
-     * 小区纬度
74
-     */
75 35
     private String communityLatitude;
76 36
 
77
-    /**
78
-     * 床
79
-     */
80 37
     private String bed;
81 38
 
82
-    /**
83
-     * 衣柜
84
-     */
39
+    private String mattress;
40
+
85 41
     private String wardrobe;
86 42
 
87
-    /**
88
-     * 餐桌
89
-     */
90
-    private String diningTable;
43
+    private String sofa;
91 44
 
92
-    /**
93
-     *电脑桌
94
-     */
95
-    private String computerDesk;
45
+    private String washingMachine;
96 46
 
97
-    private String waterHeater;
47
+    private String airConditioning;
98 48
 
99
-    /**
100
-     * 椅子
101
-     */
102
-    private String chair;
49
+    private String fridge;
103 50
 
104
-    /**
105
-     * 洗衣机
106
-     */
107
-    private String washingMachine;
51
+    private String tv;
108 52
 
109
-    /**
110
-     * 空调
111
-     */
112
-    private String airConditioning;
53
+    private String smartLock;
113 54
 
114
-    /**
115
-     * 台灯
116
-     */
117
-    private String tableLamp;
55
+    private String waterHeater;
56
+
57
+    private String desk;
58
+
59
+    private String chair;
118 60
 
119
-    /**
120
-     * 有
121
-     */
122 61
     private String wifi;
123 62
 
124
-    /**
125
-     * 微波炉
126
-     */
127
-    private String microwaveOven;
63
+    private String kitchen;
128 64
 
129
-    /**
130
-     * 天然气
131
-     */
132
-    private String naturalGas;
65
+    private String bathroom;
66
+
67
+    private String balcony;
133 68
 
134
-    /**
135
-     * 创建时间
136
-     */
137 69
     private Date createDate;
138 70
 
139
-    /**
140
-     * 创建人
141
-     */
142 71
     private Integer createUser;
143 72
 
144
-    /**
145
-     * 更新时间
146
-     */
147 73
     private Date updateDate;
148 74
 
149
-    /**
150
-     * 更新人
151
-     */
152 75
     private Integer updateUser;
153 76
 
154
-    /**
155
-     * 房屋介绍
156
-     */
157 77
     private String houseIntroduction;
158 78
 
159 79
     /**
160
-     * 出租房屋首页列表图片
80
+     * 便签数组
161 81
      * @return
162 82
      */
163
-    private String homeImg;
83
+    private List<String> houseLabelArr;
164 84
 
165 85
     /**
166
-     * 标签数组
86
+     * banner图
167 87
      * @return
168 88
      */
169
-    private List<String> houseLabelArr;;
170
-
171
-    public List<String> getHouseLabelArr() {
172
-        return houseLabelArr;
173
-    }
174
-
175
-    public void setHouseLabelArr(List<String> houseLabelArr) {
176
-        this.houseLabelArr = houseLabelArr;
177
-    }
89
+    private  String homeImg;
178 90
 
179 91
     public String getHomeImg() {
180 92
         return homeImg;
@@ -184,6 +96,14 @@ public class TpRentalHouse {
184 96
         this.homeImg = homeImg;
185 97
     }
186 98
 
99
+    public List<String> getHouseLabelArr() {
100
+        return houseLabelArr;
101
+    }
102
+
103
+    public void setHouseLabelArr(List<String> houseLabelArr) {
104
+        this.houseLabelArr = houseLabelArr;
105
+    }
106
+
187 107
     public Integer getId() {
188 108
         return id;
189 109
     }
@@ -192,6 +112,14 @@ public class TpRentalHouse {
192 112
         this.id = id;
193 113
     }
194 114
 
115
+    public Integer getCommunityId() {
116
+        return communityId;
117
+    }
118
+
119
+    public void setCommunityId(Integer communityId) {
120
+        this.communityId = communityId;
121
+    }
122
+
195 123
     public String getHouseName() {
196 124
         return houseName;
197 125
     }
@@ -304,6 +232,14 @@ public class TpRentalHouse {
304 232
         this.bed = bed == null ? null : bed.trim();
305 233
     }
306 234
 
235
+    public String getMattress() {
236
+        return mattress;
237
+    }
238
+
239
+    public void setMattress(String mattress) {
240
+        this.mattress = mattress == null ? null : mattress.trim();
241
+    }
242
+
307 243
     public String getWardrobe() {
308 244
         return wardrobe;
309 245
     }
@@ -312,60 +248,76 @@ public class TpRentalHouse {
312 248
         this.wardrobe = wardrobe == null ? null : wardrobe.trim();
313 249
     }
314 250
 
315
-    public String getDiningTable() {
316
-        return diningTable;
251
+    public String getSofa() {
252
+        return sofa;
317 253
     }
318 254
 
319
-    public void setDiningTable(String diningTable) {
320
-        this.diningTable = diningTable == null ? null : diningTable.trim();
255
+    public void setSofa(String sofa) {
256
+        this.sofa = sofa == null ? null : sofa.trim();
321 257
     }
322 258
 
323
-    public String getComputerDesk() {
324
-        return computerDesk;
259
+    public String getWashingMachine() {
260
+        return washingMachine;
325 261
     }
326 262
 
327
-    public void setComputerDesk(String computerDesk) {
328
-        this.computerDesk = computerDesk == null ? null : computerDesk.trim();
263
+    public void setWashingMachine(String washingMachine) {
264
+        this.washingMachine = washingMachine == null ? null : washingMachine.trim();
329 265
     }
330 266
 
331
-    public String getWaterHeater() {
332
-        return waterHeater;
267
+    public String getAirConditioning() {
268
+        return airConditioning;
333 269
     }
334 270
 
335
-    public void setWaterHeater(String waterHeater) {
336
-        this.waterHeater = waterHeater == null ? null : waterHeater.trim();
271
+    public void setAirConditioning(String airConditioning) {
272
+        this.airConditioning = airConditioning == null ? null : airConditioning.trim();
337 273
     }
338 274
 
339
-    public String getChair() {
340
-        return chair;
275
+    public String getFridge() {
276
+        return fridge;
341 277
     }
342 278
 
343
-    public void setChair(String chair) {
344
-        this.chair = chair == null ? null : chair.trim();
279
+    public void setFridge(String fridge) {
280
+        this.fridge = fridge == null ? null : fridge.trim();
345 281
     }
346 282
 
347
-    public String getWashingMachine() {
348
-        return washingMachine;
283
+    public String getTv() {
284
+        return tv;
349 285
     }
350 286
 
351
-    public void setWashingMachine(String washingMachine) {
352
-        this.washingMachine = washingMachine == null ? null : washingMachine.trim();
287
+    public void setTv(String tv) {
288
+        this.tv = tv == null ? null : tv.trim();
353 289
     }
354 290
 
355
-    public String getAirConditioning() {
356
-        return airConditioning;
291
+    public String getSmartLock() {
292
+        return smartLock;
357 293
     }
358 294
 
359
-    public void setAirConditioning(String airConditioning) {
360
-        this.airConditioning = airConditioning == null ? null : airConditioning.trim();
295
+    public void setSmartLock(String smartLock) {
296
+        this.smartLock = smartLock == null ? null : smartLock.trim();
361 297
     }
362 298
 
363
-    public String getTableLamp() {
364
-        return tableLamp;
299
+    public String getWaterHeater() {
300
+        return waterHeater;
365 301
     }
366 302
 
367
-    public void setTableLamp(String tableLamp) {
368
-        this.tableLamp = tableLamp == null ? null : tableLamp.trim();
303
+    public void setWaterHeater(String waterHeater) {
304
+        this.waterHeater = waterHeater == null ? null : waterHeater.trim();
305
+    }
306
+
307
+    public String getDesk() {
308
+        return desk;
309
+    }
310
+
311
+    public void setDesk(String desk) {
312
+        this.desk = desk == null ? null : desk.trim();
313
+    }
314
+
315
+    public String getChair() {
316
+        return chair;
317
+    }
318
+
319
+    public void setChair(String chair) {
320
+        this.chair = chair == null ? null : chair.trim();
369 321
     }
370 322
 
371 323
     public String getWifi() {
@@ -376,20 +328,28 @@ public class TpRentalHouse {
376 328
         this.wifi = wifi == null ? null : wifi.trim();
377 329
     }
378 330
 
379
-    public String getMicrowaveOven() {
380
-        return microwaveOven;
331
+    public String getKitchen() {
332
+        return kitchen;
333
+    }
334
+
335
+    public void setKitchen(String kitchen) {
336
+        this.kitchen = kitchen == null ? null : kitchen.trim();
337
+    }
338
+
339
+    public String getBathroom() {
340
+        return bathroom;
381 341
     }
382 342
 
383
-    public void setMicrowaveOven(String microwaveOven) {
384
-        this.microwaveOven = microwaveOven == null ? null : microwaveOven.trim();
343
+    public void setBathroom(String bathroom) {
344
+        this.bathroom = bathroom == null ? null : bathroom.trim();
385 345
     }
386 346
 
387
-    public String getNaturalGas() {
388
-        return naturalGas;
347
+    public String getBalcony() {
348
+        return balcony;
389 349
     }
390 350
 
391
-    public void setNaturalGas(String naturalGas) {
392
-        this.naturalGas = naturalGas == null ? null : naturalGas.trim();
351
+    public void setBalcony(String balcony) {
352
+        this.balcony = balcony == null ? null : balcony.trim();
393 353
     }
394 354
 
395 355
     public Date getCreateDate() {

+ 13
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpShop.java 查看文件

@@ -105,6 +105,19 @@ public class TpShop {
105 105
      */
106 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 121
     public List<TpShopType> getTpShopTypeList() {
109 122
         return tpShopTypeList;
110 123
     }

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

@@ -61,13 +61,13 @@ public class TpHotelServiceimpl implements TpHotelServicel {
61 61
         ResponseBean response= new ResponseBean<>();
62 62
         // 查询当前的酒店是否展示
63 63
         TpHotel tpHotel = null;
64
-        List<String> img = null;
64
+        String img = null;
65 65
         String  hotelSetting= tpHotelMapper.hotelSetting(userElement.getCommunityId());
66 66
         if (null != hotelSetting){
67 67
              tpHotel= tpHotelMapper.selectCommunityHotel(userElement.getCommunityId());
68 68
             List<TpHotelRoom> tpHotelRoom = tpHotelRoomMapper.selectHotelRoomList(userElement.getCommunityId(),tpHotel.getId());
69 69
             tpHotel.setTpHotelRoomsList(tpHotelRoom);
70
-            img = tpHotelImgMapper.selectHotelImg(tpHotel.getId(), userElement.getCommunityId(),2);
70
+            img = tpHotelImgMapper.selectHotelImg(tpHotel.getId(), userElement.getCommunityId(),1).get(0);
71 71
         }
72 72
         Map map = new HashMap<>();
73 73
         map.put("tpHotel", tpHotel);

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

@@ -5,7 +5,6 @@ import com.community.commom.mode.ResponseBean;
5 5
 import com.community.commom.session.UserElement;
6 6
 import com.community.huiju.dao.TpRentalHouseImgMapper;
7 7
 import com.community.huiju.dao.TpRentalHouseMapper;
8
-import com.community.huiju.model.TpAnnouncement;
9 8
 import com.community.huiju.model.TpRentalHouse;
10 9
 import com.community.huiju.model.TpRentalHouseImg;
11 10
 import com.community.huiju.service.TpRentalHouseServicel;
@@ -38,7 +37,7 @@ public class TpRentalHouseServicelImpl implements TpRentalHouseServicel {
38 37
         Map<String, Object> parameter = Maps.newHashMap();
39 38
         //使用分页插件
40 39
         Page<TpRentalHouse> pageTpRentalHouseList = PageHelper.startPage(pageNum, pageSize);
41
-        List<TpRentalHouse> tpRentalHouseList= tpRentalHouseMapper.getRentalHouse(houseName,rentalType,houseType,rentalPrice,priceFluctuate);
40
+        List<TpRentalHouse> tpRentalHouseList= tpRentalHouseMapper.getRentalHouse(houseName,rentalType,houseType,rentalPrice,priceFluctuate,userElement.getCommunityId());
42 41
             // 把字符串转数组
43 42
         for (TpRentalHouse tpRentalHouse:tpRentalHouseList){
44 43
             String [] result = tpRentalHouse.getHouseLabel().split(",");

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

@@ -89,12 +89,13 @@ public class TpShopServicelmpl implements TpShopServicel {
89 89
             for (TpShop tpShop : tpShopList) {
90 90
                 // 1 表示查询当前首页图片
91 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 96
             tpShopTypeList = tpShopTypeMapper.selectCommunityIdShop(userElement.getCommunityId());
96 97
            for (TpShopType tpShopType:tpShopTypeList){
97
-               int a=tpShopType.getId().intValue();
98
+               int a=tpShopType.getSort().intValue();
98 99
              if (a == 1){
99 100
                  //美食图片
100 101
                  List<String> tpShopTypeImg = new ArrayList<>();

+ 170
- 107
CODE/smart-community/app-api/src/main/resources/mapper/TpRentalHouseMapper.xml 查看文件

@@ -3,6 +3,7 @@
3 3
 <mapper namespace="com.community.huiju.dao.TpRentalHouseMapper" >
4 4
   <resultMap id="BaseResultMap" type="com.community.huiju.model.TpRentalHouse" >
5 5
     <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="community_id" property="communityId" jdbcType="INTEGER" />
6 7
     <result column="house_name" property="houseName" jdbcType="VARCHAR" />
7 8
     <result column="rental_price" property="rentalPrice" jdbcType="VARCHAR" />
8 9
     <result column="area" property="area" jdbcType="VARCHAR" />
@@ -17,17 +18,21 @@
17 18
     <result column="community_longitude" property="communityLongitude" jdbcType="VARCHAR" />
18 19
     <result column="community_latitude" property="communityLatitude" jdbcType="VARCHAR" />
19 20
     <result column="bed" property="bed" jdbcType="VARCHAR" />
21
+    <result column="mattress" property="mattress" jdbcType="VARCHAR" />
20 22
     <result column="wardrobe" property="wardrobe" jdbcType="VARCHAR" />
21
-    <result column="dining_table" property="diningTable" jdbcType="VARCHAR" />
22
-    <result column="computer_desk" property="computerDesk" jdbcType="VARCHAR" />
23
-    <result column="water_heater" property="waterHeater" jdbcType="VARCHAR" />
24
-    <result column="chair" property="chair" jdbcType="VARCHAR" />
23
+    <result column="sofa" property="sofa" jdbcType="VARCHAR" />
25 24
     <result column="washing_machine" property="washingMachine" jdbcType="VARCHAR" />
26 25
     <result column="air_conditioning" property="airConditioning" jdbcType="VARCHAR" />
27
-    <result column="table_lamp" property="tableLamp" jdbcType="VARCHAR" />
26
+    <result column="fridge" property="fridge" jdbcType="VARCHAR" />
27
+    <result column="TV" property="tv" jdbcType="VARCHAR" />
28
+    <result column="smart_lock" property="smartLock" jdbcType="VARCHAR" />
29
+    <result column="water_heater" property="waterHeater" jdbcType="VARCHAR" />
30
+    <result column="desk" property="desk" jdbcType="VARCHAR" />
31
+    <result column="chair" property="chair" jdbcType="VARCHAR" />
28 32
     <result column="WiFi" property="wifi" jdbcType="VARCHAR" />
29
-    <result column="microwave_oven" property="microwaveOven" jdbcType="VARCHAR" />
30
-    <result column="natural_gas" property="naturalGas" jdbcType="VARCHAR" />
33
+    <result column="kitchen" property="kitchen" jdbcType="VARCHAR" />
34
+    <result column="bathroom" property="bathroom" jdbcType="VARCHAR" />
35
+    <result column="balcony" property="balcony" jdbcType="VARCHAR" />
31 36
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
32 37
     <result column="create_user" property="createUser" jdbcType="INTEGER" />
33 38
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
@@ -37,17 +42,17 @@
37 42
     <result column="house_introduction" property="houseIntroduction" jdbcType="LONGVARCHAR" />
38 43
   </resultMap>
39 44
   <sql id="Base_Column_List" >
40
-    id, house_name, rental_price, area, rental_type, house_type, house_status, house_level, 
41
-    house_label, sort, house_tel, community_address, community_longitude, community_latitude, 
42
-    bed, wardrobe, dining_table, computer_desk, water_heater, chair, washing_machine, 
43
-    air_conditioning, table_lamp, WiFi, microwave_oven, natural_gas, create_date, create_user, 
44
-    update_date, update_user
45
+    id, community_id, house_name, rental_price, area, rental_type, house_type, house_status,
46
+    house_level, house_label, sort, house_tel, community_address, community_longitude,
47
+    community_latitude, bed, mattress, wardrobe, sofa, washing_machine, air_conditioning,
48
+    fridge, TV, smart_lock, water_heater, desk, chair, WiFi, kitchen, bathroom, balcony,
49
+    create_date, create_user, update_date, update_user
45 50
   </sql>
46 51
   <sql id="Blob_Column_List" >
47 52
     house_introduction
48 53
   </sql>
49 54
   <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
50
-    select 
55
+    select
51 56
     <include refid="Base_Column_List" />
52 57
     ,
53 58
     <include refid="Blob_Column_List" />
@@ -59,28 +64,32 @@
59 64
     where id = #{id,jdbcType=INTEGER}
60 65
   </delete>
61 66
   <insert id="insert" parameterType="com.community.huiju.model.TpRentalHouse" >
62
-    insert into tp_rental_house (id, house_name, rental_price, 
63
-      area, rental_type, house_type, 
64
-      house_status, house_level, house_label, 
65
-      sort, house_tel, community_address, 
66
-      community_longitude, community_latitude, 
67
-      bed, wardrobe, dining_table, 
68
-      computer_desk, water_heater, chair, 
69
-      washing_machine, air_conditioning, table_lamp, 
70
-      WiFi, microwave_oven, natural_gas, 
71
-      create_date, create_user, update_date, 
72
-      update_user, house_introduction)
73
-    values (#{id,jdbcType=INTEGER}, #{houseName,jdbcType=VARCHAR}, #{rentalPrice,jdbcType=VARCHAR}, 
74
-      #{area,jdbcType=VARCHAR}, #{rentalType,jdbcType=VARCHAR}, #{houseType,jdbcType=VARCHAR}, 
75
-      #{houseStatus,jdbcType=VARCHAR}, #{houseLevel,jdbcType=VARCHAR}, #{houseLabel,jdbcType=VARCHAR}, 
76
-      #{sort,jdbcType=INTEGER}, #{houseTel,jdbcType=VARCHAR}, #{communityAddress,jdbcType=VARCHAR}, 
77
-      #{communityLongitude,jdbcType=VARCHAR}, #{communityLatitude,jdbcType=VARCHAR}, 
78
-      #{bed,jdbcType=VARCHAR}, #{wardrobe,jdbcType=VARCHAR}, #{diningTable,jdbcType=VARCHAR}, 
79
-      #{computerDesk,jdbcType=VARCHAR}, #{waterHeater,jdbcType=VARCHAR}, #{chair,jdbcType=VARCHAR}, 
80
-      #{washingMachine,jdbcType=VARCHAR}, #{airConditioning,jdbcType=VARCHAR}, #{tableLamp,jdbcType=VARCHAR}, 
81
-      #{wifi,jdbcType=VARCHAR}, #{microwaveOven,jdbcType=VARCHAR}, #{naturalGas,jdbcType=VARCHAR}, 
82
-      #{createDate,jdbcType=TIMESTAMP}, #{createUser,jdbcType=INTEGER}, #{updateDate,jdbcType=TIMESTAMP}, 
83
-      #{updateUser,jdbcType=INTEGER}, #{houseIntroduction,jdbcType=LONGVARCHAR})
67
+    insert into tp_rental_house (id, community_id, house_name,
68
+      rental_price, area, rental_type,
69
+      house_type, house_status, house_level,
70
+      house_label, sort, house_tel,
71
+      community_address, community_longitude, community_latitude,
72
+      bed, mattress, wardrobe,
73
+      sofa, washing_machine, air_conditioning,
74
+      fridge, TV, smart_lock,
75
+      water_heater, desk, chair,
76
+      WiFi, kitchen, bathroom,
77
+      balcony, create_date, create_user,
78
+      update_date, update_user, house_introduction
79
+      )
80
+    values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{houseName,jdbcType=VARCHAR},
81
+      #{rentalPrice,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{rentalType,jdbcType=VARCHAR},
82
+      #{houseType,jdbcType=VARCHAR}, #{houseStatus,jdbcType=VARCHAR}, #{houseLevel,jdbcType=VARCHAR},
83
+      #{houseLabel,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{houseTel,jdbcType=VARCHAR},
84
+      #{communityAddress,jdbcType=VARCHAR}, #{communityLongitude,jdbcType=VARCHAR}, #{communityLatitude,jdbcType=VARCHAR},
85
+      #{bed,jdbcType=VARCHAR}, #{mattress,jdbcType=VARCHAR}, #{wardrobe,jdbcType=VARCHAR},
86
+      #{sofa,jdbcType=VARCHAR}, #{washingMachine,jdbcType=VARCHAR}, #{airConditioning,jdbcType=VARCHAR},
87
+      #{fridge,jdbcType=VARCHAR}, #{tv,jdbcType=VARCHAR}, #{smartLock,jdbcType=VARCHAR},
88
+      #{waterHeater,jdbcType=VARCHAR}, #{desk,jdbcType=VARCHAR}, #{chair,jdbcType=VARCHAR},
89
+      #{wifi,jdbcType=VARCHAR}, #{kitchen,jdbcType=VARCHAR}, #{bathroom,jdbcType=VARCHAR},
90
+      #{balcony,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{createUser,jdbcType=INTEGER},
91
+      #{updateDate,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=INTEGER}, #{houseIntroduction,jdbcType=LONGVARCHAR}
92
+      )
84 93
   </insert>
85 94
   <insert id="insertSelective" parameterType="com.community.huiju.model.TpRentalHouse" >
86 95
     insert into tp_rental_house
@@ -88,6 +97,9 @@
88 97
       <if test="id != null" >
89 98
         id,
90 99
       </if>
100
+      <if test="communityId != null" >
101
+        community_id,
102
+      </if>
91 103
       <if test="houseName != null" >
92 104
         house_name,
93 105
       </if>
@@ -130,20 +142,14 @@
130 142
       <if test="bed != null" >
131 143
         bed,
132 144
       </if>
145
+      <if test="mattress != null" >
146
+        mattress,
147
+      </if>
133 148
       <if test="wardrobe != null" >
134 149
         wardrobe,
135 150
       </if>
136
-      <if test="diningTable != null" >
137
-        dining_table,
138
-      </if>
139
-      <if test="computerDesk != null" >
140
-        computer_desk,
141
-      </if>
142
-      <if test="waterHeater != null" >
143
-        water_heater,
144
-      </if>
145
-      <if test="chair != null" >
146
-        chair,
151
+      <if test="sofa != null" >
152
+        sofa,
147 153
       </if>
148 154
       <if test="washingMachine != null" >
149 155
         washing_machine,
@@ -151,17 +157,35 @@
151 157
       <if test="airConditioning != null" >
152 158
         air_conditioning,
153 159
       </if>
154
-      <if test="tableLamp != null" >
155
-        table_lamp,
160
+      <if test="fridge != null" >
161
+        fridge,
162
+      </if>
163
+      <if test="tv != null" >
164
+        TV,
165
+      </if>
166
+      <if test="smartLock != null" >
167
+        smart_lock,
168
+      </if>
169
+      <if test="waterHeater != null" >
170
+        water_heater,
171
+      </if>
172
+      <if test="desk != null" >
173
+        desk,
174
+      </if>
175
+      <if test="chair != null" >
176
+        chair,
156 177
       </if>
157 178
       <if test="wifi != null" >
158 179
         WiFi,
159 180
       </if>
160
-      <if test="microwaveOven != null" >
161
-        microwave_oven,
181
+      <if test="kitchen != null" >
182
+        kitchen,
162 183
       </if>
163
-      <if test="naturalGas != null" >
164
-        natural_gas,
184
+      <if test="bathroom != null" >
185
+        bathroom,
186
+      </if>
187
+      <if test="balcony != null" >
188
+        balcony,
165 189
       </if>
166 190
       <if test="createDate != null" >
167 191
         create_date,
@@ -183,6 +207,9 @@
183 207
       <if test="id != null" >
184 208
         #{id,jdbcType=INTEGER},
185 209
       </if>
210
+      <if test="communityId != null" >
211
+        #{communityId,jdbcType=INTEGER},
212
+      </if>
186 213
       <if test="houseName != null" >
187 214
         #{houseName,jdbcType=VARCHAR},
188 215
       </if>
@@ -225,20 +252,14 @@
225 252
       <if test="bed != null" >
226 253
         #{bed,jdbcType=VARCHAR},
227 254
       </if>
255
+      <if test="mattress != null" >
256
+        #{mattress,jdbcType=VARCHAR},
257
+      </if>
228 258
       <if test="wardrobe != null" >
229 259
         #{wardrobe,jdbcType=VARCHAR},
230 260
       </if>
231
-      <if test="diningTable != null" >
232
-        #{diningTable,jdbcType=VARCHAR},
233
-      </if>
234
-      <if test="computerDesk != null" >
235
-        #{computerDesk,jdbcType=VARCHAR},
236
-      </if>
237
-      <if test="waterHeater != null" >
238
-        #{waterHeater,jdbcType=VARCHAR},
239
-      </if>
240
-      <if test="chair != null" >
241
-        #{chair,jdbcType=VARCHAR},
261
+      <if test="sofa != null" >
262
+        #{sofa,jdbcType=VARCHAR},
242 263
       </if>
243 264
       <if test="washingMachine != null" >
244 265
         #{washingMachine,jdbcType=VARCHAR},
@@ -246,17 +267,35 @@
246 267
       <if test="airConditioning != null" >
247 268
         #{airConditioning,jdbcType=VARCHAR},
248 269
       </if>
249
-      <if test="tableLamp != null" >
250
-        #{tableLamp,jdbcType=VARCHAR},
270
+      <if test="fridge != null" >
271
+        #{fridge,jdbcType=VARCHAR},
272
+      </if>
273
+      <if test="tv != null" >
274
+        #{tv,jdbcType=VARCHAR},
275
+      </if>
276
+      <if test="smartLock != null" >
277
+        #{smartLock,jdbcType=VARCHAR},
278
+      </if>
279
+      <if test="waterHeater != null" >
280
+        #{waterHeater,jdbcType=VARCHAR},
281
+      </if>
282
+      <if test="desk != null" >
283
+        #{desk,jdbcType=VARCHAR},
284
+      </if>
285
+      <if test="chair != null" >
286
+        #{chair,jdbcType=VARCHAR},
251 287
       </if>
252 288
       <if test="wifi != null" >
253 289
         #{wifi,jdbcType=VARCHAR},
254 290
       </if>
255
-      <if test="microwaveOven != null" >
256
-        #{microwaveOven,jdbcType=VARCHAR},
291
+      <if test="kitchen != null" >
292
+        #{kitchen,jdbcType=VARCHAR},
293
+      </if>
294
+      <if test="bathroom != null" >
295
+        #{bathroom,jdbcType=VARCHAR},
257 296
       </if>
258
-      <if test="naturalGas != null" >
259
-        #{naturalGas,jdbcType=VARCHAR},
297
+      <if test="balcony != null" >
298
+        #{balcony,jdbcType=VARCHAR},
260 299
       </if>
261 300
       <if test="createDate != null" >
262 301
         #{createDate,jdbcType=TIMESTAMP},
@@ -278,6 +317,9 @@
278 317
   <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpRentalHouse" >
279 318
     update tp_rental_house
280 319
     <set >
320
+      <if test="communityId != null" >
321
+        community_id = #{communityId,jdbcType=INTEGER},
322
+      </if>
281 323
       <if test="houseName != null" >
282 324
         house_name = #{houseName,jdbcType=VARCHAR},
283 325
       </if>
@@ -320,20 +362,14 @@
320 362
       <if test="bed != null" >
321 363
         bed = #{bed,jdbcType=VARCHAR},
322 364
       </if>
365
+      <if test="mattress != null" >
366
+        mattress = #{mattress,jdbcType=VARCHAR},
367
+      </if>
323 368
       <if test="wardrobe != null" >
324 369
         wardrobe = #{wardrobe,jdbcType=VARCHAR},
325 370
       </if>
326
-      <if test="diningTable != null" >
327
-        dining_table = #{diningTable,jdbcType=VARCHAR},
328
-      </if>
329
-      <if test="computerDesk != null" >
330
-        computer_desk = #{computerDesk,jdbcType=VARCHAR},
331
-      </if>
332
-      <if test="waterHeater != null" >
333
-        water_heater = #{waterHeater,jdbcType=VARCHAR},
334
-      </if>
335
-      <if test="chair != null" >
336
-        chair = #{chair,jdbcType=VARCHAR},
371
+      <if test="sofa != null" >
372
+        sofa = #{sofa,jdbcType=VARCHAR},
337 373
       </if>
338 374
       <if test="washingMachine != null" >
339 375
         washing_machine = #{washingMachine,jdbcType=VARCHAR},
@@ -341,17 +377,35 @@
341 377
       <if test="airConditioning != null" >
342 378
         air_conditioning = #{airConditioning,jdbcType=VARCHAR},
343 379
       </if>
344
-      <if test="tableLamp != null" >
345
-        table_lamp = #{tableLamp,jdbcType=VARCHAR},
380
+      <if test="fridge != null" >
381
+        fridge = #{fridge,jdbcType=VARCHAR},
382
+      </if>
383
+      <if test="tv != null" >
384
+        TV = #{tv,jdbcType=VARCHAR},
385
+      </if>
386
+      <if test="smartLock != null" >
387
+        smart_lock = #{smartLock,jdbcType=VARCHAR},
388
+      </if>
389
+      <if test="waterHeater != null" >
390
+        water_heater = #{waterHeater,jdbcType=VARCHAR},
391
+      </if>
392
+      <if test="desk != null" >
393
+        desk = #{desk,jdbcType=VARCHAR},
394
+      </if>
395
+      <if test="chair != null" >
396
+        chair = #{chair,jdbcType=VARCHAR},
346 397
       </if>
347 398
       <if test="wifi != null" >
348 399
         WiFi = #{wifi,jdbcType=VARCHAR},
349 400
       </if>
350
-      <if test="microwaveOven != null" >
351
-        microwave_oven = #{microwaveOven,jdbcType=VARCHAR},
401
+      <if test="kitchen != null" >
402
+        kitchen = #{kitchen,jdbcType=VARCHAR},
352 403
       </if>
353
-      <if test="naturalGas != null" >
354
-        natural_gas = #{naturalGas,jdbcType=VARCHAR},
404
+      <if test="bathroom != null" >
405
+        bathroom = #{bathroom,jdbcType=VARCHAR},
406
+      </if>
407
+      <if test="balcony != null" >
408
+        balcony = #{balcony,jdbcType=VARCHAR},
355 409
       </if>
356 410
       <if test="createDate != null" >
357 411
         create_date = #{createDate,jdbcType=TIMESTAMP},
@@ -373,7 +427,8 @@
373 427
   </update>
374 428
   <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.community.huiju.model.TpRentalHouse" >
375 429
     update tp_rental_house
376
-    set house_name = #{houseName,jdbcType=VARCHAR},
430
+    set community_id = #{communityId,jdbcType=INTEGER},
431
+      house_name = #{houseName,jdbcType=VARCHAR},
377 432
       rental_price = #{rentalPrice,jdbcType=VARCHAR},
378 433
       area = #{area,jdbcType=VARCHAR},
379 434
       rental_type = #{rentalType,jdbcType=VARCHAR},
@@ -387,17 +442,21 @@
387 442
       community_longitude = #{communityLongitude,jdbcType=VARCHAR},
388 443
       community_latitude = #{communityLatitude,jdbcType=VARCHAR},
389 444
       bed = #{bed,jdbcType=VARCHAR},
445
+      mattress = #{mattress,jdbcType=VARCHAR},
390 446
       wardrobe = #{wardrobe,jdbcType=VARCHAR},
391
-      dining_table = #{diningTable,jdbcType=VARCHAR},
392
-      computer_desk = #{computerDesk,jdbcType=VARCHAR},
393
-      water_heater = #{waterHeater,jdbcType=VARCHAR},
394
-      chair = #{chair,jdbcType=VARCHAR},
447
+      sofa = #{sofa,jdbcType=VARCHAR},
395 448
       washing_machine = #{washingMachine,jdbcType=VARCHAR},
396 449
       air_conditioning = #{airConditioning,jdbcType=VARCHAR},
397
-      table_lamp = #{tableLamp,jdbcType=VARCHAR},
450
+      fridge = #{fridge,jdbcType=VARCHAR},
451
+      TV = #{tv,jdbcType=VARCHAR},
452
+      smart_lock = #{smartLock,jdbcType=VARCHAR},
453
+      water_heater = #{waterHeater,jdbcType=VARCHAR},
454
+      desk = #{desk,jdbcType=VARCHAR},
455
+      chair = #{chair,jdbcType=VARCHAR},
398 456
       WiFi = #{wifi,jdbcType=VARCHAR},
399
-      microwave_oven = #{microwaveOven,jdbcType=VARCHAR},
400
-      natural_gas = #{naturalGas,jdbcType=VARCHAR},
457
+      kitchen = #{kitchen,jdbcType=VARCHAR},
458
+      bathroom = #{bathroom,jdbcType=VARCHAR},
459
+      balcony = #{balcony,jdbcType=VARCHAR},
401 460
       create_date = #{createDate,jdbcType=TIMESTAMP},
402 461
       create_user = #{createUser,jdbcType=INTEGER},
403 462
       update_date = #{updateDate,jdbcType=TIMESTAMP},
@@ -407,7 +466,8 @@
407 466
   </update>
408 467
   <update id="updateByPrimaryKey" parameterType="com.community.huiju.model.TpRentalHouse" >
409 468
     update tp_rental_house
410
-    set house_name = #{houseName,jdbcType=VARCHAR},
469
+    set community_id = #{communityId,jdbcType=INTEGER},
470
+      house_name = #{houseName,jdbcType=VARCHAR},
411 471
       rental_price = #{rentalPrice,jdbcType=VARCHAR},
412 472
       area = #{area,jdbcType=VARCHAR},
413 473
       rental_type = #{rentalType,jdbcType=VARCHAR},
@@ -421,17 +481,21 @@
421 481
       community_longitude = #{communityLongitude,jdbcType=VARCHAR},
422 482
       community_latitude = #{communityLatitude,jdbcType=VARCHAR},
423 483
       bed = #{bed,jdbcType=VARCHAR},
484
+      mattress = #{mattress,jdbcType=VARCHAR},
424 485
       wardrobe = #{wardrobe,jdbcType=VARCHAR},
425
-      dining_table = #{diningTable,jdbcType=VARCHAR},
426
-      computer_desk = #{computerDesk,jdbcType=VARCHAR},
427
-      water_heater = #{waterHeater,jdbcType=VARCHAR},
428
-      chair = #{chair,jdbcType=VARCHAR},
486
+      sofa = #{sofa,jdbcType=VARCHAR},
429 487
       washing_machine = #{washingMachine,jdbcType=VARCHAR},
430 488
       air_conditioning = #{airConditioning,jdbcType=VARCHAR},
431
-      table_lamp = #{tableLamp,jdbcType=VARCHAR},
489
+      fridge = #{fridge,jdbcType=VARCHAR},
490
+      TV = #{tv,jdbcType=VARCHAR},
491
+      smart_lock = #{smartLock,jdbcType=VARCHAR},
492
+      water_heater = #{waterHeater,jdbcType=VARCHAR},
493
+      desk = #{desk,jdbcType=VARCHAR},
494
+      chair = #{chair,jdbcType=VARCHAR},
432 495
       WiFi = #{wifi,jdbcType=VARCHAR},
433
-      microwave_oven = #{microwaveOven,jdbcType=VARCHAR},
434
-      natural_gas = #{naturalGas,jdbcType=VARCHAR},
496
+      kitchen = #{kitchen,jdbcType=VARCHAR},
497
+      bathroom = #{bathroom,jdbcType=VARCHAR},
498
+      balcony = #{balcony,jdbcType=VARCHAR},
435 499
       create_date = #{createDate,jdbcType=TIMESTAMP},
436 500
       create_user = #{createUser,jdbcType=INTEGER},
437 501
       update_date = #{updateDate,jdbcType=TIMESTAMP},
@@ -450,10 +514,10 @@
450 514
         AND rh.community_address like concat('%',#{houseName},'%')
451 515
       </if>
452 516
       <if test="rentalType == 1" >
453
-          and rh.rental_type = '1'
517
+        and rh.rental_type = '1'
454 518
       </if>
455 519
       <if test="rentalType == 2" >
456
-           and rh.rental_type = '2'
520
+        and rh.rental_type = '2'
457 521
       </if>
458 522
 
459 523
       <if test="houseType == 1" >
@@ -507,9 +571,8 @@
507 571
       <if test="priceFluctuate == 2" >
508 572
         and  order by rh.rental_price  desc
509 573
       </if>
510
-        and rh.house_status = 1
574
+      and community_id = #{communityId}
575
+      and rh.house_status = 1
511 576
     </where>
512 577
   </select>
513
-
514
-
515 578
 </mapper>

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

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

+ 157
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TpRentalHouseController.java 查看文件

@@ -1,10 +1,32 @@
1 1
 package com.community.huiju.controller;
2 2
 
3 3
 
4
+import com.alibaba.fastjson.JSONArray;
5
+import com.alibaba.fastjson.JSONObject;
6
+import com.community.commom.mode.ResponseBean;
7
+import com.community.commom.session.UserElement;
4 8
 import com.community.huiju.common.base.BaseController;
9
+import com.community.huiju.model.TpRentalHouse;
10
+import com.community.huiju.model.TpShop;
11
+import com.community.huiju.service.ITpRentalHouseService;
12
+import io.swagger.annotations.Api;
13
+import io.swagger.annotations.ApiImplicitParam;
14
+import io.swagger.annotations.ApiImplicitParams;
15
+import io.swagger.annotations.ApiOperation;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.cloud.context.config.annotation.RefreshScope;
18
+import org.springframework.web.bind.annotation.PathVariable;
19
+import org.springframework.web.bind.annotation.RequestBody;
5 20
 import org.springframework.web.bind.annotation.RequestMapping;
21
+import org.springframework.web.bind.annotation.RequestMethod;
22
+import org.springframework.web.bind.annotation.RequestParam;
6 23
 import org.springframework.web.bind.annotation.RestController;
7 24
 
25
+import javax.servlet.http.HttpSession;
26
+import java.time.LocalDateTime;
27
+import java.util.ArrayList;
28
+import java.util.List;
29
+
8 30
 /**
9 31
  * <p>
10 32
  * 出租公寓表 前端控制器
@@ -15,6 +37,140 @@ import org.springframework.web.bind.annotation.RestController;
15 37
  */
16 38
 @RestController
17 39
 @RequestMapping("/")
40
+@RefreshScope
41
+@Api(value = "长租公寓API", description = "长租公寓API")
18 42
 public class TpRentalHouseController extends BaseController {
19
-
43
+	
44
+	@Autowired
45
+	private ITpRentalHouseService tpRentalHouseService;
46
+	
47
+	@ApiOperation(value = "根据搜索条件获取公寓列表", notes = "根据搜索条件获取公寓列表")
48
+	@ApiImplicitParams({
49
+			@ApiImplicitParam(paramType = "query", dataType = "Integer", name = "id", value = "房间编号"),
50
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "houseName", value = "房间名称"),
51
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "startPrice", value = "开始价格"),
52
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "endPrice", value = "结束价格"),
53
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "rentalType", value = "租赁方式"),
54
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "houseType", value = "户型"),
55
+			@ApiImplicitParam(paramType = "query", dataType = "String", name = "houseStatus", value = "上架状态"),
56
+			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageNum", value = "分页第几页"),
57
+			@ApiImplicitParam(paramType = "query", dataType = "integer", name = "pageSize", value = "分页每页长度"),
58
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
59
+	})
60
+	@RequestMapping(value = "/rentals",method = RequestMethod.GET)
61
+	public ResponseBean getRentalList(@RequestParam(value = "id") Integer id,
62
+	                                @RequestParam(value = "houseName") String houseName,
63
+	                                @RequestParam(value = "startPrice") String startPrice,
64
+	                                @RequestParam(value = "endPrice") String endPrice,
65
+	                                @RequestParam(value = "rentalType") String rentalType,
66
+	                                @RequestParam(value = "houseType") String houseType,
67
+	                                @RequestParam(value = "houseStatus") String houseStatus,
68
+	                                @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
69
+	                                @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
70
+	                                HttpSession session) {
71
+		ResponseBean responseBean = new ResponseBean();
72
+		UserElement userElement = getUserElement(session);
73
+		responseBean = tpRentalHouseService.getRentalList(id,houseName,startPrice,endPrice,rentalType,houseType,houseStatus,userElement,pageNum,pageSize);
74
+		return responseBean;
75
+	}
76
+	
77
+	@ApiOperation(value = "添加公寓", notes = "添加公寓")
78
+	@ApiImplicitParams({
79
+			@ApiImplicitParam(paramType = "body", dataType = "TpRentalHouse", name = "rentalHouse", value = "公寓"),
80
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
81
+	})
82
+	@RequestMapping(value = "/rental/add",method = RequestMethod.POST)
83
+	public ResponseBean saveRental(@RequestBody TpRentalHouse rentalHouse, HttpSession session){
84
+		ResponseBean responseBean = new ResponseBean();
85
+		UserElement userElement = getUserElement(session);
86
+		responseBean = tpRentalHouseService.saveRental(rentalHouse,userElement);
87
+		return responseBean;
88
+	}
89
+	
90
+	@ApiOperation(value = "更新公寓", notes = "更新公寓")
91
+	@ApiImplicitParams({
92
+			@ApiImplicitParam(paramType = "body", dataType = "TpRentalHouse", name = "rentalHouse", value = "公寓"),
93
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
94
+	})
95
+	@RequestMapping(value = "/rental/update",method = RequestMethod.POST)
96
+	public ResponseBean updateRental(@RequestBody TpRentalHouse rentalHouse, HttpSession session){
97
+		ResponseBean responseBean = new ResponseBean();
98
+		UserElement userElement = getUserElement(session);
99
+		responseBean = tpRentalHouseService.updateRental(rentalHouse,userElement);
100
+		return responseBean;
101
+	}
102
+	
103
+	@ApiOperation(value = "获取公寓信息", notes = "获取公寓信息")
104
+	@ApiImplicitParams({
105
+			@ApiImplicitParam(paramType = "path", dataType = "Integer", name = "id", value = "公寓Id"),
106
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
107
+	})
108
+	@RequestMapping(value = "/rental/get/{id}",method = RequestMethod.GET)
109
+	public ResponseBean getRental(@PathVariable Integer id, HttpSession session){
110
+		ResponseBean responseBean = new ResponseBean();
111
+		UserElement userElement = getUserElement(session);
112
+		TpRentalHouse rentalHouse = tpRentalHouseService.getRentalById(id);
113
+		responseBean.addSuccess(rentalHouse);
114
+		return responseBean;
115
+	}
116
+	
117
+	@ApiOperation(value = "上架房间", notes = "上架房间")
118
+	@ApiImplicitParams({
119
+			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "房间id集合"),
120
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
121
+	})
122
+	@RequestMapping(value = "/rental/shelf",method = RequestMethod.POST)
123
+	public ResponseBean shelfRental(@RequestBody String jsonString, HttpSession session){
124
+		ResponseBean responseBean = new ResponseBean();
125
+		UserElement userElement = getUserElement(session);
126
+		JSONObject jsonObject = JSONObject.parseObject(jsonString);
127
+		JSONArray ids = jsonObject.getJSONArray("idArray");
128
+		List<TpRentalHouse> rentalList = new ArrayList<>();
129
+		for (Object id : ids){
130
+			TpRentalHouse rentalHouse = new TpRentalHouse();
131
+			rentalHouse.setId((Integer) id);
132
+			rentalHouse.setHouseStatus("1");
133
+			rentalHouse.setUpdateUser(userElement.getId());
134
+			rentalHouse.setUpdateDate(LocalDateTime.now());
135
+			rentalList.add(rentalHouse);
136
+		}
137
+		
138
+		boolean state = tpRentalHouseService.updateBatchById(rentalList);
139
+		if (state){
140
+			responseBean.addSuccess("上架成功");
141
+		}else{
142
+			responseBean.addError("上架失败");
143
+		}
144
+		return responseBean;
145
+	}
146
+	
147
+	@ApiOperation(value = "下架房间", notes = "下架房间")
148
+	@ApiImplicitParams({
149
+			@ApiImplicitParam(paramType = "body", dataType = "String", name = "jsonString", value = "房间id集合"),
150
+			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token")
151
+	})
152
+	@RequestMapping(value = "/rental/obtained",method = RequestMethod.POST)
153
+	public ResponseBean obtainedRental(@RequestBody String jsonString, HttpSession session){
154
+		ResponseBean responseBean = new ResponseBean();
155
+		UserElement userElement = getUserElement(session);
156
+		JSONObject jsonObject = JSONObject.parseObject(jsonString);
157
+		JSONArray ids = jsonObject.getJSONArray("idArray");
158
+		List<TpRentalHouse> rentalList = new ArrayList<>();
159
+		for (Object id : ids){
160
+			TpRentalHouse rentalHouse = new TpRentalHouse();
161
+			rentalHouse.setId((Integer) id);
162
+			rentalHouse.setHouseStatus("2");
163
+			rentalHouse.setUpdateUser(userElement.getId());
164
+			rentalHouse.setUpdateDate(LocalDateTime.now());
165
+			rentalList.add(rentalHouse);
166
+		}
167
+		
168
+		boolean state = tpRentalHouseService.updateBatchById(rentalList);
169
+		if (state){
170
+			responseBean.addSuccess("下架成功");
171
+		}else{
172
+			responseBean.addError("下架失败");
173
+		}
174
+		return responseBean;
175
+	}
20 176
 }

+ 4
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/TpShopController.java 查看文件

@@ -10,10 +10,12 @@ import com.community.huiju.model.TpShop;
10 10
 import com.community.huiju.model.TpShopType;
11 11
 import com.community.huiju.service.ITpShopService;
12 12
 import com.netflix.ribbon.proxy.annotation.Http;
13
+import io.swagger.annotations.Api;
13 14
 import io.swagger.annotations.ApiImplicitParam;
14 15
 import io.swagger.annotations.ApiImplicitParams;
15 16
 import io.swagger.annotations.ApiOperation;
16 17
 import org.springframework.beans.factory.annotation.Autowired;
18
+import org.springframework.cloud.context.config.annotation.RefreshScope;
17 19
 import org.springframework.web.bind.annotation.PathVariable;
18 20
 import org.springframework.web.bind.annotation.RequestBody;
19 21
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -36,6 +38,8 @@ import java.util.List;
36 38
  */
37 39
 @RestController
38 40
 @RequestMapping("/")
41
+@RefreshScope
42
+@Api(value = "商铺API", description = "商铺API")
39 43
 public class TpShopController extends BaseController {
40 44
 	
41 45
 	@Autowired

+ 4
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpRentalHouseImgMapper.java 查看文件

@@ -3,6 +3,8 @@ package com.community.huiju.dao;
3 3
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4 4
 import com.community.huiju.model.TpRentalHouseImg;
5 5
 
6
+import java.util.List;
7
+
6 8
 /**
7 9
  * <p>
8 10
  * 出租房间图片 Mapper 接口
@@ -12,5 +14,6 @@ import com.community.huiju.model.TpRentalHouseImg;
12 14
  * @since 2019-05-13
13 15
  */
14 16
 public interface TpRentalHouseImgMapper extends BaseMapper<TpRentalHouseImg> {
15
-
17
+	
18
+	int batchInsert(List<TpRentalHouseImg> rentalHouseImgList);
16 19
 }

+ 12
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpRentalHouseMapper.java 查看文件

@@ -1,7 +1,11 @@
1 1
 package com.community.huiju.dao;
2 2
 
3 3
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
4 5
 import com.community.huiju.model.TpRentalHouse;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+import java.util.List;
5 9
 
6 10
 /**
7 11
  * <p>
@@ -12,5 +16,12 @@ import com.community.huiju.model.TpRentalHouse;
12 16
  * @since 2019-05-13
13 17
  */
14 18
 public interface TpRentalHouseMapper extends BaseMapper<TpRentalHouse> {
15
-
19
+	
20
+	/**
21
+	 * 获取公寓列表
22
+	 * @param page
23
+	 * @param tpRentalHouse
24
+	 * @return
25
+	 */
26
+	List<TpRentalHouse> getRentalList(Page page, @Param("tpRentalHouse") TpRentalHouse tpRentalHouse);
16 27
 }

+ 81
- 21
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpRentalHouse.java 查看文件

@@ -1,12 +1,15 @@
1 1
 package com.community.huiju.model;
2 2
 
3
+import com.baomidou.mybatisplus.annotation.IdType;
3 4
 import com.baomidou.mybatisplus.annotation.TableField;
5
+import com.baomidou.mybatisplus.annotation.TableId;
4 6
 import lombok.Data;
5 7
 import lombok.EqualsAndHashCode;
6 8
 import lombok.experimental.Accessors;
7 9
 
8 10
 import java.io.Serializable;
9 11
 import java.time.LocalDateTime;
12
+import java.util.List;
10 13
 
11 14
 /**
12 15
  * <p>
@@ -14,7 +17,7 @@ import java.time.LocalDateTime;
14 17
  * </p>
15 18
  *
16 19
  * @author jobob
17
- * @since 2019-05-13
20
+ * @since 2019-05-14
18 21
  */
19 22
 @Data
20 23
 @EqualsAndHashCode(callSuper = false)
@@ -22,6 +25,14 @@ import java.time.LocalDateTime;
22 25
 public class TpRentalHouse implements Serializable {
23 26
 
24 27
     private static final long serialVersionUID = 1L;
28
+    
29
+    @TableId(value = "id", type = IdType.AUTO)
30
+    private Integer id;
31
+    
32
+    /**
33
+     * 我们系统的小区ID
34
+     */
35
+    private Integer communityId;
25 36
 
26 37
     /**
27 38
      * 房间名称
@@ -98,45 +109,61 @@ public class TpRentalHouse implements Serializable {
98 109
      */
99 110
     private String bed;
100 111
 
112
+    /**
113
+     * 床垫 1 有
114
+     */
115
+    private String mattress;
116
+
101 117
     /**
102 118
      * 衣柜 1 有
103 119
      */
104 120
     private String wardrobe;
105 121
 
106 122
     /**
107
-     * 餐桌 1 有
123
+     * 沙发 1 有
108 124
      */
109
-    private String diningTable;
125
+    private String sofa;
110 126
 
111 127
     /**
112
-     * 电脑桌 1 有
128
+     *  洗衣机 1 有
113 129
      */
114
-    private String computerDesk;
130
+    private String washingMachine;
115 131
 
116 132
     /**
117
-     * 热水器 1 有
133
+     * 空调 1 有
118 134
      */
119
-    private String waterHeater;
135
+    private String airConditioning;
120 136
 
121 137
     /**
122
-     * 椅子 1 有
138
+     * 冰箱 1 有
123 139
      */
124
-    private String chair;
140
+    private String fridge;
125 141
 
126 142
     /**
127
-     *  洗衣机 1 
143
+     * 电视 1
128 144
      */
129
-    private String washingMachine;
145
+    @TableField("TV")
146
+    private String tv;
130 147
 
131 148
     /**
132
-     * 空调 1 
149
+     * 智能锁 1
133 150
      */
134
-    private String airConditioning;
151
+    private String smartLock;
152
+
153
+    /**
154
+     * 热水器 1 有
155
+     */
156
+    private String waterHeater;
135 157
 
136 158
     /**
137
-     * 台灯 1 有
159
+     * 桌子 1 有
138 160
      */
139
-    private String tableLamp;
161
+    private String desk;
162
+
163
+    /**
164
+     * 椅子 1 有
165
+     */
166
+    private String chair;
140 167
 
141 168
     /**
142 169
      * WiFi 1 有
@@ -145,14 +172,19 @@ public class TpRentalHouse implements Serializable {
145 172
     private String WiFi;
146 173
 
147 174
     /**
148
-     * 微波炉 1 有
175
+     * 厨房 1 有
149 176
      */
150
-    private String microwaveOven;
177
+    private String kitchen;
151 178
 
152 179
     /**
153
-     * 天然气 1 有
180
+     * 独卫 1 有
154 181
      */
155
-    private String naturalGas;
182
+    private String bathroom;
183
+
184
+    /**
185
+     * 阳台 1 有
186
+     */
187
+    private String balcony;
156 188
 
157 189
     /**
158 190
      * 创建时间
@@ -173,6 +205,34 @@ public class TpRentalHouse implements Serializable {
173 205
      * 更新人
174 206
      */
175 207
     private Integer updateUser;
176
-
177
-
208
+    
209
+    /**
210
+     * 开始价格
211
+     */
212
+    @TableField(exist = false)
213
+    private String startPrice;
214
+    
215
+    /**
216
+     * 结束价格
217
+     */
218
+    @TableField(exist = false)
219
+    private String endPrice;
220
+    
221
+    /**
222
+     * 更新人
223
+     */
224
+    @TableField(exist = false)
225
+    private String userName;
226
+    
227
+    /**
228
+     * 列表图片
229
+     */
230
+    @TableField(exist = false)
231
+    private String appListImg;
232
+    
233
+    /**
234
+     * 轮播图
235
+     */
236
+    @TableField(exist = false)
237
+    private List<String> appCarouselImg;
178 238
 }

+ 41
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/ITpRentalHouseService.java 查看文件

@@ -1,6 +1,8 @@
1 1
 package com.community.huiju.service;
2 2
 
3 3
 import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.commom.session.UserElement;
4 6
 import com.community.huiju.model.TpRentalHouse;
5 7
 
6 8
 /**
@@ -12,5 +14,43 @@ import com.community.huiju.model.TpRentalHouse;
12 14
  * @since 2019-05-13
13 15
  */
14 16
 public interface ITpRentalHouseService extends IService<TpRentalHouse> {
15
-
17
+	
18
+	/**
19
+	 * 获取公寓房间列表
20
+	 * @param id
21
+	 * @param houseName
22
+	 * @param startPrice
23
+	 * @param endPrice
24
+	 * @param rentalType
25
+	 * @param houseType
26
+	 * @param houseStatus
27
+	 * @param userElement
28
+	 * @param pageNum
29
+	 * @param pageSize
30
+	 * @return
31
+	 */
32
+	ResponseBean getRentalList(Integer id, String houseName, String startPrice, String endPrice, String rentalType, String houseType, String houseStatus, UserElement userElement, Integer pageNum, Integer pageSize);
33
+	
34
+	/**
35
+	 * 保存长租公寓房间信息
36
+	 * @param rentalHouse
37
+	 * @param userElement
38
+	 * @return
39
+	 */
40
+	ResponseBean saveRental(TpRentalHouse rentalHouse, UserElement userElement);
41
+	
42
+	/**
43
+	 * 根据ID取值
44
+	 * @param id
45
+	 * @return
46
+	 */
47
+	TpRentalHouse getRentalById(Integer id);
48
+	
49
+	/**
50
+	 * 更新公寓
51
+	 * @param rentalHouse
52
+	 * @param userElement
53
+	 * @return
54
+	 */
55
+	ResponseBean updateRental(TpRentalHouse rentalHouse, UserElement userElement);
16 56
 }

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

@@ -1,11 +1,24 @@
1 1
 package com.community.huiju.service.impl;
2 2
 
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
3 5
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
6
+import com.community.commom.mode.ResponseBean;
7
+import com.community.commom.session.UserElement;
8
+import com.community.huiju.dao.TpRentalHouseImgMapper;
4 9
 import com.community.huiju.dao.TpRentalHouseMapper;
5 10
 import com.community.huiju.model.TpRentalHouse;
11
+import com.community.huiju.model.TpRentalHouseImg;
6 12
 import com.community.huiju.service.ITpRentalHouseService;
13
+import org.springframework.beans.factory.annotation.Autowired;
7 14
 import org.springframework.stereotype.Service;
8 15
 
16
+import java.time.LocalDateTime;
17
+import java.util.ArrayList;
18
+import java.util.HashMap;
19
+import java.util.List;
20
+import java.util.Map;
21
+
9 22
 /**
10 23
  * <p>
11 24
  * 出租公寓表 服务实现类
@@ -16,5 +29,164 @@ import org.springframework.stereotype.Service;
16 29
  */
17 30
 @Service
18 31
 public class TpRentalHouseServiceImpl extends ServiceImpl<TpRentalHouseMapper, TpRentalHouse> implements ITpRentalHouseService {
19
-
32
+	
33
+	@Autowired
34
+	private TpRentalHouseMapper tpRentalHouseMapper;
35
+	
36
+	@Autowired
37
+	private TpRentalHouseImgMapper tpRentalHouseImgMapper;
38
+	
39
+	/**
40
+	 * 获取公寓房间列表
41
+	 *
42
+	 * @param id
43
+	 * @param houseName
44
+	 * @param startPrice
45
+	 * @param endPrice
46
+	 * @param rentalType
47
+	 * @param houseType
48
+	 * @param houseStatus
49
+	 * @param userElement
50
+	 * @param pageNum
51
+	 * @param pageSize
52
+	 * @return
53
+	 */
54
+	@Override
55
+	public ResponseBean getRentalList(Integer id, String houseName, String startPrice, String endPrice, String rentalType, String houseType, String houseStatus, UserElement userElement, Integer pageNum, Integer pageSize) {
56
+		ResponseBean responseBean = new ResponseBean();
57
+		Page page = new Page(pageNum,pageSize);
58
+		TpRentalHouse tpRentalHouse = new TpRentalHouse();
59
+		tpRentalHouse.setId(id);
60
+		tpRentalHouse.setHouseName(houseName);
61
+		tpRentalHouse.setRentalType(rentalType);
62
+		tpRentalHouse.setHouseType(houseType);
63
+		tpRentalHouse.setHouseStatus(houseStatus);
64
+		tpRentalHouse.setCommunityId(userElement.getCommunityId());
65
+		tpRentalHouse.setStartPrice(startPrice);
66
+		tpRentalHouse.setEndPrice(endPrice);
67
+		List<TpRentalHouse> list = tpRentalHouseMapper.getRentalList(page,tpRentalHouse);
68
+		Map<String,Object> map = new HashMap<>();
69
+		map.put("list", list);
70
+		map.put("total", page.getTotal());
71
+		responseBean.addSuccess(map);
72
+		return responseBean;
73
+	}
74
+	
75
+	/**
76
+	 * 保存长租公寓房间信息
77
+	 *
78
+	 * @param rentalHouse
79
+	 * @param userElement
80
+	 * @return
81
+	 */
82
+	@Override
83
+	public ResponseBean saveRental(TpRentalHouse rentalHouse, UserElement userElement) {
84
+		ResponseBean responseBean = new ResponseBean();
85
+		//插入房间信息
86
+		Integer communityId = userElement.getCommunityId();
87
+		Integer userId = userElement.getId();
88
+		LocalDateTime nowTime = LocalDateTime.now();
89
+		rentalHouse.setCommunityId(communityId);
90
+		rentalHouse.setCreateDate(nowTime);
91
+		rentalHouse.setCreateUser(userId);
92
+		tpRentalHouseMapper.insert(rentalHouse);
93
+		//插入公寓首页图信息
94
+		TpRentalHouseImg tpRentalHouseImg = new TpRentalHouseImg();
95
+		tpRentalHouseImg.setCommunityId(communityId);
96
+		tpRentalHouseImg.setCreateDate(nowTime);
97
+		tpRentalHouseImg.setRentalHouseId(rentalHouse.getId());
98
+		tpRentalHouseImg.setImgType("1");
99
+		tpRentalHouseImg.setImgUrl(rentalHouse.getAppListImg());
100
+		tpRentalHouseImgMapper.insert(tpRentalHouseImg);
101
+		//插入公寓轮播图信息
102
+		List<String> imgList = rentalHouse.getAppCarouselImg();
103
+		List<TpRentalHouseImg> rentalHouseImgList = new ArrayList<>();
104
+		imgList.stream().forEach(e -> {
105
+			TpRentalHouseImg rentalHouseImg = new TpRentalHouseImg();
106
+			rentalHouseImg.setCommunityId(communityId);
107
+			rentalHouseImg.setCreateDate(nowTime);
108
+			rentalHouseImg.setRentalHouseId(rentalHouse.getId());
109
+			rentalHouseImg.setImgType("2");
110
+			rentalHouseImg.setImgUrl(e);
111
+			rentalHouseImgList.add(rentalHouseImg);
112
+		});
113
+		tpRentalHouseImgMapper.batchInsert(rentalHouseImgList);
114
+		responseBean.addSuccess("插入成功");
115
+		return responseBean;
116
+	}
117
+	
118
+	/**
119
+	 * 根据ID取值
120
+	 *
121
+	 * @param id
122
+	 * @return
123
+	 */
124
+	@Override
125
+	public TpRentalHouse getRentalById(Integer id) {
126
+		//获取公寓数据
127
+		TpRentalHouse tpRentalHouse = tpRentalHouseMapper.selectById(id);
128
+		//获取公寓列表图片
129
+		QueryWrapper<TpRentalHouseImg> tpRentalHouseImgQueryWrapper = new QueryWrapper<>();
130
+		tpRentalHouseImgQueryWrapper.eq("community_id", tpRentalHouse.getCommunityId());
131
+		tpRentalHouseImgQueryWrapper.eq("rental_house_id",tpRentalHouse.getId());
132
+		tpRentalHouseImgQueryWrapper.eq("img_type","1");
133
+		TpRentalHouseImg tpRentalHouseImg = tpRentalHouseImgMapper.selectOne(tpRentalHouseImgQueryWrapper);
134
+		tpRentalHouse.setAppListImg(tpRentalHouseImg.getImgUrl());
135
+		//获取公寓轮播图图片
136
+		QueryWrapper<TpRentalHouseImg> carouseQueryWrapper = new QueryWrapper<>();
137
+		carouseQueryWrapper.eq("community_id", tpRentalHouse.getCommunityId());
138
+		carouseQueryWrapper.eq("rental_house_id",tpRentalHouse.getId());
139
+		carouseQueryWrapper.eq("img_type","2");
140
+		List<TpRentalHouseImg> tpRentalHouseImgList = tpRentalHouseImgMapper.selectList(carouseQueryWrapper);
141
+		List<String> imgList = new ArrayList<>();
142
+		tpRentalHouseImgList.stream().forEach(e -> {
143
+			imgList.add(e.getImgUrl());
144
+		});
145
+		tpRentalHouse.setAppCarouselImg(imgList);
146
+		return tpRentalHouse;
147
+	}
148
+	
149
+	/**
150
+	 * 更新公寓
151
+	 *
152
+	 * @param rentalHouse
153
+	 * @param userElement
154
+	 * @return
155
+	 */
156
+	@Override
157
+	public ResponseBean updateRental(TpRentalHouse rentalHouse, UserElement userElement) {
158
+		ResponseBean responseBean = new ResponseBean();
159
+		rentalHouse.setUpdateDate(LocalDateTime.now());
160
+		rentalHouse.setUpdateUser(userElement.getId());
161
+		tpRentalHouseMapper.updateById(rentalHouse);
162
+		//更新首页图片
163
+		QueryWrapper<TpRentalHouseImg> tpRentalHouseImgQueryWrapper = new QueryWrapper<>();
164
+		tpRentalHouseImgQueryWrapper.eq("community_id", rentalHouse.getCommunityId());
165
+		tpRentalHouseImgQueryWrapper.eq("rental_house_id",rentalHouse.getId());
166
+		tpRentalHouseImgQueryWrapper.eq("img_type","1");
167
+		TpRentalHouseImg tpRentalHouseImg = new TpRentalHouseImg();
168
+		tpRentalHouseImg.setImgUrl(rentalHouse.getAppListImg());
169
+		tpRentalHouseImgMapper.update(tpRentalHouseImg,tpRentalHouseImgQueryWrapper);
170
+		//更新轮播图,先删除在添加
171
+		QueryWrapper<TpRentalHouseImg> deleteQueryWrapper = new QueryWrapper<>();
172
+		deleteQueryWrapper.eq("community_id", rentalHouse.getCommunityId());
173
+		deleteQueryWrapper.eq("rental_house_id",rentalHouse.getId());
174
+		deleteQueryWrapper.eq("img_type","2");
175
+		tpRentalHouseImgMapper.delete(deleteQueryWrapper);
176
+		//插入公寓轮播图信息
177
+		List<String> imgList = rentalHouse.getAppCarouselImg();
178
+		List<TpRentalHouseImg> rentalHouseImgList = new ArrayList<>();
179
+		imgList.stream().forEach(e -> {
180
+			TpRentalHouseImg rentalHouseImg = new TpRentalHouseImg();
181
+			rentalHouseImg.setCommunityId(rentalHouse.getCommunityId());
182
+			rentalHouseImg.setCreateDate(LocalDateTime.now());
183
+			rentalHouseImg.setRentalHouseId(rentalHouse.getId());
184
+			rentalHouseImg.setImgType("2");
185
+			rentalHouseImg.setImgUrl(e);
186
+			rentalHouseImgList.add(rentalHouseImg);
187
+		});
188
+		tpRentalHouseImgMapper.batchInsert(rentalHouseImgList);
189
+		responseBean.addSuccess("更新成功");
190
+		return responseBean;
191
+	}
20 192
 }

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

@@ -22,8 +22,8 @@
22 22
                 AND date_format(create_date, '%Y-%m-%d') <![CDATA[>= ]]> date_format(#{beginTime}, '%Y-%m-%d')
23 23
                 AND date_format(create_date, '%Y-%m-%d')<![CDATA[<= ]]> date_format(#{endTime}, '%Y-%m-%d')
24 24
             </if>
25
-            order by sort desc
26 25
         </where>
26
+        order by sort desc
27 27
     </select>
28 28
 
29 29
 </mapper>

+ 7
- 1
CODE/smart-community/property-api/src/main/resources/mapper/TpRentalHouseImgMapper.xml 查看文件

@@ -1,5 +1,11 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 3
 <mapper namespace="com.community.huiju.dao.TpRentalHouseImgMapper">
4
-
4
+    <insert id="batchInsert" useGeneratedKeys="true" keyProperty="id" parameterType="java.util.ArrayList">
5
+        insert into tp_rental_house_img(community_id,rental_house_id,img_url,img_type,create_date)
6
+        VALUES
7
+        <foreach collection="list" item="item" index="index" separator=",">
8
+            (#{item.communityId},#{item.rentalHouseId},#{item.imgUrl},#{item.imgType},#{item.createDate})
9
+        </foreach>
10
+    </insert>
5 11
 </mapper>

+ 38
- 0
CODE/smart-community/property-api/src/main/resources/mapper/TpRentalHouseMapper.xml 查看文件

@@ -2,4 +2,42 @@
2 2
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3 3
 <mapper namespace="com.community.huiju.dao.TpRentalHouseMapper">
4 4
 
5
+    <select id="getRentalList" resultType="com.community.huiju.model.TpRentalHouse">
6
+        SELECT
7
+            t.id,
8
+            t.house_name,
9
+            t.rental_price,
10
+            t.rental_type,
11
+            t.house_type,
12
+            t.house_status,
13
+            t.sort,
14
+            t.update_date,
15
+            u.user_name
16
+        FROM
17
+            tp_rental_house t
18
+        LEFT JOIN tp_user u ON t.update_user = u.id
19
+        where 1=1
20
+        and t.community_id = #{tpRentalHouse.communityId}
21
+        <if test="tpRentalHouse.id != null and tpRentalHouse.id != ''">
22
+            and t.id like concat('%',#{tpRentalHouse.id},'%')
23
+        </if>
24
+        <if test="tpRentalHouse.houseName != null and tpRentalHouse.houseName != ''">
25
+            and t.house_name like concat('%',#{tpRentalHouse.houseName},'%')
26
+        </if>
27
+        <if test="tpRentalHouse.rentalType != null and tpRentalHouse.rentalType != ''">
28
+            and t.rental_type  = #{tpRentalHouse.rentalType}
29
+        </if>
30
+        <if test="tpRentalHouse.houseType != null and tpRentalHouse.houseType != ''">
31
+            and t.house_type  = #{tpRentalHouse.houseType}
32
+        </if>
33
+        <if test="tpRentalHouse.houseStatus != null and tpRentalHouse.houseStatus != ''">
34
+            and t.house_status  = #{tpRentalHouse.houseStatus}
35
+        </if>
36
+        <if test="tpRentalHouse.startPrice != null and tpRentalHouse.startPrice != ''">
37
+            and t.rental_price  >= #{tpRentalHouse.startPrice}
38
+        </if>
39
+        <if test="tpRentalHouse.endPrice != null and tpRentalHouse.endPrice != ''">
40
+            and t.rental_price  &lt;= #{tpRentalHouse.endPrice}
41
+        </if>
42
+    </select>
5 43
 </mapper>

+ 52
- 0
VUECODE/smart-property-manage/src/api/rental.js 查看文件

@@ -0,0 +1,52 @@
1
+import request from '@/utils/request'
2
+
3
+export function fetchRentalList(query) {
4
+  return request({
5
+    url: '/rentals',
6
+    method: 'get',
7
+    params: query
8
+  })
9
+}
10
+
11
+export function obtainedRental(ids) {
12
+  return request({
13
+    url: '/rental/obtained',
14
+    method: 'post',
15
+    data: {
16
+      idArray: ids
17
+    }
18
+  })
19
+}
20
+
21
+export function shelfRental(ids) {
22
+  return request({
23
+    url: '/rental/shelf',
24
+    method: 'post',
25
+    data: {
26
+      idArray: ids
27
+    }
28
+  })
29
+}
30
+
31
+export function addRental(listQuery) {
32
+  return request({
33
+    url: '/rental/add',
34
+    method: 'post',
35
+    data: listQuery
36
+  })
37
+}
38
+
39
+export function updateRental(listQuery) {
40
+  return request({
41
+    url: '/rental/update',
42
+    method: 'post',
43
+    data: listQuery
44
+  })
45
+}
46
+
47
+export function getRental(id) {
48
+  return request({
49
+    url: '/rental/get/' + id,
50
+    method: 'get'
51
+  })
52
+}

+ 1
- 1
VUECODE/smart-property-manage/src/router/index.js 查看文件

@@ -434,7 +434,7 @@ export const constantRouterMap = [
434 434
       {
435 435
         path: '/rental/add',
436 436
         component: () => import('@/views/rental/rentalAdd'),
437
-        name: 'shop-add',
437
+        name: 'rental-add',
438 438
         hidden: true,
439 439
         meta: { title: '添加房间信息', icon: 'table' }
440 440
       },

+ 4
- 1
VUECODE/smart-property-manage/src/store/index.js 查看文件

@@ -24,6 +24,8 @@ import equipment from './modules/equipment'
24 24
 import shopType from './modules/shopType'
25 25
 import grogshop from './modules/grogshop'
26 26
 import license from './modules/license'
27
+import rental from './modules/rental'
28
+
27 29
 Vue.use(Vuex)
28 30
 
29 31
 const store = new Vuex.Store({
@@ -50,7 +52,8 @@ const store = new Vuex.Store({
50 52
     equipment,
51 53
     shopType,
52 54
     grogshop,
53
-    license
55
+    license,
56
+    rental
54 57
   },
55 58
   getters
56 59
 })

+ 70
- 0
VUECODE/smart-property-manage/src/store/modules/rental.js 查看文件

@@ -0,0 +1,70 @@
1
+import { fetchRentalList, shelfRental, obtainedRental, addRental, getRental, updateRental } from '@/api/rental'
2
+
3
+const transaction = {
4
+  namespaced: true,
5
+  state: {
6
+  },
7
+
8
+  mutations: {
9
+  },
10
+
11
+  actions: {
12
+    // 获取收费组列表
13
+    FetchRentalList({ commit }, listQuery) {
14
+      return new Promise((resolve, reject) => {
15
+        fetchRentalList(listQuery).then(response => {
16
+          resolve(response)
17
+        }).catch(error => {
18
+          reject(error)
19
+        })
20
+      })
21
+    },
22
+    AddRental({ commit }, listQuery) {
23
+      return new Promise((resolve, reject) => {
24
+        addRental(listQuery).then(response => {
25
+          resolve(response)
26
+        }).catch(error => {
27
+          reject(error)
28
+        })
29
+      })
30
+    },
31
+    UpdateRental({ commit }, listQuery) {
32
+      return new Promise((resolve, reject) => {
33
+        updateRental(listQuery).then(response => {
34
+          resolve(response)
35
+        }).catch(error => {
36
+          reject(error)
37
+        })
38
+      })
39
+    },
40
+    GetRental({ commit }, id) {
41
+      return new Promise((resolve, reject) => {
42
+        getRental(id).then(response => {
43
+          resolve(response)
44
+        }).catch(error => {
45
+          reject(error)
46
+        })
47
+      })
48
+    },
49
+    ShelfRental({ commit }, ids) {
50
+      return new Promise((resolve, reject) => {
51
+        shelfRental(ids).then(response => {
52
+          resolve(response)
53
+        }).catch(error => {
54
+          reject(error)
55
+        })
56
+      })
57
+    },
58
+    ObtainedRental({ commit }, ids) {
59
+      return new Promise((resolve, reject) => {
60
+        obtainedRental(ids).then(response => {
61
+          resolve(response)
62
+        }).catch(error => {
63
+          reject(error)
64
+        })
65
+      })
66
+    }
67
+  }
68
+}
69
+
70
+export default transaction

+ 97
- 75
VUECODE/smart-property-manage/src/views/rental/rentalAdd.vue 查看文件

@@ -1,23 +1,14 @@
1 1
 <template>
2 2
   <div class="root">
3 3
     <el-form ref="ruleForm" :model="listData" :rules="rules" label-width="150px" class="add-ruleForm">
4
-      <el-form-item label="商铺名称" prop="shopName">
5
-        <el-input v-model="listData.shopName"/>
4
+      <el-form-item label="房间名称" prop="houseName">
5
+        <el-input v-model="listData.houseName"/>
6 6
       </el-form-item>
7
-      <el-form-item label="商铺说明" prop="remark">
8
-        <el-input v-model="listData.remark"/>
7
+      <el-form-item label="房间租金" prop="rentalPrice">
8
+        <el-input v-model="listData.rentalPrice"/>
9 9
       </el-form-item>
10
-      <el-form-item label="app首页展示图" prop="appIndexImg">
11
-        <el-upload
12
-          class="avatar-uploader"
13
-          name="uploadFiles"
14
-          :action="uploadImgUrl"
15
-          :show-file-list="false"
16
-          :on-success="handleAppIndexSuccess"
17
-          :before-upload="beforeAvatarUpload">
18
-          <img v-if="listData.appIndexImg" :src="listData.appIndexImg" class="avatar">
19
-          <i v-else class="el-icon-plus avatar-uploader-icon"></i>
20
-        </el-upload>
10
+      <el-form-item label="面积" prop="area">
11
+        <el-input v-model="listData.area"/>
21 12
       </el-form-item>
22 13
       <el-form-item label="app列表展示图" prop="appListImg">
23 14
         <el-upload
@@ -31,7 +22,21 @@
31 22
           <i v-else class="el-icon-plus avatar-uploader-icon"></i>
32 23
         </el-upload>
33 24
       </el-form-item>
34
-      <el-form-item label="app商铺轮播图" prop="appCarouselImg">
25
+      <el-form-item label="户型" prop="houseType">
26
+        <el-select v-model="listData.houseType" placeholder="请选择">
27
+            <el-option label="一室居" value="1"/>
28
+            <el-option label="二室居" value="2"/>
29
+            <el-option label="三室居" value="3"/>
30
+            <el-option label="四室居及以上" value="4"/>
31
+          </el-select>
32
+      </el-form-item>
33
+      <el-form-item label="租赁方式" prop="rentalType">
34
+        <el-select v-model="listData.rentalType" placeholder="请选择">
35
+            <el-option label="整租" value="1"/>
36
+            <el-option label="合租" value="2"/>
37
+          </el-select>
38
+      </el-form-item>
39
+      <el-form-item label="轮播图" prop="appCarouselImg">
35 40
         <el-upload
36 41
           name="uploadFiles"
37 42
           :limit="6"
@@ -46,32 +51,48 @@
46 51
           <img width="100%" :src="dialogImageUrl" alt="">
47 52
         </el-dialog>
48 53
       </el-form-item>
49
-      <el-form-item label="权重" prop="sort">
50
-        <el-input v-model="listData.sort"/>
51
-      </el-form-item>
52
-      <el-form-item label="商铺类型" prop="shopTypeId">
53
-        <el-select v-model="listData.shopTypeId" placeholder="商铺类型" clearable class="filter-item">
54
-          <el-option v-for="item in shopTypeList" :key="item.id" :value="item.id" :label="item.typeName"/>
55
-        </el-select>
56
-      </el-form-item>
57
-      <el-form-item label="上架状态" prop="shopStatus">
58
-        <el-select v-model="listData.shopStatus" placeholder="请选择">
54
+      <el-form-item label="上架状态" prop="houseStatus">
55
+        <el-select v-model="listData.houseStatus" placeholder="请选择">
59 56
           <el-option label="已上架" value="1"/>
60 57
           <el-option label="已下架" value="2"/>
61 58
         </el-select>
62 59
       </el-form-item>
63
-      <el-form-item label="联系电话" prop="shopTel">
64
-        <el-input v-model="listData.shopTel"/>
60
+      <el-form-item label="楼层" prop="houseLevel">
61
+         <el-input v-model="listData.houseLevel"/>
62
+      </el-form-item>
63
+      <el-form-item label="特色标签" prop="houseLabel">
64
+        <el-input v-model="listData.houseLabel"/>
65
+      </el-form-item>
66
+      <el-form-item label="权重" prop="sort">
67
+        <el-input v-model="listData.sort"/>
68
+      </el-form-item>
69
+      <el-form-item label="联系电话" prop="houseTel">
70
+        <el-input v-model="listData.houseTel"/>
65 71
       </el-form-item>
66
-      <el-form-item label="商铺地址" prop="shopAddress">
67
-        <el-input v-model="listData.shopAddress"/>
72
+      <el-form-item label="小区地址" prop="communityAddress">
73
+        <el-input v-model="listData.communityAddress"/>
68 74
       </el-form-item>
69
-      <el-form-item label="人均消费" prop="averagePrice">
70
-        <el-input v-model="listData.averagePrice"/>
75
+      <el-form-item label="房屋配套">
76
+        <el-checkbox v-model="listData.bed" true-label="1" false-label="0">床</el-checkbox>
77
+        <el-checkbox v-model="listData.mattress" true-label="1" false-label="0">床垫</el-checkbox>
78
+        <el-checkbox v-model="listData.wardrobe" true-label="1" false-label="0">衣柜</el-checkbox>
79
+        <el-checkbox v-model="listData.sofa" true-label="1" false-label="0">沙发</el-checkbox>
80
+        <el-checkbox v-model="listData.washingMachine" true-label="1" false-label="0">洗衣机</el-checkbox>
81
+        <el-checkbox v-model="listData.airConditioning" true-label="1" false-label="0">空调</el-checkbox>
82
+        <el-checkbox v-model="listData.fridge" true-label="1" false-label="0">冰箱</el-checkbox>
83
+        <el-checkbox v-model="listData.TV" true-label="1" false-label="0">电视</el-checkbox>
84
+        <el-checkbox v-model="listData.smartLock" true-label="1" false-label="0">智能锁</el-checkbox>
85
+        <el-checkbox v-model="listData.waterHeater" true-label="1" false-label="0">热水器</el-checkbox>
86
+        <el-checkbox v-model="listData.desk" true-label="1" false-label="0">桌子</el-checkbox>
87
+        <el-checkbox v-model="listData.chair" true-label="1" false-label="0">椅子</el-checkbox>
88
+        <el-checkbox v-model="listData.WiFi" true-label="1" false-label="0">网络</el-checkbox>
89
+        <el-checkbox v-model="listData.kitchen" true-label="1" false-label="0">厨房</el-checkbox>
90
+        <el-checkbox v-model="listData.bathroom" true-label="1" false-label="0">独卫</el-checkbox>
91
+        <el-checkbox v-model="listData.balcony" true-label="1" false-label="0">阳台</el-checkbox>
71 92
       </el-form-item>
72 93
       <el-form-item label="高德坐标">
73
-        <el-input placeholder="经度" v-model="listData.shopLongitude" style="width: 150px;" />
74
-        <el-input placeholder="纬度" v-model="listData.shopLatitude" style="width: 150px;" />
94
+        <el-input placeholder="经度" v-model="listData.communityLongitude" style="width: 150px;" />
95
+        <el-input placeholder="纬度" v-model="listData.communityLatitude" style="width: 150px;" />
75 96
       </el-form-item>
76 97
       <el-form-item label="">
77 98
          <!-- 地图 -->
@@ -82,7 +103,7 @@
82 103
           </el-amap>
83 104
         </div>
84 105
       </el-form-item>
85
-      <el-form-item label="商铺介绍">
106
+      <el-form-item label="房间介绍">
86 107
           <!-- <el-input v-model="addForm.bannerContent" placeholder="内容详情"/> -->
87 108
           <div id="father">
88 109
             <wangeditor @wangeditorEvent="wangeditorValue"/>
@@ -107,25 +128,43 @@ export default {
107 128
       events: {
108 129
         click: e => {
109 130
           // _self.postData.Coordinate = e.lnglat.lat + ',' + e.lnglat.lng
110
-          this.listData.shopLongitude = e.lnglat.lng
111
-          this.listData.shopLatitude = e.lnglat.lat
131
+          this.listData.communityLongitude = e.lnglat.lng
132
+          this.listData.communityLatitude = e.lnglat.lat
112 133
         }
113 134
       },
114 135
       listData: {
115
-        shopName: '',
116
-        remark: '',
117
-        appIndexImg: '',
136
+        houseName: '',
137
+        rentalPrice: '',
138
+        area: '',
118 139
         appListImg: '',
119 140
         appCarouselImg: [],
141
+        houseType: '',
142
+        rentalType: '',
143
+        houseStatus: '',
144
+        houseLevel: '',
145
+        houseLabel: '',
120 146
         sort: '',
121
-        shopTypeId: '',
122
-        shopStatus: '',
123
-        shopTel: '',
124
-        shopAddress: '',
125
-        averagePrice: '',
126
-        shopLongitude: '',
127
-        shopLatitude: '',
128
-        shopIntroduction: ''
147
+        houseTel: '',
148
+        communityAddress: '',
149
+        communityLongitude: '',
150
+        communityLatitude: '',
151
+        houseIntroduction: '',
152
+        bed: '',
153
+        mattress: '',
154
+        wardrobe: '',
155
+        sofa: '',
156
+        washingMachine: '',
157
+        airConditioning: '',
158
+        fridge: '',
159
+        TV: '',
160
+        smartLock: '',
161
+        waterHeater: '',
162
+        desk: '',
163
+        chair: '',
164
+        WiFi: '',
165
+        kitchen: '',
166
+        bathroom: '',
167
+        balcony: ''
129 168
       },
130 169
       dialogImageUrl: '',
131 170
       dialogVisible: false,
@@ -139,32 +178,22 @@ export default {
139 178
       mapCenter: [118.789509, 32.019989],
140 179
       tableKey: 0,
141 180
       rules: {
142
-        typeName: [
143
-          { required: true, message: '请输入商铺名称', trigger: 'blur' }
181
+        houseName: [
182
+          { required: true, message: '请输入房间名称', trigger: 'blur' }
144 183
         ],
145
-        remark: [
146
-          { required: true, message: '请输入商铺说明', trigger: 'blur' }
147
-        ],
148
-        shopTel: [
184
+        houseTel: [
149 185
           { required: true, message: '请输入联系电话', trigger: 'blur' }
150 186
         ],
151
-        shopAddress: [
152
-          { required: true, message: '请输入商铺地址', trigger: 'blur' }
153
-        ],
154
-        appIndexImg: [
155
-          { required: true, message: 'app首页展示图', trigger: 'blur' }
156
-        ],
157 187
         appListImg: [
158 188
           { required: true, message: 'app列表展示图', trigger: 'blur' }
159 189
         ],
160 190
         appCarouselImg: [
161
-          { required: true, message: 'app商铺轮播图', trigger: 'blur' }
191
+          { required: true, message: '轮播图', trigger: 'blur' }
162 192
         ],
163 193
       }
164 194
     }
165 195
   },
166 196
   mounted() {
167
-    this.getShopTypeList()
168 197
   },
169 198
   methods: {
170 199
      addMarker() {
@@ -194,13 +223,6 @@ export default {
194 223
       this.dialogImageUrl = file.url;
195 224
       this.dialogVisible = true;
196 225
     },
197
-    getShopTypeList() {
198
-      this.$store.dispatch('shopType/FetchShopTypeSelect', this.listData).then((res) => {
199
-        this.shopTypeList = res.data
200
-      }).catch(() => {
201
-        console.log('error ListAnnouncement')
202
-      })
203
-    },
204 226
     onSearchResult(pois) {
205 227
       // 搜索地图
206 228
       let latSum = 0
@@ -220,12 +242,12 @@ export default {
220 242
       }
221 243
     },
222 244
     wangeditorValue(value) {
223
-      this.listData.shopIntroduction = value // 在这里接受子组件传过来的参数,赋值给data里的参数
245
+      this.listData.houseIntroduction = value // 在这里接受子组件传过来的参数,赋值给data里的参数
224 246
     },
225 247
     submitForm(formName) { // 提交
226 248
       this.$refs[formName].validate((valid) => {
227 249
         if (valid) {
228
-          this.addShop()
250
+          this.addRental()
229 251
         } else {
230 252
           console.log('error submit!!')
231 253
           return false
@@ -241,7 +263,7 @@ export default {
241 263
       console.log(this.isRegistered)
242 264
       this.$refs[formName].resetFields()
243 265
     },
244
-    addShop() {
266
+    addRental() {
245 267
       // 加载框
246 268
       const loading = this.$loading({
247 269
         lock: true,
@@ -249,13 +271,13 @@ export default {
249 271
         spinner: 'el-icon-loading',
250 272
         background: 'rgba(0, 0, 0, 0.7)'
251 273
       })
252
-      this.$store.dispatch('shopType/AddShop', this.listData).then((res) => {
274
+      this.$store.dispatch('rental/AddRental', this.listData).then((res) => {
253 275
         if (res.code === '0') {
254 276
           this.$message({
255 277
             message: res.message,
256 278
             type: 'success'
257 279
           })
258
-          this.$router.push({ name: 'shop-index' })
280
+          this.$router.push({ name: 'rental-index' })
259 281
           loading.close()
260 282
           return
261 283
         }
@@ -263,7 +285,7 @@ export default {
263 285
         loading.close()
264 286
       }).catch(() => {
265 287
         loading.close()
266
-        console.log('error AddBuilding')
288
+        console.log('error addRental')
267 289
       })
268 290
     }
269 291
   }

+ 107
- 85
VUECODE/smart-property-manage/src/views/rental/rentalEdit.vue 查看文件

@@ -1,23 +1,14 @@
1 1
 <template>
2 2
   <div class="root">
3 3
     <el-form ref="ruleForm" :model="listData" :rules="rules" label-width="150px" class="add-ruleForm">
4
-      <el-form-item label="商铺名称" prop="shopName">
5
-        <el-input v-model="listData.shopName"/>
4
+      <el-form-item label="房间名称" prop="houseName">
5
+        <el-input v-model="listData.houseName"/>
6 6
       </el-form-item>
7
-      <el-form-item label="商铺说明" prop="remark">
8
-        <el-input v-model="listData.remark"/>
7
+      <el-form-item label="房间租金" prop="rentalPrice">
8
+        <el-input v-model="listData.rentalPrice"/>
9 9
       </el-form-item>
10
-      <el-form-item label="app首页展示图" prop="appIndexImg">
11
-        <el-upload
12
-          class="avatar-uploader"
13
-          name="uploadFiles"
14
-          :action="uploadImgUrl"
15
-          :show-file-list="false"
16
-          :on-success="handleAppIndexSuccess"
17
-          :before-upload="beforeAvatarUpload">
18
-          <img v-if="listData.appIndexImg" :src="listData.appIndexImg" class="avatar">
19
-          <i v-else class="el-icon-plus avatar-uploader-icon"></i>
20
-        </el-upload>
10
+      <el-form-item label="面积" prop="area">
11
+        <el-input v-model="listData.area"/>
21 12
       </el-form-item>
22 13
       <el-form-item label="app列表展示图" prop="appListImg">
23 14
         <el-upload
@@ -31,13 +22,27 @@
31 22
           <i v-else class="el-icon-plus avatar-uploader-icon"></i>
32 23
         </el-upload>
33 24
       </el-form-item>
34
-      <el-form-item label="app商铺轮播图" prop="appCarouselImg">
25
+      <el-form-item label="户型" prop="houseType">
26
+        <el-select v-model="listData.houseType" placeholder="请选择">
27
+            <el-option label="一室居" value="1"/>
28
+            <el-option label="二室居" value="2"/>
29
+            <el-option label="三室居" value="3"/>
30
+            <el-option label="四室居及以上" value="4"/>
31
+          </el-select>
32
+      </el-form-item>
33
+      <el-form-item label="租赁方式" prop="rentalType">
34
+        <el-select v-model="listData.rentalType" placeholder="请选择">
35
+            <el-option label="整租" value="1"/>
36
+            <el-option label="合租" value="2"/>
37
+          </el-select>
38
+      </el-form-item>
39
+      <el-form-item label="轮播图" prop="appCarouselImg">
35 40
         <el-upload
36 41
           name="uploadFiles"
37 42
           :limit="6"
43
+          :file-list="displayAppCarouselImg"
38 44
           :action="uploadImgUrl"
39 45
           list-type="picture-card"
40
-          :file-list="displayAppCarouselImg"
41 46
           :on-preview="handlePictureCardPreview"
42 47
           :on-remove="handleRemove"
43 48
           :on-success="handleSuccessCarouselImg">
@@ -47,32 +52,48 @@
47 52
           <img width="100%" :src="dialogImageUrl" alt="">
48 53
         </el-dialog>
49 54
       </el-form-item>
50
-      <el-form-item label="权重" prop="sort">
51
-        <el-input v-model="listData.sort"/>
52
-      </el-form-item>
53
-      <el-form-item label="商铺类型" prop="shopTypeId">
54
-        <el-select v-model="listData.shopTypeId" placeholder="商铺类型" clearable class="filter-item">
55
-          <el-option v-for="item in shopTypeList" :key="item.id" :value="item.id" :label="item.typeName"/>
56
-        </el-select>
57
-      </el-form-item>
58
-      <el-form-item label="上架状态" prop="shopStatus">
59
-        <el-select v-model="listData.shopStatus" placeholder="请选择">
55
+      <el-form-item label="上架状态" prop="houseStatus">
56
+        <el-select v-model="listData.houseStatus" placeholder="请选择">
60 57
           <el-option label="已上架" value="1"/>
61 58
           <el-option label="已下架" value="2"/>
62 59
         </el-select>
63 60
       </el-form-item>
64
-      <el-form-item label="联系电话" prop="shopTel">
65
-        <el-input v-model="listData.shopTel"/>
61
+      <el-form-item label="楼层" prop="houseLevel">
62
+         <el-input v-model="listData.houseLevel"/>
63
+      </el-form-item>
64
+      <el-form-item label="特色标签" prop="houseLabel">
65
+        <el-input v-model="listData.houseLabel"/>
66
+      </el-form-item>
67
+      <el-form-item label="权重" prop="sort">
68
+        <el-input v-model="listData.sort"/>
66 69
       </el-form-item>
67
-      <el-form-item label="商铺地址" prop="shopAddress">
68
-        <el-input v-model="listData.shopAddress"/>
70
+      <el-form-item label="联系电话" prop="houseTel">
71
+        <el-input v-model="listData.houseTel"/>
69 72
       </el-form-item>
70
-      <el-form-item label="人均消费" prop="averagePrice">
71
-        <el-input v-model="listData.averagePrice"/>
73
+      <el-form-item label="小区地址" prop="communityAddress">
74
+        <el-input v-model="listData.communityAddress"/>
75
+      </el-form-item>
76
+      <el-form-item label="房屋配套">
77
+        <el-checkbox v-model="listData.bed" true-label="1" false-label="0">床</el-checkbox>
78
+        <el-checkbox v-model="listData.mattress" true-label="1" false-label="0">床垫</el-checkbox>
79
+        <el-checkbox v-model="listData.wardrobe" true-label="1" false-label="0">衣柜</el-checkbox>
80
+        <el-checkbox v-model="listData.sofa" true-label="1" false-label="0">沙发</el-checkbox>
81
+        <el-checkbox v-model="listData.washingMachine" true-label="1" false-label="0">洗衣机</el-checkbox>
82
+        <el-checkbox v-model="listData.airConditioning" true-label="1" false-label="0">空调</el-checkbox>
83
+        <el-checkbox v-model="listData.fridge" true-label="1" false-label="0">冰箱</el-checkbox>
84
+        <el-checkbox v-model="listData.tv" true-label="1" false-label="0">电视</el-checkbox>
85
+        <el-checkbox v-model="listData.smartLock" true-label="1" false-label="0">智能锁</el-checkbox>
86
+        <el-checkbox v-model="listData.waterHeater" true-label="1" false-label="0">热水器</el-checkbox>
87
+        <el-checkbox v-model="listData.desk" true-label="1" false-label="0">桌子</el-checkbox>
88
+        <el-checkbox v-model="listData.chair" true-label="1" false-label="0">椅子</el-checkbox>
89
+        <el-checkbox v-model="listData.wiFi" true-label="1" false-label="0">网络</el-checkbox>
90
+        <el-checkbox v-model="listData.kitchen" true-label="1" false-label="0">厨房</el-checkbox>
91
+        <el-checkbox v-model="listData.bathroom" true-label="1" false-label="0">独卫</el-checkbox>
92
+        <el-checkbox v-model="listData.balcony" true-label="1" false-label="0">阳台</el-checkbox>
72 93
       </el-form-item>
73 94
       <el-form-item label="高德坐标">
74
-        <el-input placeholder="经度" v-model="listData.shopLongitude" style="width: 150px;" />
75
-        <el-input placeholder="纬度" v-model="listData.shopLatitude" style="width: 150px;" />
95
+        <el-input placeholder="经度" v-model="listData.communityLongitude" style="width: 150px;" />
96
+        <el-input placeholder="纬度" v-model="listData.communityLatitude" style="width: 150px;" />
76 97
       </el-form-item>
77 98
       <el-form-item label="">
78 99
          <!-- 地图 -->
@@ -83,10 +104,10 @@
83 104
           </el-amap>
84 105
         </div>
85 106
       </el-form-item>
86
-      <el-form-item label="商铺介绍">
107
+      <el-form-item label="房间介绍">
87 108
           <!-- <el-input v-model="addForm.bannerContent" placeholder="内容详情"/> -->
88 109
           <div id="father">
89
-            <wangeditor :content="listData.shopIntroduction" @wangeditorEvent="wangeditorValue"/>
110
+            <wangeditor :content="listData.houseIntroduction" @wangeditorEvent="wangeditorValue"/>
90 111
           </div>
91 112
         </el-form-item>
92 113
       <el-form-item>
@@ -107,32 +128,49 @@ export default {
107 128
       events: {
108 129
         click: e => {
109 130
           // _self.postData.Coordinate = e.lnglat.lat + ',' + e.lnglat.lng
110
-          this.listData.shopLongitude = e.lnglat.lng
111
-          this.listData.shopLatitude = e.lnglat.lat
131
+          this.listData.communityLongitude = e.lnglat.lng
132
+          this.listData.communityLatitude = e.lnglat.lat
112 133
         }
113 134
       },
114 135
       listData: {
115
-        id: '',
116
-        shopName: '',
117
-        remark: '',
118
-        appIndexImg: '',
136
+        houseName: '',
137
+        rentalPrice: '',
138
+        area: '',
119 139
         appListImg: '',
120 140
         appCarouselImg: [],
141
+        houseType: '',
142
+        rentalType: '',
143
+        houseStatus: '',
144
+        houseLevel: '',
145
+        houseLabel: '',
121 146
         sort: '',
122
-        shopTypeId: '',
123
-        shopStatus: '',
124
-        shopTel: '',
125
-        shopAddress: '',
126
-        averagePrice: '',
127
-        shopLongitude: '',
128
-        shopLatitude: '',
129
-        shopIntroduction: ''
147
+        houseTel: '',
148
+        communityAddress: '',
149
+        communityLongitude: '',
150
+        communityLatitude: '',
151
+        houseIntroduction: '',
152
+        bed: '',
153
+        mattress: '',
154
+        wardrobe: '',
155
+        sofa: '',
156
+        washingMachine: '',
157
+        airConditioning: '',
158
+        fridge: '',
159
+        tv: '',
160
+        smartLock: '',
161
+        waterHeater: '',
162
+        desk: '',
163
+        chair: '',
164
+        wiFi: '',
165
+        kitchen: '',
166
+        bathroom: '',
167
+        balcony: ''
130 168
       },
131
-      displayAppCarouselImg: [],
132 169
       dialogImageUrl: '',
133 170
       dialogVisible: false,
134 171
       uploadImgUrl: process.env.BASE_API + '/uploadimage',
135 172
       markers: [],
173
+      displayAppCarouselImg: [],
136 174
       shopTypeList: [],
137 175
       searchOption: {
138 176
         city: '南京',
@@ -141,26 +179,17 @@ export default {
141 179
       mapCenter: [118.789509, 32.019989],
142 180
       tableKey: 0,
143 181
       rules: {
144
-        typeName: [
145
-          { required: true, message: '请输入商铺名称', trigger: 'blur' }
146
-        ],
147
-        remark: [
148
-          { required: true, message: '请输入商铺说明', trigger: 'blur' }
182
+        houseName: [
183
+          { required: true, message: '请输入房间名称', trigger: 'blur' }
149 184
         ],
150
-        shopTel: [
185
+        houseTel: [
151 186
           { required: true, message: '请输入联系电话', trigger: 'blur' }
152 187
         ],
153
-        shopAddress: [
154
-          { required: true, message: '请输入商铺地址', trigger: 'blur' }
155
-        ],
156
-        appIndexImg: [
157
-          { required: true, message: 'app首页展示图', trigger: 'blur' }
158
-        ],
159 188
         appListImg: [
160 189
           { required: true, message: 'app列表展示图', trigger: 'blur' }
161 190
         ],
162 191
         appCarouselImg: [
163
-          { required: true, message: 'app商铺轮播图', trigger: 'blur' }
192
+          { required: true, message: '轮播图', trigger: 'blur' }
164 193
         ],
165 194
       }
166 195
     }
@@ -168,7 +197,6 @@ export default {
168 197
   created() {
169 198
     this.listData.id = this.$route.query.id
170 199
     this.getById()
171
-    this.getShopTypeList()
172 200
   },
173 201
   methods: {
174 202
      addMarker() {
@@ -177,13 +205,14 @@ export default {
177 205
       this.markers.push([lng, lat])
178 206
     },
179 207
     getById() {
180
-      this.$store.dispatch('shopType/GetShop', this.listData.id).then((res) => {
181
-        const shopData = res.data
182
-        this.listData = shopData
183
-        alert(this.listData.shopIntroduction)
208
+      this.$store.dispatch('rental/GetRental', this.listData.id).then((res) => {
209
+        const rentalData = res.data
210
+        console.log(rentalData)
211
+        this.listData = { ...rentalData }
212
+        
184 213
         // 多张图片进行遍历
185
-        for (let i = 0; i < shopData.appCarouselImg.length; i++) {
186
-          this.displayAppCarouselImg.push({ url: shopData.appCarouselImg[i] })
214
+        for (let i = 0; i < rentalData.appCarouselImg.length; i++) {
215
+          this.displayAppCarouselImg.push({ url: rentalData.appCarouselImg[i] })
187 216
         }
188 217
       })
189 218
     },
@@ -209,13 +238,6 @@ export default {
209 238
       this.dialogImageUrl = file.url;
210 239
       this.dialogVisible = true;
211 240
     },
212
-    getShopTypeList() {
213
-      this.$store.dispatch('shopType/FetchShopTypeSelect', this.listData).then((res) => {
214
-        this.shopTypeList = res.data
215
-      }).catch(() => {
216
-        console.log('error ListAnnouncement')
217
-      })
218
-    },
219 241
     onSearchResult(pois) {
220 242
       // 搜索地图
221 243
       let latSum = 0
@@ -235,12 +257,12 @@ export default {
235 257
       }
236 258
     },
237 259
     wangeditorValue(value) {
238
-      this.listData.shopIntroduction = value // 在这里接受子组件传过来的参数,赋值给data里的参数
260
+      this.listData.houseIntroduction = value // 在这里接受子组件传过来的参数,赋值给data里的参数
239 261
     },
240 262
     submitForm(formName) { // 提交
241 263
       this.$refs[formName].validate((valid) => {
242 264
         if (valid) {
243
-          this.updateShop()
265
+          this.updateRental()
244 266
         } else {
245 267
           console.log('error submit!!')
246 268
           return false
@@ -256,7 +278,7 @@ export default {
256 278
       console.log(this.isRegistered)
257 279
       this.$refs[formName].resetFields()
258 280
     },
259
-    updateShop() {
281
+    updateRental() {
260 282
       // 加载框
261 283
       const loading = this.$loading({
262 284
         lock: true,
@@ -264,13 +286,13 @@ export default {
264 286
         spinner: 'el-icon-loading',
265 287
         background: 'rgba(0, 0, 0, 0.7)'
266 288
       })
267
-      this.$store.dispatch('shopType/UpdateShop', this.listData).then((res) => {
289
+      this.$store.dispatch('rental/UpdateRental', this.listData).then((res) => {
268 290
         if (res.code === '0') {
269 291
           this.$message({
270 292
             message: res.message,
271 293
             type: 'success'
272 294
           })
273
-          this.$router.push({ name: 'shop-index' })
295
+          this.$router.push({ name: 'rental-index' })
274 296
           loading.close()
275 297
           return
276 298
         }
@@ -278,7 +300,7 @@ export default {
278 300
         loading.close()
279 301
       }).catch(() => {
280 302
         loading.close()
281
-        console.log('error UpdateShop')
303
+        console.log('error addRental')
282 304
       })
283 305
     }
284 306
   }

+ 45
- 47
VUECODE/smart-property-manage/src/views/rental/rentalIndex.vue 查看文件

@@ -6,22 +6,22 @@
6 6
         <el-input v-model.trim="listQuery.id" onkeyup="this.value=this.value.replace(/\D/g,'')" placeholder="房间编号" />
7 7
       </el-form-item>
8 8
       <el-form-item class="filter-item" label="房间名称" >
9
-        <el-input v-model.trim="listQuery.shopName" placeholder="房间名称" />
9
+        <el-input v-model.trim="listQuery.houseName" placeholder="房间名称" />
10 10
       </el-form-item>
11 11
       <el-form-item class="filter-item" label="租金从" >
12
-        <el-input v-model.trim="listQuery.shopName" placeholder="租金从" />
12
+        <el-input v-model.trim="listQuery.startPrice" placeholder="租金从" />
13 13
       </el-form-item>
14 14
       <el-form-item class="filter-item" label="到" >
15
-        <el-input v-model.trim="listQuery.shopName" placeholder="到" />
15
+        <el-input v-model.trim="listQuery.endPrice" placeholder="到" />
16 16
       </el-form-item>
17 17
       <el-form-item class="filter-item" label="租赁方式" >
18
-        <el-select v-model="listQuery.shopStatus" placeholder="请选择">
18
+        <el-select v-model="listQuery.rentalType" placeholder="请选择">
19 19
             <el-option label="整租" value="1"/>
20 20
             <el-option label="合租" value="2"/>
21 21
           </el-select>
22 22
       </el-form-item>
23 23
       <el-form-item class="filter-item" label="户型" >
24
-        <el-select v-model="listQuery.shopStatus" placeholder="请选择">
24
+        <el-select v-model="listQuery.houseType" placeholder="请选择">
25 25
             <el-option label="一室居" value="1"/>
26 26
             <el-option label="二室居" value="2"/>
27 27
             <el-option label="三室居" value="3"/>
@@ -29,7 +29,7 @@
29 29
           </el-select>
30 30
       </el-form-item>
31 31
       <el-form-item class="filter-item" label="上架状态" >
32
-        <el-select v-model="listQuery.shopStatus" placeholder="请选择">
32
+        <el-select v-model="listQuery.houseStatus" placeholder="请选择">
33 33
             <el-option label="已上架" value="1"/>
34 34
             <el-option label="已下架" value="2"/>
35 35
           </el-select>
@@ -42,8 +42,8 @@
42 42
     <div class="button">
43 43
       <el-button type="primary" @click="add">添加</el-button>
44 44
       <el-button type="warning" @click="edit">修改</el-button>
45
-      <el-button type="danger" @click="shelfShop">上架房间</el-button>
46
-      <el-button type="danger" @click="obtainedShop">下架房间</el-button>
45
+      <el-button type="danger" @click="shelfRental">上架房间</el-button>
46
+      <el-button type="danger" @click="obtainedRental">下架房间</el-button>
47 47
     </div>
48 48
     <el-table
49 49
       v-loading="listLoading"
@@ -57,29 +57,29 @@
57 57
         type="selection"
58 58
         width="55"/>
59 59
       <el-table-column prop="id" label="房间编号" align="center"/>
60
-      <el-table-column prop="shopName" label="房间名称" align="center" >
61
-        <template slot-scope="scope"><a><span style="color: #63B8FF" @click="clickTitle(scope.row.id)">{{ scope.row.shopName }}</span></a></template>
60
+      <el-table-column prop="houseName" label="房间名称" align="center" >
61
+        <template slot-scope="scope"><a><span style="color: #63B8FF" @click="clickTitle(scope.row.id)">{{ scope.row.houseName }}</span></a></template>
62 62
       </el-table-column>
63 63
       <el-table-column prop="sort" label="权重" align="center"/>
64
-      <el-table-column prop="typeName" label="租金" align="center"/>
65
-      <el-table-column prop="shopStatus" label="上架状态" align="center">\
64
+      <el-table-column prop="rentalPrice" label="租金" align="center"/>
65
+      <el-table-column prop="houseStatus" label="上架状态" align="center">\
66 66
         <template slot-scope="scope">
67
-          <span v-if="scope.row.shopStatus === '1'">已上架</span>
68
-          <span v-if="scope.row.shopStatus === '2'">已下架</span>
67
+          <span v-if="scope.row.houseStatus === '1'">已上架</span>
68
+          <span v-if="scope.row.houseStatus === '2'">已下架</span>
69 69
         </template>
70 70
       </el-table-column>
71
-      <el-table-column prop="shopStatus" label="租赁方式" align="center">\
71
+      <el-table-column prop="rentalType" label="租赁方式" align="center">\
72 72
         <template slot-scope="scope">
73
-          <span v-if="scope.row.shopStatus === '1'">整租</span>
74
-          <span v-if="scope.row.shopStatus === '2'">合租</span>
73
+          <span v-if="scope.row.rentalType === '1'">整租</span>
74
+          <span v-if="scope.row.rentalType === '2'">合租</span>
75 75
         </template>
76 76
       </el-table-column>
77
-      <el-table-column prop="shopStatus" label="户型" align="center">\
77
+      <el-table-column prop="houseType" label="户型" align="center">\
78 78
         <template slot-scope="scope">
79
-          <span v-if="scope.row.shopStatus === '1'">一室居</span>
80
-          <span v-if="scope.row.shopStatus === '2'">二室居</span>
81
-          <span v-if="scope.row.shopStatus === '3'">三室居</span>
82
-          <span v-if="scope.row.shopStatus === '4'">四室居及以上</span>
79
+          <span v-if="scope.row.houseType === '1'">一室居</span>
80
+          <span v-if="scope.row.houseType === '2'">二室居</span>
81
+          <span v-if="scope.row.houseType === '3'">三室居</span>
82
+          <span v-if="scope.row.houseType === '4'">四室居及以上</span>
83 83
         </template>
84 84
       </el-table-column>
85 85
       <el-table-column prop="updateDate" label="编辑时间" align="center" ><template slot-scope="scope">{{ formatDate(scope.row.updateDate) }}</template></el-table-column>
@@ -106,14 +106,17 @@ export default {
106 106
     return {
107 107
       listQuery: {
108 108
         id: '',
109
-        shopName: '',
110
-        shopTypeId: '',
111
-        shopStatus: '',
109
+        houseName: '',
110
+        startPrice: '',
111
+        endPrice: '',
112
+        rentalType: '',
113
+        houseType: '',
114
+        houseStatus: '',
112 115
         pageNum: 1,
113 116
         pageSize: 10
114 117
       },
115 118
       total: 0, // 数据总数
116
-      shopList: [],
119
+      rentalList: [],
117 120
       shopTypeList: [],
118 121
       deleteIds: [], // 选择的id集合
119 122
       listLoading: true // 加载圈
@@ -122,11 +125,10 @@ export default {
122 125
   mounted() {
123 126
     // 获取数据
124 127
     this.dataQuery()
125
-    this.getShopTypeList()
126 128
   },
127 129
   methods: {
128
-    ...mapActions('shopType', [
129
-      'FetchShopList',
130
+    ...mapActions('rental', [
131
+      'FetchRentalList',
130 132
       'FetchShopTypeSelect'
131 133
     ]),
132 134
     handleSizeChange(val) {
@@ -168,7 +170,7 @@ export default {
168 170
     },
169 171
     dataQuery() { // 查询数据
170 172
       this.listLoading = true
171
-      this.$store.dispatch('shopType/FetchShopList', this.listQuery).then((res) => {
173
+      this.$store.dispatch('rental/FetchRentalList', this.listQuery).then((res) => {
172 174
         const resData = res.data
173 175
         this.rentalList = resData.list
174 176
         this.total = resData.total
@@ -178,13 +180,6 @@ export default {
178 180
         console.log('error ListAnnouncement')
179 181
       })
180 182
     },
181
-    getShopTypeList() {
182
-      this.$store.dispatch('shopType/FetchShopTypeSelect', this.listQuery).then((res) => {
183
-        this.shopTypeList = res.data
184
-      }).catch(() => {
185
-        console.log('error ListAnnouncement')
186
-      })
187
-    },
188 183
     handleSelectionChange(data) {
189 184
       // 设置为 空
190 185
       this.deleteIds = []
@@ -200,14 +195,17 @@ export default {
200 195
       this.listQuery.pageNum = 1
201 196
       this.listQuery.pageSize = 10
202 197
       this.listQuery.id =''
203
-      this.listQuery.shopName=''
204
-      this.listQuery.shopTypeId=''
205
-      this.listQuery.shopStatus=''
198
+      this.listQuery.houseName = '',
199
+      this.listQuery.startPrice = '',
200
+      this.listQuery.endPrice = '',
201
+      this.listQuery.rentalType = '',
202
+      this.listQuery.houseType = '',
203
+      this.listQuery.houseStatus = '',
206 204
       this.dataQuery()
207 205
     },
208 206
     // 添加公告
209 207
     add() {
210
-      this.$router.push({ name: 'shop-add' })
208
+      this.$router.push({ name: 'rental-add' })
211 209
     },
212 210
     edit(){// 编辑公告
213 211
       const ids = this.deleteIds
@@ -221,7 +219,7 @@ export default {
221 219
       }
222 220
        let ide= this.deleteIds[0]
223 221
        this.listQuery.id = ide
224
-       this.$router.push({ name: 'shop-edit', query: { id: ide }})
222
+       this.$router.push({ name: 'rental-edit', query: { id: ide }})
225 223
       },
226 224
     deleteAnnouncement(){
227 225
        let ide= this.deleteIds[0]
@@ -239,14 +237,14 @@ export default {
239 237
         this.deleteId()     
240 238
       })    
241 239
     },
242
-    shelfShop() {
240
+    shelfRental() {
243 241
       this.listLoading = true
244 242
       const ids = this.deleteIds
245 243
       if (ids < 1) {
246 244
         this.$message.error('请至少选择一行数据上架!')
247 245
         return
248 246
       }
249
-      this.$store.dispatch('shopType/ShelfShop', ids).then((res) => {
247
+      this.$store.dispatch('rental/ShelfRental', ids).then((res) => {
250 248
         this.listLoading = false
251 249
         this.dataQuery()
252 250
       }).catch(() => {
@@ -254,14 +252,14 @@ export default {
254 252
         console.log('error DeleteAnnouncement')
255 253
       })
256 254
     },
257
-    obtainedShop() {
255
+    obtainedRental() {
258 256
       this.listLoading = true
259 257
       const ids = this.deleteIds
260 258
       if (ids < 1) {
261 259
         this.$message.error('请至少选择一行数据下架!')
262 260
         return
263 261
       }
264
-      this.$store.dispatch('shopType/ObtainedShop', ids).then((res) => {
262
+      this.$store.dispatch('rental/ObtainedRental', ids).then((res) => {
265 263
         this.listLoading = false
266 264
         this.dataQuery()
267 265
       }).catch(() => {
@@ -285,7 +283,7 @@ export default {
285 283
 
286 284
 
287 285
     clickTitle(id) {
288
-      this.$router.push({ name: 'shop-edit', query: { id: id }})
286
+      this.$router.push({ name: 'rental-edit', query: { id: id }})
289 287
     },
290 288
     formatDate(val) {
291 289
       if (val === null) {

+ 8
- 2
VUECODE/smart-property-manage/src/views/shop/shopSettingEdit.vue 查看文件

@@ -5,7 +5,7 @@
5 5
         <el-input v-model="listQuery.typeName" style="width: 200px;"/>
6 6
       </el-form-item>
7 7
       <el-form-item label="权重" prop="sort">
8
-        <el-input v-model="listQuery.sort" style="width: 200px;"/>
8
+        <el-input v-model="listQuery.sort" :disabled="listQuery.isSys" style="width: 200px;"/>
9 9
       </el-form-item>
10 10
       <el-form-item>
11 11
         <el-button type="primary" @click="submitForm('ruleForm')">修改</el-button>
@@ -21,7 +21,8 @@ export default {
21 21
       listQuery: {
22 22
         id: '',
23 23
         typeName: '',
24
-        sort: ''
24
+        sort: '',
25
+        isSys: false
25 26
       },
26 27
       rules: {
27 28
         typeName: [
@@ -60,6 +61,11 @@ export default {
60 61
         const typeData = res.data
61 62
         this.listQuery.typeName = typeData.typeName
62 63
         this.listQuery.sort = typeData.sort
64
+        let state = false
65
+        if(typeData.source === "sys"){
66
+          state = true
67
+        }
68
+        this.listQuery.isSys = state
63 69
       })
64 70
     },
65 71
     updateBuilding() {

+ 125
- 101
文档/MYSQL/smartCommunity.pdb 查看文件

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1557800706" Name="smartCommunity" Objects="1160" Symbols="129" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
2
+<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1557813818" Name="smartCommunity" Objects="1162" Symbols="129" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
3 3
 <!-- do not edit this file -->
4 4
 
5 5
 <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@@ -6979,7 +6979,7 @@ LABL 0 新宋体,8,N</a:FontList>
6979 6979
 <a:CreationDate>1557303510</a:CreationDate>
6980 6980
 <a:ModificationDate>1557306066</a:ModificationDate>
6981 6981
 <a:IconMode>-1</a:IconMode>
6982
-<a:Rect>((187327,19260), (204115,48658))</a:Rect>
6982
+<a:Rect>((187327,18810), (204115,49108))</a:Rect>
6983 6983
 <a:LineColor>12615680</a:LineColor>
6984 6984
 <a:FillColor>16570034</a:FillColor>
6985 6985
 <a:ShadowColor>12632256</a:ShadowColor>
@@ -7104,7 +7104,7 @@ LABL 0 新宋体,8,N</a:FontList>
7104 7104
 <a:CreationDate>1557800506</a:CreationDate>
7105 7105
 <a:ModificationDate>1557800506</a:ModificationDate>
7106 7106
 <a:IconMode>-1</a:IconMode>
7107
-<a:Rect>((192811,-14911), (207867,-9813))</a:Rect>
7107
+<a:Rect>((192811,-15361), (207867,-9363))</a:Rect>
7108 7108
 <a:LineColor>12615680</a:LineColor>
7109 7109
 <a:FillColor>16570034</a:FillColor>
7110 7110
 <a:ShadowColor>12632256</a:ShadowColor>
@@ -17524,7 +17524,7 @@ LABL 0 新宋体,8,N</a:FontList>
17524 17524
 <a:Code>tp_rental_house</a:Code>
17525 17525
 <a:CreationDate>1557303510</a:CreationDate>
17526 17526
 <a:Creator>szc</a:Creator>
17527
-<a:ModificationDate>1557307546</a:ModificationDate>
17527
+<a:ModificationDate>1557813818</a:ModificationDate>
17528 17528
 <a:Modifier>szc</a:Modifier>
17529 17529
 <a:Comment>出租公寓表</a:Comment>
17530 17530
 <a:TotalSavingCurrency/>
@@ -17543,6 +17543,18 @@ LABL 0 新宋体,8,N</a:FontList>
17543 17543
 <a:Column.Mandatory>1</a:Column.Mandatory>
17544 17544
 </o:Column>
17545 17545
 <o:Column Id="o1021">
17546
+<a:ObjectID>8AE70562-18C0-45C6-BF15-FCAA422F59C2</a:ObjectID>
17547
+<a:Name>community_id</a:Name>
17548
+<a:Code>community_id</a:Code>
17549
+<a:CreationDate>1557813774</a:CreationDate>
17550
+<a:Creator>szc</a:Creator>
17551
+<a:ModificationDate>1557813818</a:ModificationDate>
17552
+<a:Modifier>szc</a:Modifier>
17553
+<a:Comment>我们系统的小区ID</a:Comment>
17554
+<a:DataType>int(11)</a:DataType>
17555
+<a:Length>11</a:Length>
17556
+</o:Column>
17557
+<o:Column Id="o1022">
17546 17558
 <a:ObjectID>51C7C13C-E338-45B0-A4E6-3F88B2DE7F33</a:ObjectID>
17547 17559
 <a:Name>house_name</a:Name>
17548 17560
 <a:Code>house_name</a:Code>
@@ -17554,7 +17566,7 @@ LABL 0 新宋体,8,N</a:FontList>
17554 17566
 <a:DataType>varchar(255)</a:DataType>
17555 17567
 <a:Length>255</a:Length>
17556 17568
 </o:Column>
17557
-<o:Column Id="o1022">
17569
+<o:Column Id="o1023">
17558 17570
 <a:ObjectID>CB9AD670-AD18-4424-9385-AB1105DCE3CB</a:ObjectID>
17559 17571
 <a:Name>rental_price</a:Name>
17560 17572
 <a:Code>rental_price</a:Code>
@@ -17566,7 +17578,7 @@ LABL 0 新宋体,8,N</a:FontList>
17566 17578
 <a:DataType>varchar(255)</a:DataType>
17567 17579
 <a:Length>255</a:Length>
17568 17580
 </o:Column>
17569
-<o:Column Id="o1023">
17581
+<o:Column Id="o1024">
17570 17582
 <a:ObjectID>2D4C03FA-18B3-4835-A768-0BF06B6674B2</a:ObjectID>
17571 17583
 <a:Name>area</a:Name>
17572 17584
 <a:Code>area</a:Code>
@@ -17578,7 +17590,7 @@ LABL 0 新宋体,8,N</a:FontList>
17578 17590
 <a:DataType>varchar(255)</a:DataType>
17579 17591
 <a:Length>255</a:Length>
17580 17592
 </o:Column>
17581
-<o:Column Id="o1024">
17593
+<o:Column Id="o1025">
17582 17594
 <a:ObjectID>DE4B7575-2E0F-4439-BB2E-7B293918BCFF</a:ObjectID>
17583 17595
 <a:Name>rental_type</a:Name>
17584 17596
 <a:Code>rental_type</a:Code>
@@ -17590,7 +17602,7 @@ LABL 0 新宋体,8,N</a:FontList>
17590 17602
 <a:DataType>varchar(255)</a:DataType>
17591 17603
 <a:Length>255</a:Length>
17592 17604
 </o:Column>
17593
-<o:Column Id="o1025">
17605
+<o:Column Id="o1026">
17594 17606
 <a:ObjectID>09D9CD83-643E-407F-B521-D0B808271727</a:ObjectID>
17595 17607
 <a:Name>house_type</a:Name>
17596 17608
 <a:Code>house_type</a:Code>
@@ -17602,7 +17614,7 @@ LABL 0 新宋体,8,N</a:FontList>
17602 17614
 <a:DataType>varchar(255)</a:DataType>
17603 17615
 <a:Length>255</a:Length>
17604 17616
 </o:Column>
17605
-<o:Column Id="o1026">
17617
+<o:Column Id="o1027">
17606 17618
 <a:ObjectID>CF14CF64-1763-4792-8D75-D010840925A8</a:ObjectID>
17607 17619
 <a:Name>house_status</a:Name>
17608 17620
 <a:Code>house_status</a:Code>
@@ -17614,7 +17626,7 @@ LABL 0 新宋体,8,N</a:FontList>
17614 17626
 <a:DataType>varchar(255)</a:DataType>
17615 17627
 <a:Length>255</a:Length>
17616 17628
 </o:Column>
17617
-<o:Column Id="o1027">
17629
+<o:Column Id="o1028">
17618 17630
 <a:ObjectID>F676264A-1683-4D62-BBB4-F18F705B4C63</a:ObjectID>
17619 17631
 <a:Name>house_level</a:Name>
17620 17632
 <a:Code>house_level</a:Code>
@@ -17626,7 +17638,7 @@ LABL 0 新宋体,8,N</a:FontList>
17626 17638
 <a:DataType>varchar(255)</a:DataType>
17627 17639
 <a:Length>255</a:Length>
17628 17640
 </o:Column>
17629
-<o:Column Id="o1028">
17641
+<o:Column Id="o1029">
17630 17642
 <a:ObjectID>D56459F7-EC5C-4508-84C0-4BBEF2ADA53D</a:ObjectID>
17631 17643
 <a:Name>house_label</a:Name>
17632 17644
 <a:Code>house_label</a:Code>
@@ -17638,7 +17650,7 @@ LABL 0 新宋体,8,N</a:FontList>
17638 17650
 <a:DataType>varchar(255)</a:DataType>
17639 17651
 <a:Length>255</a:Length>
17640 17652
 </o:Column>
17641
-<o:Column Id="o1029">
17653
+<o:Column Id="o1030">
17642 17654
 <a:ObjectID>C9B94A82-C5AA-4826-9909-E564BF1B5E0A</a:ObjectID>
17643 17655
 <a:Name>sort</a:Name>
17644 17656
 <a:Code>sort</a:Code>
@@ -17650,7 +17662,7 @@ LABL 0 新宋体,8,N</a:FontList>
17650 17662
 <a:DataType>int(11)</a:DataType>
17651 17663
 <a:Length>11</a:Length>
17652 17664
 </o:Column>
17653
-<o:Column Id="o1030">
17665
+<o:Column Id="o1031">
17654 17666
 <a:ObjectID>9B121749-83C8-4367-8A35-1D05D64102B1</a:ObjectID>
17655 17667
 <a:Name>house_tel</a:Name>
17656 17668
 <a:Code>house_tel</a:Code>
@@ -17662,7 +17674,7 @@ LABL 0 新宋体,8,N</a:FontList>
17662 17674
 <a:DataType>varchar(255)</a:DataType>
17663 17675
 <a:Length>255</a:Length>
17664 17676
 </o:Column>
17665
-<o:Column Id="o1031">
17677
+<o:Column Id="o1032">
17666 17678
 <a:ObjectID>FE137449-0BEF-4A20-AC8F-475CA8BF4F2E</a:ObjectID>
17667 17679
 <a:Name>community_address</a:Name>
17668 17680
 <a:Code>community_address</a:Code>
@@ -17674,7 +17686,7 @@ LABL 0 新宋体,8,N</a:FontList>
17674 17686
 <a:DataType>varchar(255)</a:DataType>
17675 17687
 <a:Length>255</a:Length>
17676 17688
 </o:Column>
17677
-<o:Column Id="o1032">
17689
+<o:Column Id="o1033">
17678 17690
 <a:ObjectID>34B0089B-9EA6-436B-B236-B087A3CE73E5</a:ObjectID>
17679 17691
 <a:Name>community_longitude</a:Name>
17680 17692
 <a:Code>community_longitude</a:Code>
@@ -17686,7 +17698,7 @@ LABL 0 新宋体,8,N</a:FontList>
17686 17698
 <a:DataType>varchar(255)</a:DataType>
17687 17699
 <a:Length>255</a:Length>
17688 17700
 </o:Column>
17689
-<o:Column Id="o1033">
17701
+<o:Column Id="o1034">
17690 17702
 <a:ObjectID>A62ABB38-54CD-4F47-8C17-D1A9342DD8FC</a:ObjectID>
17691 17703
 <a:Name>community_latitude</a:Name>
17692 17704
 <a:Code>community_latitude</a:Code>
@@ -17698,7 +17710,7 @@ LABL 0 新宋体,8,N</a:FontList>
17698 17710
 <a:DataType>varchar(255)</a:DataType>
17699 17711
 <a:Length>255</a:Length>
17700 17712
 </o:Column>
17701
-<o:Column Id="o1034">
17713
+<o:Column Id="o1035">
17702 17714
 <a:ObjectID>1E5C86EA-7B19-497D-BDDE-96EA66DF905F</a:ObjectID>
17703 17715
 <a:Name>house_introduction</a:Name>
17704 17716
 <a:Code>house_introduction</a:Code>
@@ -17709,7 +17721,7 @@ LABL 0 新宋体,8,N</a:FontList>
17709 17721
 <a:Comment>房屋介绍</a:Comment>
17710 17722
 <a:DataType>text</a:DataType>
17711 17723
 </o:Column>
17712
-<o:Column Id="o1035">
17724
+<o:Column Id="o1036">
17713 17725
 <a:ObjectID>C505FCE6-7EF3-4451-8A34-0A61EC7FE8E0</a:ObjectID>
17714 17726
 <a:Name>bed</a:Name>
17715 17727
 <a:Code>bed</a:Code>
@@ -17721,7 +17733,7 @@ LABL 0 新宋体,8,N</a:FontList>
17721 17733
 <a:DataType>varchar(1)</a:DataType>
17722 17734
 <a:Length>1</a:Length>
17723 17735
 </o:Column>
17724
-<o:Column Id="o1036">
17736
+<o:Column Id="o1037">
17725 17737
 <a:ObjectID>86AC4B40-FEBD-4FCB-A079-23ED794287E7</a:ObjectID>
17726 17738
 <a:Name>wardrobe</a:Name>
17727 17739
 <a:Code>wardrobe</a:Code>
@@ -17733,7 +17745,7 @@ LABL 0 新宋体,8,N</a:FontList>
17733 17745
 <a:DataType>varchar(1)</a:DataType>
17734 17746
 <a:Length>1</a:Length>
17735 17747
 </o:Column>
17736
-<o:Column Id="o1037">
17748
+<o:Column Id="o1038">
17737 17749
 <a:ObjectID>0F598383-042D-42FD-B7DD-5EAD70E46C1B</a:ObjectID>
17738 17750
 <a:Name>dining_table</a:Name>
17739 17751
 <a:Code>dining_table</a:Code>
@@ -17745,7 +17757,7 @@ LABL 0 新宋体,8,N</a:FontList>
17745 17757
 <a:DataType>varchar(1)</a:DataType>
17746 17758
 <a:Length>1</a:Length>
17747 17759
 </o:Column>
17748
-<o:Column Id="o1038">
17760
+<o:Column Id="o1039">
17749 17761
 <a:ObjectID>7FB29743-6F55-4ADD-829C-886CD8235B78</a:ObjectID>
17750 17762
 <a:Name>computer_desk</a:Name>
17751 17763
 <a:Code>computer_desk</a:Code>
@@ -17757,7 +17769,7 @@ LABL 0 新宋体,8,N</a:FontList>
17757 17769
 <a:DataType>varchar(1)</a:DataType>
17758 17770
 <a:Length>1</a:Length>
17759 17771
 </o:Column>
17760
-<o:Column Id="o1039">
17772
+<o:Column Id="o1040">
17761 17773
 <a:ObjectID>BD673A93-F61B-4C96-BEAD-2283ACDFAF64</a:ObjectID>
17762 17774
 <a:Name>water_heater</a:Name>
17763 17775
 <a:Code>water_heater</a:Code>
@@ -17769,7 +17781,7 @@ LABL 0 新宋体,8,N</a:FontList>
17769 17781
 <a:DataType>varchar(1)</a:DataType>
17770 17782
 <a:Length>1</a:Length>
17771 17783
 </o:Column>
17772
-<o:Column Id="o1040">
17784
+<o:Column Id="o1041">
17773 17785
 <a:ObjectID>4F881349-E1A5-4DE0-8010-BC61A8DF88A3</a:ObjectID>
17774 17786
 <a:Name>chair</a:Name>
17775 17787
 <a:Code>chair</a:Code>
@@ -17781,7 +17793,7 @@ LABL 0 新宋体,8,N</a:FontList>
17781 17793
 <a:DataType>varchar(1)</a:DataType>
17782 17794
 <a:Length>1</a:Length>
17783 17795
 </o:Column>
17784
-<o:Column Id="o1041">
17796
+<o:Column Id="o1042">
17785 17797
 <a:ObjectID>95D69A16-BEA6-4D93-AE71-BD1F110A4B26</a:ObjectID>
17786 17798
 <a:Name>washing_machine</a:Name>
17787 17799
 <a:Code>washing_machine</a:Code>
@@ -17793,7 +17805,7 @@ LABL 0 新宋体,8,N</a:FontList>
17793 17805
 <a:DataType>varchar(1)</a:DataType>
17794 17806
 <a:Length>1</a:Length>
17795 17807
 </o:Column>
17796
-<o:Column Id="o1042">
17808
+<o:Column Id="o1043">
17797 17809
 <a:ObjectID>DD7E6C40-AD47-4864-AFFB-FBB0E8D9121B</a:ObjectID>
17798 17810
 <a:Name>air_conditioning</a:Name>
17799 17811
 <a:Code>air_conditioning</a:Code>
@@ -17805,7 +17817,7 @@ LABL 0 新宋体,8,N</a:FontList>
17805 17817
 <a:DataType>varchar(1)</a:DataType>
17806 17818
 <a:Length>1</a:Length>
17807 17819
 </o:Column>
17808
-<o:Column Id="o1043">
17820
+<o:Column Id="o1044">
17809 17821
 <a:ObjectID>8F69DF57-D61E-47AB-8E05-BB0EBB0B5139</a:ObjectID>
17810 17822
 <a:Name>table_lamp</a:Name>
17811 17823
 <a:Code>table_lamp</a:Code>
@@ -17817,7 +17829,7 @@ LABL 0 新宋体,8,N</a:FontList>
17817 17829
 <a:DataType>varchar(1)</a:DataType>
17818 17830
 <a:Length>1</a:Length>
17819 17831
 </o:Column>
17820
-<o:Column Id="o1044">
17832
+<o:Column Id="o1045">
17821 17833
 <a:ObjectID>0A425DF5-5766-4069-BD6E-771C1676BB85</a:ObjectID>
17822 17834
 <a:Name>WiFi</a:Name>
17823 17835
 <a:Code>WiFi</a:Code>
@@ -17829,7 +17841,7 @@ LABL 0 新宋体,8,N</a:FontList>
17829 17841
 <a:DataType>varchar(1)</a:DataType>
17830 17842
 <a:Length>1</a:Length>
17831 17843
 </o:Column>
17832
-<o:Column Id="o1045">
17844
+<o:Column Id="o1046">
17833 17845
 <a:ObjectID>5CA481DC-A4C9-4723-B1E5-43F84387D203</a:ObjectID>
17834 17846
 <a:Name>microwave_oven</a:Name>
17835 17847
 <a:Code>microwave_oven</a:Code>
@@ -17841,7 +17853,7 @@ LABL 0 新宋体,8,N</a:FontList>
17841 17853
 <a:DataType>varchar(1)</a:DataType>
17842 17854
 <a:Length>1</a:Length>
17843 17855
 </o:Column>
17844
-<o:Column Id="o1046">
17856
+<o:Column Id="o1047">
17845 17857
 <a:ObjectID>8100898B-1949-4F10-B73D-47B3D94A8826</a:ObjectID>
17846 17858
 <a:Name>natural_gas</a:Name>
17847 17859
 <a:Code>natural_gas</a:Code>
@@ -17853,7 +17865,7 @@ LABL 0 新宋体,8,N</a:FontList>
17853 17865
 <a:DataType>varchar(1)</a:DataType>
17854 17866
 <a:Length>1</a:Length>
17855 17867
 </o:Column>
17856
-<o:Column Id="o1047">
17868
+<o:Column Id="o1048">
17857 17869
 <a:ObjectID>86966D69-2983-4EEE-B469-B2630F47E55E</a:ObjectID>
17858 17870
 <a:Name>create_date</a:Name>
17859 17871
 <a:Code>create_date</a:Code>
@@ -17864,7 +17876,7 @@ LABL 0 新宋体,8,N</a:FontList>
17864 17876
 <a:Comment>创建时间</a:Comment>
17865 17877
 <a:DataType>datetime</a:DataType>
17866 17878
 </o:Column>
17867
-<o:Column Id="o1048">
17879
+<o:Column Id="o1049">
17868 17880
 <a:ObjectID>0E612C68-BF9C-4454-889C-68B6A3CAF9CB</a:ObjectID>
17869 17881
 <a:Name>create_user</a:Name>
17870 17882
 <a:Code>create_user</a:Code>
@@ -17876,7 +17888,7 @@ LABL 0 新宋体,8,N</a:FontList>
17876 17888
 <a:DataType>int(11)</a:DataType>
17877 17889
 <a:Length>11</a:Length>
17878 17890
 </o:Column>
17879
-<o:Column Id="o1049">
17891
+<o:Column Id="o1050">
17880 17892
 <a:ObjectID>44888D0B-ED44-4152-A948-FE2738CD4730</a:ObjectID>
17881 17893
 <a:Name>update_date</a:Name>
17882 17894
 <a:Code>update_date</a:Code>
@@ -17887,7 +17899,7 @@ LABL 0 新宋体,8,N</a:FontList>
17887 17899
 <a:Comment>更新时间</a:Comment>
17888 17900
 <a:DataType>datetime</a:DataType>
17889 17901
 </o:Column>
17890
-<o:Column Id="o1050">
17902
+<o:Column Id="o1051">
17891 17903
 <a:ObjectID>9ACA9B2C-9A46-43EC-AB23-5DD83CED5EF2</a:ObjectID>
17892 17904
 <a:Name>update_user</a:Name>
17893 17905
 <a:Code>update_user</a:Code>
@@ -17901,7 +17913,7 @@ LABL 0 新宋体,8,N</a:FontList>
17901 17913
 </o:Column>
17902 17914
 </c:Columns>
17903 17915
 <c:Keys>
17904
-<o:Key Id="o1051">
17916
+<o:Key Id="o1052">
17905 17917
 <a:ObjectID>148EAD21-CFA4-42E6-9F44-C31E1C508685</a:ObjectID>
17906 17918
 <a:Name>Key_1</a:Name>
17907 17919
 <a:Code>Key_1</a:Code>
@@ -17915,7 +17927,7 @@ LABL 0 新宋体,8,N</a:FontList>
17915 17927
 </o:Key>
17916 17928
 </c:Keys>
17917 17929
 <c:PrimaryKey>
17918
-<o:Key Ref="o1051"/>
17930
+<o:Key Ref="o1052"/>
17919 17931
 </c:PrimaryKey>
17920 17932
 </o:Table>
17921 17933
 <o:Table Id="o253">
@@ -17929,7 +17941,7 @@ LABL 0 新宋体,8,N</a:FontList>
17929 17941
 <a:Comment>商铺图片</a:Comment>
17930 17942
 <a:TotalSavingCurrency/>
17931 17943
 <c:Columns>
17932
-<o:Column Id="o1052">
17944
+<o:Column Id="o1053">
17933 17945
 <a:ObjectID>92BB3B4E-28C8-452C-B070-4A0755DE3BBC</a:ObjectID>
17934 17946
 <a:Name>id</a:Name>
17935 17947
 <a:Code>id</a:Code>
@@ -17942,7 +17954,7 @@ LABL 0 新宋体,8,N</a:FontList>
17942 17954
 <a:Identity>1</a:Identity>
17943 17955
 <a:Column.Mandatory>1</a:Column.Mandatory>
17944 17956
 </o:Column>
17945
-<o:Column Id="o1053">
17957
+<o:Column Id="o1054">
17946 17958
 <a:ObjectID>21087CE1-7882-4A27-ACD7-E1579649B207</a:ObjectID>
17947 17959
 <a:Name>community_id</a:Name>
17948 17960
 <a:Code>community_id</a:Code>
@@ -17954,7 +17966,7 @@ LABL 0 新宋体,8,N</a:FontList>
17954 17966
 <a:DataType>int(11)</a:DataType>
17955 17967
 <a:Length>11</a:Length>
17956 17968
 </o:Column>
17957
-<o:Column Id="o1054">
17969
+<o:Column Id="o1055">
17958 17970
 <a:ObjectID>6B2B261C-902C-41CE-848E-FF27C66FE85B</a:ObjectID>
17959 17971
 <a:Name>shop_id</a:Name>
17960 17972
 <a:Code>shop_id</a:Code>
@@ -17966,7 +17978,7 @@ LABL 0 新宋体,8,N</a:FontList>
17966 17978
 <a:DataType>int(11)</a:DataType>
17967 17979
 <a:Length>11</a:Length>
17968 17980
 </o:Column>
17969
-<o:Column Id="o1055">
17981
+<o:Column Id="o1056">
17970 17982
 <a:ObjectID>1903CA52-9255-47A8-9B59-B8CA06D703E0</a:ObjectID>
17971 17983
 <a:Name>img_url</a:Name>
17972 17984
 <a:Code>img_url</a:Code>
@@ -17978,7 +17990,7 @@ LABL 0 新宋体,8,N</a:FontList>
17978 17990
 <a:DataType>varchar(255)</a:DataType>
17979 17991
 <a:Length>255</a:Length>
17980 17992
 </o:Column>
17981
-<o:Column Id="o1056">
17993
+<o:Column Id="o1057">
17982 17994
 <a:ObjectID>D12DC8AD-CF58-4DE5-A9DC-ABB63D349D13</a:ObjectID>
17983 17995
 <a:Name>img_type</a:Name>
17984 17996
 <a:Code>img_type</a:Code>
@@ -17990,7 +18002,7 @@ LABL 0 新宋体,8,N</a:FontList>
17990 18002
 <a:DataType>varchar(2)</a:DataType>
17991 18003
 <a:Length>2</a:Length>
17992 18004
 </o:Column>
17993
-<o:Column Id="o1057">
18005
+<o:Column Id="o1058">
17994 18006
 <a:ObjectID>5BC7B1D6-E34E-4473-9DF1-CA6240B1C23F</a:ObjectID>
17995 18007
 <a:Name>create_date</a:Name>
17996 18008
 <a:Code>create_date</a:Code>
@@ -18003,7 +18015,7 @@ LABL 0 新宋体,8,N</a:FontList>
18003 18015
 </o:Column>
18004 18016
 </c:Columns>
18005 18017
 <c:Keys>
18006
-<o:Key Id="o1058">
18018
+<o:Key Id="o1059">
18007 18019
 <a:ObjectID>6EEDA542-1E85-47A3-BC57-7C65558D93D0</a:ObjectID>
18008 18020
 <a:Name>Key_1</a:Name>
18009 18021
 <a:Code>Key_1</a:Code>
@@ -18012,12 +18024,12 @@ LABL 0 新宋体,8,N</a:FontList>
18012 18024
 <a:ModificationDate>1557304098</a:ModificationDate>
18013 18025
 <a:Modifier>szc</a:Modifier>
18014 18026
 <c:Key.Columns>
18015
-<o:Column Ref="o1052"/>
18027
+<o:Column Ref="o1053"/>
18016 18028
 </c:Key.Columns>
18017 18029
 </o:Key>
18018 18030
 </c:Keys>
18019 18031
 <c:PrimaryKey>
18020
-<o:Key Ref="o1058"/>
18032
+<o:Key Ref="o1059"/>
18021 18033
 </c:PrimaryKey>
18022 18034
 </o:Table>
18023 18035
 <o:Table Id="o255">
@@ -18031,7 +18043,7 @@ LABL 0 新宋体,8,N</a:FontList>
18031 18043
 <a:Comment>出租房间图片</a:Comment>
18032 18044
 <a:TotalSavingCurrency/>
18033 18045
 <c:Columns>
18034
-<o:Column Id="o1059">
18046
+<o:Column Id="o1060">
18035 18047
 <a:ObjectID>98ED7313-E915-44A1-9D4F-80F5BC057C88</a:ObjectID>
18036 18048
 <a:Name>id</a:Name>
18037 18049
 <a:Code>id</a:Code>
@@ -18044,7 +18056,7 @@ LABL 0 新宋体,8,N</a:FontList>
18044 18056
 <a:Identity>1</a:Identity>
18045 18057
 <a:Column.Mandatory>1</a:Column.Mandatory>
18046 18058
 </o:Column>
18047
-<o:Column Id="o1060">
18059
+<o:Column Id="o1061">
18048 18060
 <a:ObjectID>C9DD2C07-B914-4F63-AFCD-05FA9EEC9184</a:ObjectID>
18049 18061
 <a:Name>community_id</a:Name>
18050 18062
 <a:Code>community_id</a:Code>
@@ -18056,7 +18068,7 @@ LABL 0 新宋体,8,N</a:FontList>
18056 18068
 <a:DataType>int(11)</a:DataType>
18057 18069
 <a:Length>11</a:Length>
18058 18070
 </o:Column>
18059
-<o:Column Id="o1061">
18071
+<o:Column Id="o1062">
18060 18072
 <a:ObjectID>B557681C-3BC2-492A-9313-38454B3D480A</a:ObjectID>
18061 18073
 <a:Name>rental_house_id</a:Name>
18062 18074
 <a:Code>rental_house_id</a:Code>
@@ -18068,7 +18080,7 @@ LABL 0 新宋体,8,N</a:FontList>
18068 18080
 <a:DataType>int(11)</a:DataType>
18069 18081
 <a:Length>11</a:Length>
18070 18082
 </o:Column>
18071
-<o:Column Id="o1062">
18083
+<o:Column Id="o1063">
18072 18084
 <a:ObjectID>7EFF853D-17E5-459D-8942-60286B8BF991</a:ObjectID>
18073 18085
 <a:Name>img_url</a:Name>
18074 18086
 <a:Code>img_url</a:Code>
@@ -18080,7 +18092,7 @@ LABL 0 新宋体,8,N</a:FontList>
18080 18092
 <a:DataType>varchar(255)</a:DataType>
18081 18093
 <a:Length>255</a:Length>
18082 18094
 </o:Column>
18083
-<o:Column Id="o1063">
18095
+<o:Column Id="o1064">
18084 18096
 <a:ObjectID>986D1A7D-1053-4346-AD5C-D64AEE62DD3F</a:ObjectID>
18085 18097
 <a:Name>img_type</a:Name>
18086 18098
 <a:Code>img_type</a:Code>
@@ -18092,7 +18104,7 @@ LABL 0 新宋体,8,N</a:FontList>
18092 18104
 <a:DataType>varchar(2)</a:DataType>
18093 18105
 <a:Length>2</a:Length>
18094 18106
 </o:Column>
18095
-<o:Column Id="o1064">
18107
+<o:Column Id="o1065">
18096 18108
 <a:ObjectID>A094BD2C-60B5-4AC9-A98E-176D07F29C66</a:ObjectID>
18097 18109
 <a:Name>create_date</a:Name>
18098 18110
 <a:Code>create_date</a:Code>
@@ -18105,7 +18117,7 @@ LABL 0 新宋体,8,N</a:FontList>
18105 18117
 </o:Column>
18106 18118
 </c:Columns>
18107 18119
 <c:Keys>
18108
-<o:Key Id="o1065">
18120
+<o:Key Id="o1066">
18109 18121
 <a:ObjectID>F8E42723-01EE-48CA-B9B4-9B70D9EE52C2</a:ObjectID>
18110 18122
 <a:Name>Key_1</a:Name>
18111 18123
 <a:Code>Key_1</a:Code>
@@ -18114,12 +18126,12 @@ LABL 0 新宋体,8,N</a:FontList>
18114 18126
 <a:ModificationDate>1557307564</a:ModificationDate>
18115 18127
 <a:Modifier>szc</a:Modifier>
18116 18128
 <c:Key.Columns>
18117
-<o:Column Ref="o1059"/>
18129
+<o:Column Ref="o1060"/>
18118 18130
 </c:Key.Columns>
18119 18131
 </o:Key>
18120 18132
 </c:Keys>
18121 18133
 <c:PrimaryKey>
18122
-<o:Key Ref="o1065"/>
18134
+<o:Key Ref="o1066"/>
18123 18135
 </c:PrimaryKey>
18124 18136
 </o:Table>
18125 18137
 <o:Table Id="o256">
@@ -18133,7 +18145,7 @@ LABL 0 新宋体,8,N</a:FontList>
18133 18145
 <a:Comment>用户车牌号表</a:Comment>
18134 18146
 <a:TotalSavingCurrency/>
18135 18147
 <c:Columns>
18136
-<o:Column Id="o1066">
18148
+<o:Column Id="o1067">
18137 18149
 <a:ObjectID>2ADC4DD9-6B52-46D7-80A7-0B269251996F</a:ObjectID>
18138 18150
 <a:Name>id</a:Name>
18139 18151
 <a:Code>id</a:Code>
@@ -18146,7 +18158,7 @@ LABL 0 新宋体,8,N</a:FontList>
18146 18158
 <a:Identity>1</a:Identity>
18147 18159
 <a:Column.Mandatory>1</a:Column.Mandatory>
18148 18160
 </o:Column>
18149
-<o:Column Id="o1067">
18161
+<o:Column Id="o1068">
18150 18162
 <a:ObjectID>B2476244-EFC3-4FF8-A728-50D1941D12BB</a:ObjectID>
18151 18163
 <a:Name>community_id</a:Name>
18152 18164
 <a:Code>community_id</a:Code>
@@ -18158,7 +18170,7 @@ LABL 0 新宋体,8,N</a:FontList>
18158 18170
 <a:DataType>int(11)</a:DataType>
18159 18171
 <a:Length>11</a:Length>
18160 18172
 </o:Column>
18161
-<o:Column Id="o1068">
18173
+<o:Column Id="o1069">
18162 18174
 <a:ObjectID>D4FE9889-F81C-40A2-9777-99934795E873</a:ObjectID>
18163 18175
 <a:Name>ta_user_id</a:Name>
18164 18176
 <a:Code>ta_user_id</a:Code>
@@ -18170,7 +18182,7 @@ LABL 0 新宋体,8,N</a:FontList>
18170 18182
 <a:DataType>int(11)</a:DataType>
18171 18183
 <a:Length>11</a:Length>
18172 18184
 </o:Column>
18173
-<o:Column Id="o1069">
18185
+<o:Column Id="o1070">
18174 18186
 <a:ObjectID>9AF156AE-3592-4A2F-ADD4-AF7D94A024F2</a:ObjectID>
18175 18187
 <a:Name>license_plate</a:Name>
18176 18188
 <a:Code>license_plate</a:Code>
@@ -18182,7 +18194,7 @@ LABL 0 新宋体,8,N</a:FontList>
18182 18194
 <a:DataType>varchar(255)</a:DataType>
18183 18195
 <a:Length>255</a:Length>
18184 18196
 </o:Column>
18185
-<o:Column Id="o1070">
18197
+<o:Column Id="o1071">
18186 18198
 <a:ObjectID>4AF2667F-B53D-4CAB-9DF9-7388FD52766D</a:ObjectID>
18187 18199
 <a:Name>order_number</a:Name>
18188 18200
 <a:Code>order_number</a:Code>
@@ -18194,7 +18206,7 @@ LABL 0 新宋体,8,N</a:FontList>
18194 18206
 <a:DataType>varchar(255)</a:DataType>
18195 18207
 <a:Length>255</a:Length>
18196 18208
 </o:Column>
18197
-<o:Column Id="o1071">
18209
+<o:Column Id="o1072">
18198 18210
 <a:ObjectID>33679CF5-35FC-4B38-9BFA-D008AFEB89C3</a:ObjectID>
18199 18211
 <a:Name>expire_date</a:Name>
18200 18212
 <a:Code>expire_date</a:Code>
@@ -18205,7 +18217,7 @@ LABL 0 新宋体,8,N</a:FontList>
18205 18217
 <a:Comment>到期时间</a:Comment>
18206 18218
 <a:DataType>datetime</a:DataType>
18207 18219
 </o:Column>
18208
-<o:Column Id="o1072">
18220
+<o:Column Id="o1073">
18209 18221
 <a:ObjectID>57CE5A0C-2BD4-4B1F-AED4-D8FFB7C53768</a:ObjectID>
18210 18222
 <a:Name>unit_price</a:Name>
18211 18223
 <a:Code>unit_price</a:Code>
@@ -18217,7 +18229,7 @@ LABL 0 新宋体,8,N</a:FontList>
18217 18229
 <a:DataType>varchar(255)</a:DataType>
18218 18230
 <a:Length>255</a:Length>
18219 18231
 </o:Column>
18220
-<o:Column Id="o1073">
18232
+<o:Column Id="o1074">
18221 18233
 <a:ObjectID>593C14C2-DC52-447D-9901-15585EB3D25E</a:ObjectID>
18222 18234
 <a:Name>parking_lot</a:Name>
18223 18235
 <a:Code>parking_lot</a:Code>
@@ -18229,7 +18241,7 @@ LABL 0 新宋体,8,N</a:FontList>
18229 18241
 <a:DataType>varchar(255)</a:DataType>
18230 18242
 <a:Length>255</a:Length>
18231 18243
 </o:Column>
18232
-<o:Column Id="o1074">
18244
+<o:Column Id="o1075">
18233 18245
 <a:ObjectID>B11B597D-C188-4F86-B983-1247AAC74386</a:ObjectID>
18234 18246
 <a:Name>renew_time</a:Name>
18235 18247
 <a:Code>renew_time</a:Code>
@@ -18241,7 +18253,7 @@ LABL 0 新宋体,8,N</a:FontList>
18241 18253
 <a:DataType>int(11)</a:DataType>
18242 18254
 <a:Length>11</a:Length>
18243 18255
 </o:Column>
18244
-<o:Column Id="o1075">
18256
+<o:Column Id="o1076">
18245 18257
 <a:ObjectID>B9A4F75B-5600-4E03-97CA-F52659AF4566</a:ObjectID>
18246 18258
 <a:Name>license_type</a:Name>
18247 18259
 <a:Code>license_type</a:Code>
@@ -18253,7 +18265,7 @@ LABL 0 新宋体,8,N</a:FontList>
18253 18265
 <a:DataType>int(11)</a:DataType>
18254 18266
 <a:Length>11</a:Length>
18255 18267
 </o:Column>
18256
-<o:Column Id="o1076">
18268
+<o:Column Id="o1077">
18257 18269
 <a:ObjectID>00FA4FFC-5A5F-4873-881A-EA8B4C2639BD</a:ObjectID>
18258 18270
 <a:Name>create_date</a:Name>
18259 18271
 <a:Code>create_date</a:Code>
@@ -18264,7 +18276,7 @@ LABL 0 新宋体,8,N</a:FontList>
18264 18276
 <a:Comment>创建时间</a:Comment>
18265 18277
 <a:DataType>datetime</a:DataType>
18266 18278
 </o:Column>
18267
-<o:Column Id="o1077">
18279
+<o:Column Id="o1078">
18268 18280
 <a:ObjectID>C3559530-E9AA-4BB9-A794-582963C4A4BF</a:ObjectID>
18269 18281
 <a:Name>create_user</a:Name>
18270 18282
 <a:Code>create_user</a:Code>
@@ -18276,7 +18288,7 @@ LABL 0 新宋体,8,N</a:FontList>
18276 18288
 <a:DataType>int(11)</a:DataType>
18277 18289
 <a:Length>11</a:Length>
18278 18290
 </o:Column>
18279
-<o:Column Id="o1078">
18291
+<o:Column Id="o1079">
18280 18292
 <a:ObjectID>AD4AC6D5-678E-49FC-93B0-BB84F617CD00</a:ObjectID>
18281 18293
 <a:Name>update_date</a:Name>
18282 18294
 <a:Code>update_date</a:Code>
@@ -18287,7 +18299,7 @@ LABL 0 新宋体,8,N</a:FontList>
18287 18299
 <a:Comment>更新时间</a:Comment>
18288 18300
 <a:DataType>datetime</a:DataType>
18289 18301
 </o:Column>
18290
-<o:Column Id="o1079">
18302
+<o:Column Id="o1080">
18291 18303
 <a:ObjectID>85836F40-5F4D-4AB8-9DC7-2345ED8AE5DA</a:ObjectID>
18292 18304
 <a:Name>update_user</a:Name>
18293 18305
 <a:Code>update_user</a:Code>
@@ -18301,7 +18313,7 @@ LABL 0 新宋体,8,N</a:FontList>
18301 18313
 </o:Column>
18302 18314
 </c:Columns>
18303 18315
 <c:Keys>
18304
-<o:Key Id="o1080">
18316
+<o:Key Id="o1081">
18305 18317
 <a:ObjectID>63206026-120F-43C3-AF49-7BF7198EAA64</a:ObjectID>
18306 18318
 <a:Name>Key_1</a:Name>
18307 18319
 <a:Code>Key_1</a:Code>
@@ -18310,12 +18322,12 @@ LABL 0 新宋体,8,N</a:FontList>
18310 18322
 <a:ModificationDate>1557367718</a:ModificationDate>
18311 18323
 <a:Modifier>szc</a:Modifier>
18312 18324
 <c:Key.Columns>
18313
-<o:Column Ref="o1066"/>
18325
+<o:Column Ref="o1067"/>
18314 18326
 </c:Key.Columns>
18315 18327
 </o:Key>
18316 18328
 </c:Keys>
18317 18329
 <c:PrimaryKey>
18318
-<o:Key Ref="o1080"/>
18330
+<o:Key Ref="o1081"/>
18319 18331
 </c:PrimaryKey>
18320 18332
 </o:Table>
18321 18333
 <o:Table Id="o257">
@@ -18329,7 +18341,7 @@ LABL 0 新宋体,8,N</a:FontList>
18329 18341
 <a:Comment>月租车缴费订单表</a:Comment>
18330 18342
 <a:TotalSavingCurrency/>
18331 18343
 <c:Columns>
18332
-<o:Column Id="o1081">
18344
+<o:Column Id="o1082">
18333 18345
 <a:ObjectID>08F36182-AB22-433F-8F51-E805E2ACC919</a:ObjectID>
18334 18346
 <a:Name>id</a:Name>
18335 18347
 <a:Code>id</a:Code>
@@ -18342,7 +18354,7 @@ LABL 0 新宋体,8,N</a:FontList>
18342 18354
 <a:Identity>1</a:Identity>
18343 18355
 <a:Column.Mandatory>1</a:Column.Mandatory>
18344 18356
 </o:Column>
18345
-<o:Column Id="o1082">
18357
+<o:Column Id="o1083">
18346 18358
 <a:ObjectID>45D65D52-E45F-466F-B13D-4BAB7431D881</a:ObjectID>
18347 18359
 <a:Name>community_id</a:Name>
18348 18360
 <a:Code>community_id</a:Code>
@@ -18354,7 +18366,7 @@ LABL 0 新宋体,8,N</a:FontList>
18354 18366
 <a:DataType>int(11)</a:DataType>
18355 18367
 <a:Length>11</a:Length>
18356 18368
 </o:Column>
18357
-<o:Column Id="o1083">
18369
+<o:Column Id="o1084">
18358 18370
 <a:ObjectID>80318F85-BB20-4024-9998-D987A98B2C8F</a:ObjectID>
18359 18371
 <a:Name>user_license_id</a:Name>
18360 18372
 <a:Code>ta_user_id</a:Code>
@@ -18366,7 +18378,7 @@ LABL 0 新宋体,8,N</a:FontList>
18366 18378
 <a:DataType>int(11)</a:DataType>
18367 18379
 <a:Length>11</a:Length>
18368 18380
 </o:Column>
18369
-<o:Column Id="o1084">
18381
+<o:Column Id="o1085">
18370 18382
 <a:ObjectID>63010136-6F76-4F2E-970D-D599445EE9B0</a:ObjectID>
18371 18383
 <a:Name>order_number</a:Name>
18372 18384
 <a:Code>order_number</a:Code>
@@ -18378,7 +18390,7 @@ LABL 0 新宋体,8,N</a:FontList>
18378 18390
 <a:DataType>varchar(255)</a:DataType>
18379 18391
 <a:Length>255</a:Length>
18380 18392
 </o:Column>
18381
-<o:Column Id="o1085">
18393
+<o:Column Id="o1086">
18382 18394
 <a:ObjectID>D575E6DD-CE84-4ED5-8208-C3C936932B7B</a:ObjectID>
18383 18395
 <a:Name>order_status</a:Name>
18384 18396
 <a:Code>order_status</a:Code>
@@ -18390,7 +18402,7 @@ LABL 0 新宋体,8,N</a:FontList>
18390 18402
 <a:DataType>varchar(255)</a:DataType>
18391 18403
 <a:Length>255</a:Length>
18392 18404
 </o:Column>
18393
-<o:Column Id="o1086">
18405
+<o:Column Id="o1087">
18394 18406
 <a:ObjectID>2D0B1C89-FCE7-43EB-9E46-3814A128EAA1</a:ObjectID>
18395 18407
 <a:Name>create_user</a:Name>
18396 18408
 <a:Code>create_user</a:Code>
@@ -18402,7 +18414,7 @@ LABL 0 新宋体,8,N</a:FontList>
18402 18414
 <a:DataType>int(11)</a:DataType>
18403 18415
 <a:Length>11</a:Length>
18404 18416
 </o:Column>
18405
-<o:Column Id="o1087">
18417
+<o:Column Id="o1088">
18406 18418
 <a:ObjectID>A1476C8B-868D-4B30-ACD0-08C86C003A27</a:ObjectID>
18407 18419
 <a:Name>create_date</a:Name>
18408 18420
 <a:Code>create_date</a:Code>
@@ -18413,7 +18425,7 @@ LABL 0 新宋体,8,N</a:FontList>
18413 18425
 <a:Comment>创建时间</a:Comment>
18414 18426
 <a:DataType>datetime</a:DataType>
18415 18427
 </o:Column>
18416
-<o:Column Id="o1088">
18428
+<o:Column Id="o1089">
18417 18429
 <a:ObjectID>BE3B494A-E8E4-421E-A871-FD700644271F</a:ObjectID>
18418 18430
 <a:Name>update_user</a:Name>
18419 18431
 <a:Code>update_user</a:Code>
@@ -18425,7 +18437,7 @@ LABL 0 新宋体,8,N</a:FontList>
18425 18437
 <a:DataType>int(11)</a:DataType>
18426 18438
 <a:Length>11</a:Length>
18427 18439
 </o:Column>
18428
-<o:Column Id="o1089">
18440
+<o:Column Id="o1090">
18429 18441
 <a:ObjectID>A34F3B8C-7F9A-41ED-BD96-44A95D08C547</a:ObjectID>
18430 18442
 <a:Name>update_date</a:Name>
18431 18443
 <a:Code>update_date</a:Code>
@@ -18436,7 +18448,7 @@ LABL 0 新宋体,8,N</a:FontList>
18436 18448
 <a:Comment>更新时间</a:Comment>
18437 18449
 <a:DataType>datetime</a:DataType>
18438 18450
 </o:Column>
18439
-<o:Column Id="o1090">
18451
+<o:Column Id="o1091">
18440 18452
 <a:ObjectID>8EA7049C-94A1-453E-B283-8E79F440BCEB</a:ObjectID>
18441 18453
 <a:Name>extension_month</a:Name>
18442 18454
 <a:Code>extension_month</a:Code>
@@ -18448,7 +18460,7 @@ LABL 0 新宋体,8,N</a:FontList>
18448 18460
 <a:DataType>int(11)</a:DataType>
18449 18461
 <a:Length>11</a:Length>
18450 18462
 </o:Column>
18451
-<o:Column Id="o1091">
18463
+<o:Column Id="o1092">
18452 18464
 <a:ObjectID>749D6A1D-5072-45E8-9826-22579FD72F1F</a:ObjectID>
18453 18465
 <a:Name>extension_price</a:Name>
18454 18466
 <a:Code>extension_price</a:Code>
@@ -18460,7 +18472,7 @@ LABL 0 新宋体,8,N</a:FontList>
18460 18472
 <a:DataType>varchar(255)</a:DataType>
18461 18473
 <a:Length>255</a:Length>
18462 18474
 </o:Column>
18463
-<o:Column Id="o1092">
18475
+<o:Column Id="o1093">
18464 18476
 <a:ObjectID>E0395793-A050-4735-96E3-F17749B36CEC</a:ObjectID>
18465 18477
 <a:Name>payment_tel</a:Name>
18466 18478
 <a:Code>payment_tel</a:Code>
@@ -18472,7 +18484,7 @@ LABL 0 新宋体,8,N</a:FontList>
18472 18484
 <a:DataType>varchar(255)</a:DataType>
18473 18485
 <a:Length>255</a:Length>
18474 18486
 </o:Column>
18475
-<o:Column Id="o1093">
18487
+<o:Column Id="o1094">
18476 18488
 <a:ObjectID>3D0DBFAF-ACCA-4178-AEC7-478CABDABE68</a:ObjectID>
18477 18489
 <a:Name>payment_name</a:Name>
18478 18490
 <a:Code>payment_name</a:Code>
@@ -18484,7 +18496,7 @@ LABL 0 新宋体,8,N</a:FontList>
18484 18496
 <a:DataType>varchar(255)</a:DataType>
18485 18497
 <a:Length>255</a:Length>
18486 18498
 </o:Column>
18487
-<o:Column Id="o1094">
18499
+<o:Column Id="o1095">
18488 18500
 <a:ObjectID>2C17C691-0E31-4CD5-A8A7-5D326BB722F7</a:ObjectID>
18489 18501
 <a:Name>payment_type</a:Name>
18490 18502
 <a:Code>payment_type</a:Code>
@@ -18496,7 +18508,7 @@ LABL 0 新宋体,8,N</a:FontList>
18496 18508
 <a:DataType>varchar(2)</a:DataType>
18497 18509
 <a:Length>2</a:Length>
18498 18510
 </o:Column>
18499
-<o:Column Id="o1095">
18511
+<o:Column Id="o1096">
18500 18512
 <a:ObjectID>431D00B1-22B7-4183-9E3C-8DC9222B68A9</a:ObjectID>
18501 18513
 <a:Name>expire_date</a:Name>
18502 18514
 <a:Code>expire_date</a:Code>
@@ -18507,7 +18519,7 @@ LABL 0 新宋体,8,N</a:FontList>
18507 18519
 <a:Comment>到期时间</a:Comment>
18508 18520
 <a:DataType>datetime</a:DataType>
18509 18521
 </o:Column>
18510
-<o:Column Id="o1096">
18522
+<o:Column Id="o1097">
18511 18523
 <a:ObjectID>9D078A47-1407-4881-9BAC-287FC15BBEB6</a:ObjectID>
18512 18524
 <a:Name>unit_price</a:Name>
18513 18525
 <a:Code>unit_price</a:Code>
@@ -18519,7 +18531,7 @@ LABL 0 新宋体,8,N</a:FontList>
18519 18531
 <a:DataType>varchar(255)</a:DataType>
18520 18532
 <a:Length>255</a:Length>
18521 18533
 </o:Column>
18522
-<o:Column Id="o1097">
18534
+<o:Column Id="o1098">
18523 18535
 <a:ObjectID>F78B78EC-E859-47C1-AC9D-A3E1B0CBA926</a:ObjectID>
18524 18536
 <a:Name>parking_lot</a:Name>
18525 18537
 <a:Code>parking_lot</a:Code>
@@ -18531,7 +18543,7 @@ LABL 0 新宋体,8,N</a:FontList>
18531 18543
 <a:DataType>varchar(255)</a:DataType>
18532 18544
 <a:Length>255</a:Length>
18533 18545
 </o:Column>
18534
-<o:Column Id="o1098">
18546
+<o:Column Id="o1099">
18535 18547
 <a:ObjectID>9273BE9C-B9DC-4C92-AA4D-018829225523</a:ObjectID>
18536 18548
 <a:Name>license_plate</a:Name>
18537 18549
 <a:Code>license_plate</a:Code>
@@ -18545,7 +18557,7 @@ LABL 0 新宋体,8,N</a:FontList>
18545 18557
 </o:Column>
18546 18558
 </c:Columns>
18547 18559
 <c:Keys>
18548
-<o:Key Id="o1099">
18560
+<o:Key Id="o1100">
18549 18561
 <a:ObjectID>F57D4E18-1528-44BD-BEBB-4680F3D77BDA</a:ObjectID>
18550 18562
 <a:Name>Key_1</a:Name>
18551 18563
 <a:Code>Key_1</a:Code>
@@ -18554,12 +18566,12 @@ LABL 0 新宋体,8,N</a:FontList>
18554 18566
 <a:ModificationDate>1557372945</a:ModificationDate>
18555 18567
 <a:Modifier>szc</a:Modifier>
18556 18568
 <c:Key.Columns>
18557
-<o:Column Ref="o1081"/>
18569
+<o:Column Ref="o1082"/>
18558 18570
 </c:Key.Columns>
18559 18571
 </o:Key>
18560 18572
 </c:Keys>
18561 18573
 <c:PrimaryKey>
18562
-<o:Key Ref="o1099"/>
18574
+<o:Key Ref="o1100"/>
18563 18575
 </c:PrimaryKey>
18564 18576
 </o:Table>
18565 18577
 <o:Table Id="o259">
@@ -18568,12 +18580,12 @@ LABL 0 新宋体,8,N</a:FontList>
18568 18580
 <a:Code>ta_version</a:Code>
18569 18581
 <a:CreationDate>1557800506</a:CreationDate>
18570 18582
 <a:Creator>szc</a:Creator>
18571
-<a:ModificationDate>1557800706</a:ModificationDate>
18583
+<a:ModificationDate>1557800793</a:ModificationDate>
18572 18584
 <a:Modifier>szc</a:Modifier>
18573 18585
 <a:Comment>app端版本号</a:Comment>
18574 18586
 <a:TotalSavingCurrency/>
18575 18587
 <c:Columns>
18576
-<o:Column Id="o1100">
18588
+<o:Column Id="o1101">
18577 18589
 <a:ObjectID>A9874095-1A7A-41B3-BDAA-89FF219B226F</a:ObjectID>
18578 18590
 <a:Name>id</a:Name>
18579 18591
 <a:Code>id</a:Code>
@@ -18585,7 +18597,7 @@ LABL 0 新宋体,8,N</a:FontList>
18585 18597
 <a:Length>11</a:Length>
18586 18598
 <a:Column.Mandatory>1</a:Column.Mandatory>
18587 18599
 </o:Column>
18588
-<o:Column Id="o1101">
18600
+<o:Column Id="o1102">
18589 18601
 <a:ObjectID>946CB4DD-6B85-465A-895E-5E8A8F2BA7C3</a:ObjectID>
18590 18602
 <a:Name>client_version</a:Name>
18591 18603
 <a:Code>client_version</a:Code>
@@ -18597,7 +18609,7 @@ LABL 0 新宋体,8,N</a:FontList>
18597 18609
 <a:DataType>varchar(255)</a:DataType>
18598 18610
 <a:Length>255</a:Length>
18599 18611
 </o:Column>
18600
-<o:Column Id="o1102">
18612
+<o:Column Id="o1103">
18601 18613
 <a:ObjectID>BDFD3026-FC17-4D03-A503-7AF3A37592A5</a:ObjectID>
18602 18614
 <a:Name>service_version</a:Name>
18603 18615
 <a:Code>service_version</a:Code>
@@ -18609,7 +18621,7 @@ LABL 0 新宋体,8,N</a:FontList>
18609 18621
 <a:DataType>varchar(255)</a:DataType>
18610 18622
 <a:Length>255</a:Length>
18611 18623
 </o:Column>
18612
-<o:Column Id="o1103">
18624
+<o:Column Id="o1104">
18613 18625
 <a:ObjectID>3D77C63D-552E-4815-8BBB-148013A10319</a:ObjectID>
18614 18626
 <a:Name>type</a:Name>
18615 18627
 <a:Code>type</a:Code>
@@ -18621,9 +18633,21 @@ LABL 0 新宋体,8,N</a:FontList>
18621 18633
 <a:DataType>varchar(255)</a:DataType>
18622 18634
 <a:Length>255</a:Length>
18623 18635
 </o:Column>
18636
+<o:Column Id="o1105">
18637
+<a:ObjectID>1414BD13-AA8D-4144-BA19-810AED96EE55</a:ObjectID>
18638
+<a:Name>update_address</a:Name>
18639
+<a:Code>update_address</a:Code>
18640
+<a:CreationDate>1557800748</a:CreationDate>
18641
+<a:Creator>szc</a:Creator>
18642
+<a:ModificationDate>1557800793</a:ModificationDate>
18643
+<a:Modifier>szc</a:Modifier>
18644
+<a:Comment>升级地址</a:Comment>
18645
+<a:DataType>varchar(255)</a:DataType>
18646
+<a:Length>255</a:Length>
18647
+</o:Column>
18624 18648
 </c:Columns>
18625 18649
 <c:Keys>
18626
-<o:Key Id="o1104">
18650
+<o:Key Id="o1106">
18627 18651
 <a:ObjectID>81BA3F75-E9E6-4FF0-BC41-4D8BAF735EDC</a:ObjectID>
18628 18652
 <a:Name>Key_1</a:Name>
18629 18653
 <a:Code>Key_1</a:Code>
@@ -18632,17 +18656,17 @@ LABL 0 新宋体,8,N</a:FontList>
18632 18656
 <a:ModificationDate>1557800616</a:ModificationDate>
18633 18657
 <a:Modifier>szc</a:Modifier>
18634 18658
 <c:Key.Columns>
18635
-<o:Column Ref="o1100"/>
18659
+<o:Column Ref="o1101"/>
18636 18660
 </c:Key.Columns>
18637 18661
 </o:Key>
18638 18662
 </c:Keys>
18639 18663
 <c:PrimaryKey>
18640
-<o:Key Ref="o1104"/>
18664
+<o:Key Ref="o1106"/>
18641 18665
 </c:PrimaryKey>
18642 18666
 </o:Table>
18643 18667
 </c:Tables>
18644 18668
 <c:DefaultGroups>
18645
-<o:Group Id="o1105">
18669
+<o:Group Id="o1107">
18646 18670
 <a:ObjectID>9FAF56B5-A351-488F-9A3B-D4A944CD4081</a:ObjectID>
18647 18671
 <a:Name>PUBLIC</a:Name>
18648 18672
 <a:Code>PUBLIC</a:Code>
@@ -19305,7 +19329,7 @@ LABL 0 新宋体,8,N</a:FontList>
19305 19329
 </o:ExtendedDependency>
19306 19330
 </c:ChildTraceabilityLinks>
19307 19331
 <c:TargetModels>
19308
-<o:TargetModel Id="o1106">
19332
+<o:TargetModel Id="o1108">
19309 19333
 <a:ObjectID>B86EB932-C352-4174-86E4-2D2B1DDE4A45</a:ObjectID>
19310 19334
 <a:Name>MySQL 5.0</a:Name>
19311 19335
 <a:Code>MYSQL50</a:Code>

+ 124
- 100
文档/MYSQL/smartCommunity.pdm 查看文件

@@ -1,5 +1,5 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1557800793" Name="smartCommunity" Objects="1161" Symbols="129" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
2
+<?PowerDesigner AppLocale="UTF16" ID="{1EFA7B8F-E5BE-422B-A0AE-B907AA87924F}" Label="" LastModificationDate="1557818754" Name="smartCommunity" Objects="1163" Symbols="129" Target="MySQL 5.0" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="16.5.0.3982"?>
3 3
 <!-- do not edit this file -->
4 4
 
5 5
 <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@@ -6979,7 +6979,7 @@ LABL 0 新宋体,8,N</a:FontList>
6979 6979
 <a:CreationDate>1557303510</a:CreationDate>
6980 6980
 <a:ModificationDate>1557306066</a:ModificationDate>
6981 6981
 <a:IconMode>-1</a:IconMode>
6982
-<a:Rect>((187327,19260), (204115,48658))</a:Rect>
6982
+<a:Rect>((187327,18360), (204115,49558))</a:Rect>
6983 6983
 <a:LineColor>12615680</a:LineColor>
6984 6984
 <a:FillColor>16570034</a:FillColor>
6985 6985
 <a:ShadowColor>12632256</a:ShadowColor>
@@ -17524,7 +17524,7 @@ LABL 0 新宋体,8,N</a:FontList>
17524 17524
 <a:Code>tp_rental_house</a:Code>
17525 17525
 <a:CreationDate>1557303510</a:CreationDate>
17526 17526
 <a:Creator>szc</a:Creator>
17527
-<a:ModificationDate>1557307546</a:ModificationDate>
17527
+<a:ModificationDate>1557818754</a:ModificationDate>
17528 17528
 <a:Modifier>szc</a:Modifier>
17529 17529
 <a:Comment>出租公寓表</a:Comment>
17530 17530
 <a:TotalSavingCurrency/>
@@ -17543,6 +17543,18 @@ LABL 0 新宋体,8,N</a:FontList>
17543 17543
 <a:Column.Mandatory>1</a:Column.Mandatory>
17544 17544
 </o:Column>
17545 17545
 <o:Column Id="o1021">
17546
+<a:ObjectID>8AE70562-18C0-45C6-BF15-FCAA422F59C2</a:ObjectID>
17547
+<a:Name>community_id</a:Name>
17548
+<a:Code>community_id</a:Code>
17549
+<a:CreationDate>1557813774</a:CreationDate>
17550
+<a:Creator>szc</a:Creator>
17551
+<a:ModificationDate>1557813818</a:ModificationDate>
17552
+<a:Modifier>szc</a:Modifier>
17553
+<a:Comment>我们系统的小区ID</a:Comment>
17554
+<a:DataType>int(11)</a:DataType>
17555
+<a:Length>11</a:Length>
17556
+</o:Column>
17557
+<o:Column Id="o1022">
17546 17558
 <a:ObjectID>51C7C13C-E338-45B0-A4E6-3F88B2DE7F33</a:ObjectID>
17547 17559
 <a:Name>house_name</a:Name>
17548 17560
 <a:Code>house_name</a:Code>
@@ -17554,7 +17566,7 @@ LABL 0 新宋体,8,N</a:FontList>
17554 17566
 <a:DataType>varchar(255)</a:DataType>
17555 17567
 <a:Length>255</a:Length>
17556 17568
 </o:Column>
17557
-<o:Column Id="o1022">
17569
+<o:Column Id="o1023">
17558 17570
 <a:ObjectID>CB9AD670-AD18-4424-9385-AB1105DCE3CB</a:ObjectID>
17559 17571
 <a:Name>rental_price</a:Name>
17560 17572
 <a:Code>rental_price</a:Code>
@@ -17566,7 +17578,7 @@ LABL 0 新宋体,8,N</a:FontList>
17566 17578
 <a:DataType>varchar(255)</a:DataType>
17567 17579
 <a:Length>255</a:Length>
17568 17580
 </o:Column>
17569
-<o:Column Id="o1023">
17581
+<o:Column Id="o1024">
17570 17582
 <a:ObjectID>2D4C03FA-18B3-4835-A768-0BF06B6674B2</a:ObjectID>
17571 17583
 <a:Name>area</a:Name>
17572 17584
 <a:Code>area</a:Code>
@@ -17578,7 +17590,7 @@ LABL 0 新宋体,8,N</a:FontList>
17578 17590
 <a:DataType>varchar(255)</a:DataType>
17579 17591
 <a:Length>255</a:Length>
17580 17592
 </o:Column>
17581
-<o:Column Id="o1024">
17593
+<o:Column Id="o1025">
17582 17594
 <a:ObjectID>DE4B7575-2E0F-4439-BB2E-7B293918BCFF</a:ObjectID>
17583 17595
 <a:Name>rental_type</a:Name>
17584 17596
 <a:Code>rental_type</a:Code>
@@ -17590,7 +17602,7 @@ LABL 0 新宋体,8,N</a:FontList>
17590 17602
 <a:DataType>varchar(255)</a:DataType>
17591 17603
 <a:Length>255</a:Length>
17592 17604
 </o:Column>
17593
-<o:Column Id="o1025">
17605
+<o:Column Id="o1026">
17594 17606
 <a:ObjectID>09D9CD83-643E-407F-B521-D0B808271727</a:ObjectID>
17595 17607
 <a:Name>house_type</a:Name>
17596 17608
 <a:Code>house_type</a:Code>
@@ -17602,7 +17614,7 @@ LABL 0 新宋体,8,N</a:FontList>
17602 17614
 <a:DataType>varchar(255)</a:DataType>
17603 17615
 <a:Length>255</a:Length>
17604 17616
 </o:Column>
17605
-<o:Column Id="o1026">
17617
+<o:Column Id="o1027">
17606 17618
 <a:ObjectID>CF14CF64-1763-4792-8D75-D010840925A8</a:ObjectID>
17607 17619
 <a:Name>house_status</a:Name>
17608 17620
 <a:Code>house_status</a:Code>
@@ -17614,7 +17626,7 @@ LABL 0 新宋体,8,N</a:FontList>
17614 17626
 <a:DataType>varchar(255)</a:DataType>
17615 17627
 <a:Length>255</a:Length>
17616 17628
 </o:Column>
17617
-<o:Column Id="o1027">
17629
+<o:Column Id="o1028">
17618 17630
 <a:ObjectID>F676264A-1683-4D62-BBB4-F18F705B4C63</a:ObjectID>
17619 17631
 <a:Name>house_level</a:Name>
17620 17632
 <a:Code>house_level</a:Code>
@@ -17626,7 +17638,7 @@ LABL 0 新宋体,8,N</a:FontList>
17626 17638
 <a:DataType>varchar(255)</a:DataType>
17627 17639
 <a:Length>255</a:Length>
17628 17640
 </o:Column>
17629
-<o:Column Id="o1028">
17641
+<o:Column Id="o1029">
17630 17642
 <a:ObjectID>D56459F7-EC5C-4508-84C0-4BBEF2ADA53D</a:ObjectID>
17631 17643
 <a:Name>house_label</a:Name>
17632 17644
 <a:Code>house_label</a:Code>
@@ -17638,7 +17650,7 @@ LABL 0 新宋体,8,N</a:FontList>
17638 17650
 <a:DataType>varchar(255)</a:DataType>
17639 17651
 <a:Length>255</a:Length>
17640 17652
 </o:Column>
17641
-<o:Column Id="o1029">
17653
+<o:Column Id="o1030">
17642 17654
 <a:ObjectID>C9B94A82-C5AA-4826-9909-E564BF1B5E0A</a:ObjectID>
17643 17655
 <a:Name>sort</a:Name>
17644 17656
 <a:Code>sort</a:Code>
@@ -17650,7 +17662,7 @@ LABL 0 新宋体,8,N</a:FontList>
17650 17662
 <a:DataType>int(11)</a:DataType>
17651 17663
 <a:Length>11</a:Length>
17652 17664
 </o:Column>
17653
-<o:Column Id="o1030">
17665
+<o:Column Id="o1031">
17654 17666
 <a:ObjectID>9B121749-83C8-4367-8A35-1D05D64102B1</a:ObjectID>
17655 17667
 <a:Name>house_tel</a:Name>
17656 17668
 <a:Code>house_tel</a:Code>
@@ -17662,7 +17674,7 @@ LABL 0 新宋体,8,N</a:FontList>
17662 17674
 <a:DataType>varchar(255)</a:DataType>
17663 17675
 <a:Length>255</a:Length>
17664 17676
 </o:Column>
17665
-<o:Column Id="o1031">
17677
+<o:Column Id="o1032">
17666 17678
 <a:ObjectID>FE137449-0BEF-4A20-AC8F-475CA8BF4F2E</a:ObjectID>
17667 17679
 <a:Name>community_address</a:Name>
17668 17680
 <a:Code>community_address</a:Code>
@@ -17674,7 +17686,7 @@ LABL 0 新宋体,8,N</a:FontList>
17674 17686
 <a:DataType>varchar(255)</a:DataType>
17675 17687
 <a:Length>255</a:Length>
17676 17688
 </o:Column>
17677
-<o:Column Id="o1032">
17689
+<o:Column Id="o1033">
17678 17690
 <a:ObjectID>34B0089B-9EA6-436B-B236-B087A3CE73E5</a:ObjectID>
17679 17691
 <a:Name>community_longitude</a:Name>
17680 17692
 <a:Code>community_longitude</a:Code>
@@ -17686,7 +17698,7 @@ LABL 0 新宋体,8,N</a:FontList>
17686 17698
 <a:DataType>varchar(255)</a:DataType>
17687 17699
 <a:Length>255</a:Length>
17688 17700
 </o:Column>
17689
-<o:Column Id="o1033">
17701
+<o:Column Id="o1034">
17690 17702
 <a:ObjectID>A62ABB38-54CD-4F47-8C17-D1A9342DD8FC</a:ObjectID>
17691 17703
 <a:Name>community_latitude</a:Name>
17692 17704
 <a:Code>community_latitude</a:Code>
@@ -17698,7 +17710,7 @@ LABL 0 新宋体,8,N</a:FontList>
17698 17710
 <a:DataType>varchar(255)</a:DataType>
17699 17711
 <a:Length>255</a:Length>
17700 17712
 </o:Column>
17701
-<o:Column Id="o1034">
17713
+<o:Column Id="o1035">
17702 17714
 <a:ObjectID>1E5C86EA-7B19-497D-BDDE-96EA66DF905F</a:ObjectID>
17703 17715
 <a:Name>house_introduction</a:Name>
17704 17716
 <a:Code>house_introduction</a:Code>
@@ -17709,7 +17721,7 @@ LABL 0 新宋体,8,N</a:FontList>
17709 17721
 <a:Comment>房屋介绍</a:Comment>
17710 17722
 <a:DataType>text</a:DataType>
17711 17723
 </o:Column>
17712
-<o:Column Id="o1035">
17724
+<o:Column Id="o1036">
17713 17725
 <a:ObjectID>C505FCE6-7EF3-4451-8A34-0A61EC7FE8E0</a:ObjectID>
17714 17726
 <a:Name>bed</a:Name>
17715 17727
 <a:Code>bed</a:Code>
@@ -17721,7 +17733,19 @@ LABL 0 新宋体,8,N</a:FontList>
17721 17733
 <a:DataType>varchar(1)</a:DataType>
17722 17734
 <a:Length>1</a:Length>
17723 17735
 </o:Column>
17724
-<o:Column Id="o1036">
17736
+<o:Column Id="o1037">
17737
+<a:ObjectID>42F73021-2A57-4614-B1A8-3C713A84F54D</a:ObjectID>
17738
+<a:Name>mattress</a:Name>
17739
+<a:Code>mattress</a:Code>
17740
+<a:CreationDate>1557818735</a:CreationDate>
17741
+<a:Creator>szc</a:Creator>
17742
+<a:ModificationDate>1557818754</a:ModificationDate>
17743
+<a:Modifier>szc</a:Modifier>
17744
+<a:Comment>床垫 1 有</a:Comment>
17745
+<a:DataType>varchar(1)</a:DataType>
17746
+<a:Length>1</a:Length>
17747
+</o:Column>
17748
+<o:Column Id="o1038">
17725 17749
 <a:ObjectID>86AC4B40-FEBD-4FCB-A079-23ED794287E7</a:ObjectID>
17726 17750
 <a:Name>wardrobe</a:Name>
17727 17751
 <a:Code>wardrobe</a:Code>
@@ -17733,7 +17757,7 @@ LABL 0 新宋体,8,N</a:FontList>
17733 17757
 <a:DataType>varchar(1)</a:DataType>
17734 17758
 <a:Length>1</a:Length>
17735 17759
 </o:Column>
17736
-<o:Column Id="o1037">
17760
+<o:Column Id="o1039">
17737 17761
 <a:ObjectID>0F598383-042D-42FD-B7DD-5EAD70E46C1B</a:ObjectID>
17738 17762
 <a:Name>dining_table</a:Name>
17739 17763
 <a:Code>dining_table</a:Code>
@@ -17745,7 +17769,7 @@ LABL 0 新宋体,8,N</a:FontList>
17745 17769
 <a:DataType>varchar(1)</a:DataType>
17746 17770
 <a:Length>1</a:Length>
17747 17771
 </o:Column>
17748
-<o:Column Id="o1038">
17772
+<o:Column Id="o1040">
17749 17773
 <a:ObjectID>7FB29743-6F55-4ADD-829C-886CD8235B78</a:ObjectID>
17750 17774
 <a:Name>computer_desk</a:Name>
17751 17775
 <a:Code>computer_desk</a:Code>
@@ -17757,7 +17781,7 @@ LABL 0 新宋体,8,N</a:FontList>
17757 17781
 <a:DataType>varchar(1)</a:DataType>
17758 17782
 <a:Length>1</a:Length>
17759 17783
 </o:Column>
17760
-<o:Column Id="o1039">
17784
+<o:Column Id="o1041">
17761 17785
 <a:ObjectID>BD673A93-F61B-4C96-BEAD-2283ACDFAF64</a:ObjectID>
17762 17786
 <a:Name>water_heater</a:Name>
17763 17787
 <a:Code>water_heater</a:Code>
@@ -17769,7 +17793,7 @@ LABL 0 新宋体,8,N</a:FontList>
17769 17793
 <a:DataType>varchar(1)</a:DataType>
17770 17794
 <a:Length>1</a:Length>
17771 17795
 </o:Column>
17772
-<o:Column Id="o1040">
17796
+<o:Column Id="o1042">
17773 17797
 <a:ObjectID>4F881349-E1A5-4DE0-8010-BC61A8DF88A3</a:ObjectID>
17774 17798
 <a:Name>chair</a:Name>
17775 17799
 <a:Code>chair</a:Code>
@@ -17781,7 +17805,7 @@ LABL 0 新宋体,8,N</a:FontList>
17781 17805
 <a:DataType>varchar(1)</a:DataType>
17782 17806
 <a:Length>1</a:Length>
17783 17807
 </o:Column>
17784
-<o:Column Id="o1041">
17808
+<o:Column Id="o1043">
17785 17809
 <a:ObjectID>95D69A16-BEA6-4D93-AE71-BD1F110A4B26</a:ObjectID>
17786 17810
 <a:Name>washing_machine</a:Name>
17787 17811
 <a:Code>washing_machine</a:Code>
@@ -17793,7 +17817,7 @@ LABL 0 新宋体,8,N</a:FontList>
17793 17817
 <a:DataType>varchar(1)</a:DataType>
17794 17818
 <a:Length>1</a:Length>
17795 17819
 </o:Column>
17796
-<o:Column Id="o1042">
17820
+<o:Column Id="o1044">
17797 17821
 <a:ObjectID>DD7E6C40-AD47-4864-AFFB-FBB0E8D9121B</a:ObjectID>
17798 17822
 <a:Name>air_conditioning</a:Name>
17799 17823
 <a:Code>air_conditioning</a:Code>
@@ -17805,7 +17829,7 @@ LABL 0 新宋体,8,N</a:FontList>
17805 17829
 <a:DataType>varchar(1)</a:DataType>
17806 17830
 <a:Length>1</a:Length>
17807 17831
 </o:Column>
17808
-<o:Column Id="o1043">
17832
+<o:Column Id="o1045">
17809 17833
 <a:ObjectID>8F69DF57-D61E-47AB-8E05-BB0EBB0B5139</a:ObjectID>
17810 17834
 <a:Name>table_lamp</a:Name>
17811 17835
 <a:Code>table_lamp</a:Code>
@@ -17817,7 +17841,7 @@ LABL 0 新宋体,8,N</a:FontList>
17817 17841
 <a:DataType>varchar(1)</a:DataType>
17818 17842
 <a:Length>1</a:Length>
17819 17843
 </o:Column>
17820
-<o:Column Id="o1044">
17844
+<o:Column Id="o1046">
17821 17845
 <a:ObjectID>0A425DF5-5766-4069-BD6E-771C1676BB85</a:ObjectID>
17822 17846
 <a:Name>WiFi</a:Name>
17823 17847
 <a:Code>WiFi</a:Code>
@@ -17829,7 +17853,7 @@ LABL 0 新宋体,8,N</a:FontList>
17829 17853
 <a:DataType>varchar(1)</a:DataType>
17830 17854
 <a:Length>1</a:Length>
17831 17855
 </o:Column>
17832
-<o:Column Id="o1045">
17856
+<o:Column Id="o1047">
17833 17857
 <a:ObjectID>5CA481DC-A4C9-4723-B1E5-43F84387D203</a:ObjectID>
17834 17858
 <a:Name>microwave_oven</a:Name>
17835 17859
 <a:Code>microwave_oven</a:Code>
@@ -17841,7 +17865,7 @@ LABL 0 新宋体,8,N</a:FontList>
17841 17865
 <a:DataType>varchar(1)</a:DataType>
17842 17866
 <a:Length>1</a:Length>
17843 17867
 </o:Column>
17844
-<o:Column Id="o1046">
17868
+<o:Column Id="o1048">
17845 17869
 <a:ObjectID>8100898B-1949-4F10-B73D-47B3D94A8826</a:ObjectID>
17846 17870
 <a:Name>natural_gas</a:Name>
17847 17871
 <a:Code>natural_gas</a:Code>
@@ -17853,7 +17877,7 @@ LABL 0 新宋体,8,N</a:FontList>
17853 17877
 <a:DataType>varchar(1)</a:DataType>
17854 17878
 <a:Length>1</a:Length>
17855 17879
 </o:Column>
17856
-<o:Column Id="o1047">
17880
+<o:Column Id="o1049">
17857 17881
 <a:ObjectID>86966D69-2983-4EEE-B469-B2630F47E55E</a:ObjectID>
17858 17882
 <a:Name>create_date</a:Name>
17859 17883
 <a:Code>create_date</a:Code>
@@ -17864,7 +17888,7 @@ LABL 0 新宋体,8,N</a:FontList>
17864 17888
 <a:Comment>创建时间</a:Comment>
17865 17889
 <a:DataType>datetime</a:DataType>
17866 17890
 </o:Column>
17867
-<o:Column Id="o1048">
17891
+<o:Column Id="o1050">
17868 17892
 <a:ObjectID>0E612C68-BF9C-4454-889C-68B6A3CAF9CB</a:ObjectID>
17869 17893
 <a:Name>create_user</a:Name>
17870 17894
 <a:Code>create_user</a:Code>
@@ -17876,7 +17900,7 @@ LABL 0 新宋体,8,N</a:FontList>
17876 17900
 <a:DataType>int(11)</a:DataType>
17877 17901
 <a:Length>11</a:Length>
17878 17902
 </o:Column>
17879
-<o:Column Id="o1049">
17903
+<o:Column Id="o1051">
17880 17904
 <a:ObjectID>44888D0B-ED44-4152-A948-FE2738CD4730</a:ObjectID>
17881 17905
 <a:Name>update_date</a:Name>
17882 17906
 <a:Code>update_date</a:Code>
@@ -17887,7 +17911,7 @@ LABL 0 新宋体,8,N</a:FontList>
17887 17911
 <a:Comment>更新时间</a:Comment>
17888 17912
 <a:DataType>datetime</a:DataType>
17889 17913
 </o:Column>
17890
-<o:Column Id="o1050">
17914
+<o:Column Id="o1052">
17891 17915
 <a:ObjectID>9ACA9B2C-9A46-43EC-AB23-5DD83CED5EF2</a:ObjectID>
17892 17916
 <a:Name>update_user</a:Name>
17893 17917
 <a:Code>update_user</a:Code>
@@ -17901,7 +17925,7 @@ LABL 0 新宋体,8,N</a:FontList>
17901 17925
 </o:Column>
17902 17926
 </c:Columns>
17903 17927
 <c:Keys>
17904
-<o:Key Id="o1051">
17928
+<o:Key Id="o1053">
17905 17929
 <a:ObjectID>148EAD21-CFA4-42E6-9F44-C31E1C508685</a:ObjectID>
17906 17930
 <a:Name>Key_1</a:Name>
17907 17931
 <a:Code>Key_1</a:Code>
@@ -17915,7 +17939,7 @@ LABL 0 新宋体,8,N</a:FontList>
17915 17939
 </o:Key>
17916 17940
 </c:Keys>
17917 17941
 <c:PrimaryKey>
17918
-<o:Key Ref="o1051"/>
17942
+<o:Key Ref="o1053"/>
17919 17943
 </c:PrimaryKey>
17920 17944
 </o:Table>
17921 17945
 <o:Table Id="o253">
@@ -17929,7 +17953,7 @@ LABL 0 新宋体,8,N</a:FontList>
17929 17953
 <a:Comment>商铺图片</a:Comment>
17930 17954
 <a:TotalSavingCurrency/>
17931 17955
 <c:Columns>
17932
-<o:Column Id="o1052">
17956
+<o:Column Id="o1054">
17933 17957
 <a:ObjectID>92BB3B4E-28C8-452C-B070-4A0755DE3BBC</a:ObjectID>
17934 17958
 <a:Name>id</a:Name>
17935 17959
 <a:Code>id</a:Code>
@@ -17942,7 +17966,7 @@ LABL 0 新宋体,8,N</a:FontList>
17942 17966
 <a:Identity>1</a:Identity>
17943 17967
 <a:Column.Mandatory>1</a:Column.Mandatory>
17944 17968
 </o:Column>
17945
-<o:Column Id="o1053">
17969
+<o:Column Id="o1055">
17946 17970
 <a:ObjectID>21087CE1-7882-4A27-ACD7-E1579649B207</a:ObjectID>
17947 17971
 <a:Name>community_id</a:Name>
17948 17972
 <a:Code>community_id</a:Code>
@@ -17954,7 +17978,7 @@ LABL 0 新宋体,8,N</a:FontList>
17954 17978
 <a:DataType>int(11)</a:DataType>
17955 17979
 <a:Length>11</a:Length>
17956 17980
 </o:Column>
17957
-<o:Column Id="o1054">
17981
+<o:Column Id="o1056">
17958 17982
 <a:ObjectID>6B2B261C-902C-41CE-848E-FF27C66FE85B</a:ObjectID>
17959 17983
 <a:Name>shop_id</a:Name>
17960 17984
 <a:Code>shop_id</a:Code>
@@ -17966,7 +17990,7 @@ LABL 0 新宋体,8,N</a:FontList>
17966 17990
 <a:DataType>int(11)</a:DataType>
17967 17991
 <a:Length>11</a:Length>
17968 17992
 </o:Column>
17969
-<o:Column Id="o1055">
17993
+<o:Column Id="o1057">
17970 17994
 <a:ObjectID>1903CA52-9255-47A8-9B59-B8CA06D703E0</a:ObjectID>
17971 17995
 <a:Name>img_url</a:Name>
17972 17996
 <a:Code>img_url</a:Code>
@@ -17978,7 +18002,7 @@ LABL 0 新宋体,8,N</a:FontList>
17978 18002
 <a:DataType>varchar(255)</a:DataType>
17979 18003
 <a:Length>255</a:Length>
17980 18004
 </o:Column>
17981
-<o:Column Id="o1056">
18005
+<o:Column Id="o1058">
17982 18006
 <a:ObjectID>D12DC8AD-CF58-4DE5-A9DC-ABB63D349D13</a:ObjectID>
17983 18007
 <a:Name>img_type</a:Name>
17984 18008
 <a:Code>img_type</a:Code>
@@ -17990,7 +18014,7 @@ LABL 0 新宋体,8,N</a:FontList>
17990 18014
 <a:DataType>varchar(2)</a:DataType>
17991 18015
 <a:Length>2</a:Length>
17992 18016
 </o:Column>
17993
-<o:Column Id="o1057">
18017
+<o:Column Id="o1059">
17994 18018
 <a:ObjectID>5BC7B1D6-E34E-4473-9DF1-CA6240B1C23F</a:ObjectID>
17995 18019
 <a:Name>create_date</a:Name>
17996 18020
 <a:Code>create_date</a:Code>
@@ -18003,7 +18027,7 @@ LABL 0 新宋体,8,N</a:FontList>
18003 18027
 </o:Column>
18004 18028
 </c:Columns>
18005 18029
 <c:Keys>
18006
-<o:Key Id="o1058">
18030
+<o:Key Id="o1060">
18007 18031
 <a:ObjectID>6EEDA542-1E85-47A3-BC57-7C65558D93D0</a:ObjectID>
18008 18032
 <a:Name>Key_1</a:Name>
18009 18033
 <a:Code>Key_1</a:Code>
@@ -18012,12 +18036,12 @@ LABL 0 新宋体,8,N</a:FontList>
18012 18036
 <a:ModificationDate>1557304098</a:ModificationDate>
18013 18037
 <a:Modifier>szc</a:Modifier>
18014 18038
 <c:Key.Columns>
18015
-<o:Column Ref="o1052"/>
18039
+<o:Column Ref="o1054"/>
18016 18040
 </c:Key.Columns>
18017 18041
 </o:Key>
18018 18042
 </c:Keys>
18019 18043
 <c:PrimaryKey>
18020
-<o:Key Ref="o1058"/>
18044
+<o:Key Ref="o1060"/>
18021 18045
 </c:PrimaryKey>
18022 18046
 </o:Table>
18023 18047
 <o:Table Id="o255">
@@ -18031,7 +18055,7 @@ LABL 0 新宋体,8,N</a:FontList>
18031 18055
 <a:Comment>出租房间图片</a:Comment>
18032 18056
 <a:TotalSavingCurrency/>
18033 18057
 <c:Columns>
18034
-<o:Column Id="o1059">
18058
+<o:Column Id="o1061">
18035 18059
 <a:ObjectID>98ED7313-E915-44A1-9D4F-80F5BC057C88</a:ObjectID>
18036 18060
 <a:Name>id</a:Name>
18037 18061
 <a:Code>id</a:Code>
@@ -18044,7 +18068,7 @@ LABL 0 新宋体,8,N</a:FontList>
18044 18068
 <a:Identity>1</a:Identity>
18045 18069
 <a:Column.Mandatory>1</a:Column.Mandatory>
18046 18070
 </o:Column>
18047
-<o:Column Id="o1060">
18071
+<o:Column Id="o1062">
18048 18072
 <a:ObjectID>C9DD2C07-B914-4F63-AFCD-05FA9EEC9184</a:ObjectID>
18049 18073
 <a:Name>community_id</a:Name>
18050 18074
 <a:Code>community_id</a:Code>
@@ -18056,7 +18080,7 @@ LABL 0 新宋体,8,N</a:FontList>
18056 18080
 <a:DataType>int(11)</a:DataType>
18057 18081
 <a:Length>11</a:Length>
18058 18082
 </o:Column>
18059
-<o:Column Id="o1061">
18083
+<o:Column Id="o1063">
18060 18084
 <a:ObjectID>B557681C-3BC2-492A-9313-38454B3D480A</a:ObjectID>
18061 18085
 <a:Name>rental_house_id</a:Name>
18062 18086
 <a:Code>rental_house_id</a:Code>
@@ -18068,7 +18092,7 @@ LABL 0 新宋体,8,N</a:FontList>
18068 18092
 <a:DataType>int(11)</a:DataType>
18069 18093
 <a:Length>11</a:Length>
18070 18094
 </o:Column>
18071
-<o:Column Id="o1062">
18095
+<o:Column Id="o1064">
18072 18096
 <a:ObjectID>7EFF853D-17E5-459D-8942-60286B8BF991</a:ObjectID>
18073 18097
 <a:Name>img_url</a:Name>
18074 18098
 <a:Code>img_url</a:Code>
@@ -18080,7 +18104,7 @@ LABL 0 新宋体,8,N</a:FontList>
18080 18104
 <a:DataType>varchar(255)</a:DataType>
18081 18105
 <a:Length>255</a:Length>
18082 18106
 </o:Column>
18083
-<o:Column Id="o1063">
18107
+<o:Column Id="o1065">
18084 18108
 <a:ObjectID>986D1A7D-1053-4346-AD5C-D64AEE62DD3F</a:ObjectID>
18085 18109
 <a:Name>img_type</a:Name>
18086 18110
 <a:Code>img_type</a:Code>
@@ -18092,7 +18116,7 @@ LABL 0 新宋体,8,N</a:FontList>
18092 18116
 <a:DataType>varchar(2)</a:DataType>
18093 18117
 <a:Length>2</a:Length>
18094 18118
 </o:Column>
18095
-<o:Column Id="o1064">
18119
+<o:Column Id="o1066">
18096 18120
 <a:ObjectID>A094BD2C-60B5-4AC9-A98E-176D07F29C66</a:ObjectID>
18097 18121
 <a:Name>create_date</a:Name>
18098 18122
 <a:Code>create_date</a:Code>
@@ -18105,7 +18129,7 @@ LABL 0 新宋体,8,N</a:FontList>
18105 18129
 </o:Column>
18106 18130
 </c:Columns>
18107 18131
 <c:Keys>
18108
-<o:Key Id="o1065">
18132
+<o:Key Id="o1067">
18109 18133
 <a:ObjectID>F8E42723-01EE-48CA-B9B4-9B70D9EE52C2</a:ObjectID>
18110 18134
 <a:Name>Key_1</a:Name>
18111 18135
 <a:Code>Key_1</a:Code>
@@ -18114,12 +18138,12 @@ LABL 0 新宋体,8,N</a:FontList>
18114 18138
 <a:ModificationDate>1557307564</a:ModificationDate>
18115 18139
 <a:Modifier>szc</a:Modifier>
18116 18140
 <c:Key.Columns>
18117
-<o:Column Ref="o1059"/>
18141
+<o:Column Ref="o1061"/>
18118 18142
 </c:Key.Columns>
18119 18143
 </o:Key>
18120 18144
 </c:Keys>
18121 18145
 <c:PrimaryKey>
18122
-<o:Key Ref="o1065"/>
18146
+<o:Key Ref="o1067"/>
18123 18147
 </c:PrimaryKey>
18124 18148
 </o:Table>
18125 18149
 <o:Table Id="o256">
@@ -18133,7 +18157,7 @@ LABL 0 新宋体,8,N</a:FontList>
18133 18157
 <a:Comment>用户车牌号表</a:Comment>
18134 18158
 <a:TotalSavingCurrency/>
18135 18159
 <c:Columns>
18136
-<o:Column Id="o1066">
18160
+<o:Column Id="o1068">
18137 18161
 <a:ObjectID>2ADC4DD9-6B52-46D7-80A7-0B269251996F</a:ObjectID>
18138 18162
 <a:Name>id</a:Name>
18139 18163
 <a:Code>id</a:Code>
@@ -18146,7 +18170,7 @@ LABL 0 新宋体,8,N</a:FontList>
18146 18170
 <a:Identity>1</a:Identity>
18147 18171
 <a:Column.Mandatory>1</a:Column.Mandatory>
18148 18172
 </o:Column>
18149
-<o:Column Id="o1067">
18173
+<o:Column Id="o1069">
18150 18174
 <a:ObjectID>B2476244-EFC3-4FF8-A728-50D1941D12BB</a:ObjectID>
18151 18175
 <a:Name>community_id</a:Name>
18152 18176
 <a:Code>community_id</a:Code>
@@ -18158,7 +18182,7 @@ LABL 0 新宋体,8,N</a:FontList>
18158 18182
 <a:DataType>int(11)</a:DataType>
18159 18183
 <a:Length>11</a:Length>
18160 18184
 </o:Column>
18161
-<o:Column Id="o1068">
18185
+<o:Column Id="o1070">
18162 18186
 <a:ObjectID>D4FE9889-F81C-40A2-9777-99934795E873</a:ObjectID>
18163 18187
 <a:Name>ta_user_id</a:Name>
18164 18188
 <a:Code>ta_user_id</a:Code>
@@ -18170,7 +18194,7 @@ LABL 0 新宋体,8,N</a:FontList>
18170 18194
 <a:DataType>int(11)</a:DataType>
18171 18195
 <a:Length>11</a:Length>
18172 18196
 </o:Column>
18173
-<o:Column Id="o1069">
18197
+<o:Column Id="o1071">
18174 18198
 <a:ObjectID>9AF156AE-3592-4A2F-ADD4-AF7D94A024F2</a:ObjectID>
18175 18199
 <a:Name>license_plate</a:Name>
18176 18200
 <a:Code>license_plate</a:Code>
@@ -18182,7 +18206,7 @@ LABL 0 新宋体,8,N</a:FontList>
18182 18206
 <a:DataType>varchar(255)</a:DataType>
18183 18207
 <a:Length>255</a:Length>
18184 18208
 </o:Column>
18185
-<o:Column Id="o1070">
18209
+<o:Column Id="o1072">
18186 18210
 <a:ObjectID>4AF2667F-B53D-4CAB-9DF9-7388FD52766D</a:ObjectID>
18187 18211
 <a:Name>order_number</a:Name>
18188 18212
 <a:Code>order_number</a:Code>
@@ -18194,7 +18218,7 @@ LABL 0 新宋体,8,N</a:FontList>
18194 18218
 <a:DataType>varchar(255)</a:DataType>
18195 18219
 <a:Length>255</a:Length>
18196 18220
 </o:Column>
18197
-<o:Column Id="o1071">
18221
+<o:Column Id="o1073">
18198 18222
 <a:ObjectID>33679CF5-35FC-4B38-9BFA-D008AFEB89C3</a:ObjectID>
18199 18223
 <a:Name>expire_date</a:Name>
18200 18224
 <a:Code>expire_date</a:Code>
@@ -18205,7 +18229,7 @@ LABL 0 新宋体,8,N</a:FontList>
18205 18229
 <a:Comment>到期时间</a:Comment>
18206 18230
 <a:DataType>datetime</a:DataType>
18207 18231
 </o:Column>
18208
-<o:Column Id="o1072">
18232
+<o:Column Id="o1074">
18209 18233
 <a:ObjectID>57CE5A0C-2BD4-4B1F-AED4-D8FFB7C53768</a:ObjectID>
18210 18234
 <a:Name>unit_price</a:Name>
18211 18235
 <a:Code>unit_price</a:Code>
@@ -18217,7 +18241,7 @@ LABL 0 新宋体,8,N</a:FontList>
18217 18241
 <a:DataType>varchar(255)</a:DataType>
18218 18242
 <a:Length>255</a:Length>
18219 18243
 </o:Column>
18220
-<o:Column Id="o1073">
18244
+<o:Column Id="o1075">
18221 18245
 <a:ObjectID>593C14C2-DC52-447D-9901-15585EB3D25E</a:ObjectID>
18222 18246
 <a:Name>parking_lot</a:Name>
18223 18247
 <a:Code>parking_lot</a:Code>
@@ -18229,7 +18253,7 @@ LABL 0 新宋体,8,N</a:FontList>
18229 18253
 <a:DataType>varchar(255)</a:DataType>
18230 18254
 <a:Length>255</a:Length>
18231 18255
 </o:Column>
18232
-<o:Column Id="o1074">
18256
+<o:Column Id="o1076">
18233 18257
 <a:ObjectID>B11B597D-C188-4F86-B983-1247AAC74386</a:ObjectID>
18234 18258
 <a:Name>renew_time</a:Name>
18235 18259
 <a:Code>renew_time</a:Code>
@@ -18241,7 +18265,7 @@ LABL 0 新宋体,8,N</a:FontList>
18241 18265
 <a:DataType>int(11)</a:DataType>
18242 18266
 <a:Length>11</a:Length>
18243 18267
 </o:Column>
18244
-<o:Column Id="o1075">
18268
+<o:Column Id="o1077">
18245 18269
 <a:ObjectID>B9A4F75B-5600-4E03-97CA-F52659AF4566</a:ObjectID>
18246 18270
 <a:Name>license_type</a:Name>
18247 18271
 <a:Code>license_type</a:Code>
@@ -18253,7 +18277,7 @@ LABL 0 新宋体,8,N</a:FontList>
18253 18277
 <a:DataType>int(11)</a:DataType>
18254 18278
 <a:Length>11</a:Length>
18255 18279
 </o:Column>
18256
-<o:Column Id="o1076">
18280
+<o:Column Id="o1078">
18257 18281
 <a:ObjectID>00FA4FFC-5A5F-4873-881A-EA8B4C2639BD</a:ObjectID>
18258 18282
 <a:Name>create_date</a:Name>
18259 18283
 <a:Code>create_date</a:Code>
@@ -18264,7 +18288,7 @@ LABL 0 新宋体,8,N</a:FontList>
18264 18288
 <a:Comment>创建时间</a:Comment>
18265 18289
 <a:DataType>datetime</a:DataType>
18266 18290
 </o:Column>
18267
-<o:Column Id="o1077">
18291
+<o:Column Id="o1079">
18268 18292
 <a:ObjectID>C3559530-E9AA-4BB9-A794-582963C4A4BF</a:ObjectID>
18269 18293
 <a:Name>create_user</a:Name>
18270 18294
 <a:Code>create_user</a:Code>
@@ -18276,7 +18300,7 @@ LABL 0 新宋体,8,N</a:FontList>
18276 18300
 <a:DataType>int(11)</a:DataType>
18277 18301
 <a:Length>11</a:Length>
18278 18302
 </o:Column>
18279
-<o:Column Id="o1078">
18303
+<o:Column Id="o1080">
18280 18304
 <a:ObjectID>AD4AC6D5-678E-49FC-93B0-BB84F617CD00</a:ObjectID>
18281 18305
 <a:Name>update_date</a:Name>
18282 18306
 <a:Code>update_date</a:Code>
@@ -18287,7 +18311,7 @@ LABL 0 新宋体,8,N</a:FontList>
18287 18311
 <a:Comment>更新时间</a:Comment>
18288 18312
 <a:DataType>datetime</a:DataType>
18289 18313
 </o:Column>
18290
-<o:Column Id="o1079">
18314
+<o:Column Id="o1081">
18291 18315
 <a:ObjectID>85836F40-5F4D-4AB8-9DC7-2345ED8AE5DA</a:ObjectID>
18292 18316
 <a:Name>update_user</a:Name>
18293 18317
 <a:Code>update_user</a:Code>
@@ -18301,7 +18325,7 @@ LABL 0 新宋体,8,N</a:FontList>
18301 18325
 </o:Column>
18302 18326
 </c:Columns>
18303 18327
 <c:Keys>
18304
-<o:Key Id="o1080">
18328
+<o:Key Id="o1082">
18305 18329
 <a:ObjectID>63206026-120F-43C3-AF49-7BF7198EAA64</a:ObjectID>
18306 18330
 <a:Name>Key_1</a:Name>
18307 18331
 <a:Code>Key_1</a:Code>
@@ -18310,12 +18334,12 @@ LABL 0 新宋体,8,N</a:FontList>
18310 18334
 <a:ModificationDate>1557367718</a:ModificationDate>
18311 18335
 <a:Modifier>szc</a:Modifier>
18312 18336
 <c:Key.Columns>
18313
-<o:Column Ref="o1066"/>
18337
+<o:Column Ref="o1068"/>
18314 18338
 </c:Key.Columns>
18315 18339
 </o:Key>
18316 18340
 </c:Keys>
18317 18341
 <c:PrimaryKey>
18318
-<o:Key Ref="o1080"/>
18342
+<o:Key Ref="o1082"/>
18319 18343
 </c:PrimaryKey>
18320 18344
 </o:Table>
18321 18345
 <o:Table Id="o257">
@@ -18329,7 +18353,7 @@ LABL 0 新宋体,8,N</a:FontList>
18329 18353
 <a:Comment>月租车缴费订单表</a:Comment>
18330 18354
 <a:TotalSavingCurrency/>
18331 18355
 <c:Columns>
18332
-<o:Column Id="o1081">
18356
+<o:Column Id="o1083">
18333 18357
 <a:ObjectID>08F36182-AB22-433F-8F51-E805E2ACC919</a:ObjectID>
18334 18358
 <a:Name>id</a:Name>
18335 18359
 <a:Code>id</a:Code>
@@ -18342,7 +18366,7 @@ LABL 0 新宋体,8,N</a:FontList>
18342 18366
 <a:Identity>1</a:Identity>
18343 18367
 <a:Column.Mandatory>1</a:Column.Mandatory>
18344 18368
 </o:Column>
18345
-<o:Column Id="o1082">
18369
+<o:Column Id="o1084">
18346 18370
 <a:ObjectID>45D65D52-E45F-466F-B13D-4BAB7431D881</a:ObjectID>
18347 18371
 <a:Name>community_id</a:Name>
18348 18372
 <a:Code>community_id</a:Code>
@@ -18354,7 +18378,7 @@ LABL 0 新宋体,8,N</a:FontList>
18354 18378
 <a:DataType>int(11)</a:DataType>
18355 18379
 <a:Length>11</a:Length>
18356 18380
 </o:Column>
18357
-<o:Column Id="o1083">
18381
+<o:Column Id="o1085">
18358 18382
 <a:ObjectID>80318F85-BB20-4024-9998-D987A98B2C8F</a:ObjectID>
18359 18383
 <a:Name>user_license_id</a:Name>
18360 18384
 <a:Code>ta_user_id</a:Code>
@@ -18366,7 +18390,7 @@ LABL 0 新宋体,8,N</a:FontList>
18366 18390
 <a:DataType>int(11)</a:DataType>
18367 18391
 <a:Length>11</a:Length>
18368 18392
 </o:Column>
18369
-<o:Column Id="o1084">
18393
+<o:Column Id="o1086">
18370 18394
 <a:ObjectID>63010136-6F76-4F2E-970D-D599445EE9B0</a:ObjectID>
18371 18395
 <a:Name>order_number</a:Name>
18372 18396
 <a:Code>order_number</a:Code>
@@ -18378,7 +18402,7 @@ LABL 0 新宋体,8,N</a:FontList>
18378 18402
 <a:DataType>varchar(255)</a:DataType>
18379 18403
 <a:Length>255</a:Length>
18380 18404
 </o:Column>
18381
-<o:Column Id="o1085">
18405
+<o:Column Id="o1087">
18382 18406
 <a:ObjectID>D575E6DD-CE84-4ED5-8208-C3C936932B7B</a:ObjectID>
18383 18407
 <a:Name>order_status</a:Name>
18384 18408
 <a:Code>order_status</a:Code>
@@ -18390,7 +18414,7 @@ LABL 0 新宋体,8,N</a:FontList>
18390 18414
 <a:DataType>varchar(255)</a:DataType>
18391 18415
 <a:Length>255</a:Length>
18392 18416
 </o:Column>
18393
-<o:Column Id="o1086">
18417
+<o:Column Id="o1088">
18394 18418
 <a:ObjectID>2D0B1C89-FCE7-43EB-9E46-3814A128EAA1</a:ObjectID>
18395 18419
 <a:Name>create_user</a:Name>
18396 18420
 <a:Code>create_user</a:Code>
@@ -18402,7 +18426,7 @@ LABL 0 新宋体,8,N</a:FontList>
18402 18426
 <a:DataType>int(11)</a:DataType>
18403 18427
 <a:Length>11</a:Length>
18404 18428
 </o:Column>
18405
-<o:Column Id="o1087">
18429
+<o:Column Id="o1089">
18406 18430
 <a:ObjectID>A1476C8B-868D-4B30-ACD0-08C86C003A27</a:ObjectID>
18407 18431
 <a:Name>create_date</a:Name>
18408 18432
 <a:Code>create_date</a:Code>
@@ -18413,7 +18437,7 @@ LABL 0 新宋体,8,N</a:FontList>
18413 18437
 <a:Comment>创建时间</a:Comment>
18414 18438
 <a:DataType>datetime</a:DataType>
18415 18439
 </o:Column>
18416
-<o:Column Id="o1088">
18440
+<o:Column Id="o1090">
18417 18441
 <a:ObjectID>BE3B494A-E8E4-421E-A871-FD700644271F</a:ObjectID>
18418 18442
 <a:Name>update_user</a:Name>
18419 18443
 <a:Code>update_user</a:Code>
@@ -18425,7 +18449,7 @@ LABL 0 新宋体,8,N</a:FontList>
18425 18449
 <a:DataType>int(11)</a:DataType>
18426 18450
 <a:Length>11</a:Length>
18427 18451
 </o:Column>
18428
-<o:Column Id="o1089">
18452
+<o:Column Id="o1091">
18429 18453
 <a:ObjectID>A34F3B8C-7F9A-41ED-BD96-44A95D08C547</a:ObjectID>
18430 18454
 <a:Name>update_date</a:Name>
18431 18455
 <a:Code>update_date</a:Code>
@@ -18436,7 +18460,7 @@ LABL 0 新宋体,8,N</a:FontList>
18436 18460
 <a:Comment>更新时间</a:Comment>
18437 18461
 <a:DataType>datetime</a:DataType>
18438 18462
 </o:Column>
18439
-<o:Column Id="o1090">
18463
+<o:Column Id="o1092">
18440 18464
 <a:ObjectID>8EA7049C-94A1-453E-B283-8E79F440BCEB</a:ObjectID>
18441 18465
 <a:Name>extension_month</a:Name>
18442 18466
 <a:Code>extension_month</a:Code>
@@ -18448,7 +18472,7 @@ LABL 0 新宋体,8,N</a:FontList>
18448 18472
 <a:DataType>int(11)</a:DataType>
18449 18473
 <a:Length>11</a:Length>
18450 18474
 </o:Column>
18451
-<o:Column Id="o1091">
18475
+<o:Column Id="o1093">
18452 18476
 <a:ObjectID>749D6A1D-5072-45E8-9826-22579FD72F1F</a:ObjectID>
18453 18477
 <a:Name>extension_price</a:Name>
18454 18478
 <a:Code>extension_price</a:Code>
@@ -18460,7 +18484,7 @@ LABL 0 新宋体,8,N</a:FontList>
18460 18484
 <a:DataType>varchar(255)</a:DataType>
18461 18485
 <a:Length>255</a:Length>
18462 18486
 </o:Column>
18463
-<o:Column Id="o1092">
18487
+<o:Column Id="o1094">
18464 18488
 <a:ObjectID>E0395793-A050-4735-96E3-F17749B36CEC</a:ObjectID>
18465 18489
 <a:Name>payment_tel</a:Name>
18466 18490
 <a:Code>payment_tel</a:Code>
@@ -18472,7 +18496,7 @@ LABL 0 新宋体,8,N</a:FontList>
18472 18496
 <a:DataType>varchar(255)</a:DataType>
18473 18497
 <a:Length>255</a:Length>
18474 18498
 </o:Column>
18475
-<o:Column Id="o1093">
18499
+<o:Column Id="o1095">
18476 18500
 <a:ObjectID>3D0DBFAF-ACCA-4178-AEC7-478CABDABE68</a:ObjectID>
18477 18501
 <a:Name>payment_name</a:Name>
18478 18502
 <a:Code>payment_name</a:Code>
@@ -18484,7 +18508,7 @@ LABL 0 新宋体,8,N</a:FontList>
18484 18508
 <a:DataType>varchar(255)</a:DataType>
18485 18509
 <a:Length>255</a:Length>
18486 18510
 </o:Column>
18487
-<o:Column Id="o1094">
18511
+<o:Column Id="o1096">
18488 18512
 <a:ObjectID>2C17C691-0E31-4CD5-A8A7-5D326BB722F7</a:ObjectID>
18489 18513
 <a:Name>payment_type</a:Name>
18490 18514
 <a:Code>payment_type</a:Code>
@@ -18496,7 +18520,7 @@ LABL 0 新宋体,8,N</a:FontList>
18496 18520
 <a:DataType>varchar(2)</a:DataType>
18497 18521
 <a:Length>2</a:Length>
18498 18522
 </o:Column>
18499
-<o:Column Id="o1095">
18523
+<o:Column Id="o1097">
18500 18524
 <a:ObjectID>431D00B1-22B7-4183-9E3C-8DC9222B68A9</a:ObjectID>
18501 18525
 <a:Name>expire_date</a:Name>
18502 18526
 <a:Code>expire_date</a:Code>
@@ -18507,7 +18531,7 @@ LABL 0 新宋体,8,N</a:FontList>
18507 18531
 <a:Comment>到期时间</a:Comment>
18508 18532
 <a:DataType>datetime</a:DataType>
18509 18533
 </o:Column>
18510
-<o:Column Id="o1096">
18534
+<o:Column Id="o1098">
18511 18535
 <a:ObjectID>9D078A47-1407-4881-9BAC-287FC15BBEB6</a:ObjectID>
18512 18536
 <a:Name>unit_price</a:Name>
18513 18537
 <a:Code>unit_price</a:Code>
@@ -18519,7 +18543,7 @@ LABL 0 新宋体,8,N</a:FontList>
18519 18543
 <a:DataType>varchar(255)</a:DataType>
18520 18544
 <a:Length>255</a:Length>
18521 18545
 </o:Column>
18522
-<o:Column Id="o1097">
18546
+<o:Column Id="o1099">
18523 18547
 <a:ObjectID>F78B78EC-E859-47C1-AC9D-A3E1B0CBA926</a:ObjectID>
18524 18548
 <a:Name>parking_lot</a:Name>
18525 18549
 <a:Code>parking_lot</a:Code>
@@ -18531,7 +18555,7 @@ LABL 0 新宋体,8,N</a:FontList>
18531 18555
 <a:DataType>varchar(255)</a:DataType>
18532 18556
 <a:Length>255</a:Length>
18533 18557
 </o:Column>
18534
-<o:Column Id="o1098">
18558
+<o:Column Id="o1100">
18535 18559
 <a:ObjectID>9273BE9C-B9DC-4C92-AA4D-018829225523</a:ObjectID>
18536 18560
 <a:Name>license_plate</a:Name>
18537 18561
 <a:Code>license_plate</a:Code>
@@ -18545,7 +18569,7 @@ LABL 0 新宋体,8,N</a:FontList>
18545 18569
 </o:Column>
18546 18570
 </c:Columns>
18547 18571
 <c:Keys>
18548
-<o:Key Id="o1099">
18572
+<o:Key Id="o1101">
18549 18573
 <a:ObjectID>F57D4E18-1528-44BD-BEBB-4680F3D77BDA</a:ObjectID>
18550 18574
 <a:Name>Key_1</a:Name>
18551 18575
 <a:Code>Key_1</a:Code>
@@ -18554,12 +18578,12 @@ LABL 0 新宋体,8,N</a:FontList>
18554 18578
 <a:ModificationDate>1557372945</a:ModificationDate>
18555 18579
 <a:Modifier>szc</a:Modifier>
18556 18580
 <c:Key.Columns>
18557
-<o:Column Ref="o1081"/>
18581
+<o:Column Ref="o1083"/>
18558 18582
 </c:Key.Columns>
18559 18583
 </o:Key>
18560 18584
 </c:Keys>
18561 18585
 <c:PrimaryKey>
18562
-<o:Key Ref="o1099"/>
18586
+<o:Key Ref="o1101"/>
18563 18587
 </c:PrimaryKey>
18564 18588
 </o:Table>
18565 18589
 <o:Table Id="o259">
@@ -18573,7 +18597,7 @@ LABL 0 新宋体,8,N</a:FontList>
18573 18597
 <a:Comment>app端版本号</a:Comment>
18574 18598
 <a:TotalSavingCurrency/>
18575 18599
 <c:Columns>
18576
-<o:Column Id="o1100">
18600
+<o:Column Id="o1102">
18577 18601
 <a:ObjectID>A9874095-1A7A-41B3-BDAA-89FF219B226F</a:ObjectID>
18578 18602
 <a:Name>id</a:Name>
18579 18603
 <a:Code>id</a:Code>
@@ -18585,7 +18609,7 @@ LABL 0 新宋体,8,N</a:FontList>
18585 18609
 <a:Length>11</a:Length>
18586 18610
 <a:Column.Mandatory>1</a:Column.Mandatory>
18587 18611
 </o:Column>
18588
-<o:Column Id="o1101">
18612
+<o:Column Id="o1103">
18589 18613
 <a:ObjectID>946CB4DD-6B85-465A-895E-5E8A8F2BA7C3</a:ObjectID>
18590 18614
 <a:Name>client_version</a:Name>
18591 18615
 <a:Code>client_version</a:Code>
@@ -18597,7 +18621,7 @@ LABL 0 新宋体,8,N</a:FontList>
18597 18621
 <a:DataType>varchar(255)</a:DataType>
18598 18622
 <a:Length>255</a:Length>
18599 18623
 </o:Column>
18600
-<o:Column Id="o1102">
18624
+<o:Column Id="o1104">
18601 18625
 <a:ObjectID>BDFD3026-FC17-4D03-A503-7AF3A37592A5</a:ObjectID>
18602 18626
 <a:Name>service_version</a:Name>
18603 18627
 <a:Code>service_version</a:Code>
@@ -18609,7 +18633,7 @@ LABL 0 新宋体,8,N</a:FontList>
18609 18633
 <a:DataType>varchar(255)</a:DataType>
18610 18634
 <a:Length>255</a:Length>
18611 18635
 </o:Column>
18612
-<o:Column Id="o1103">
18636
+<o:Column Id="o1105">
18613 18637
 <a:ObjectID>3D77C63D-552E-4815-8BBB-148013A10319</a:ObjectID>
18614 18638
 <a:Name>type</a:Name>
18615 18639
 <a:Code>type</a:Code>
@@ -18621,7 +18645,7 @@ LABL 0 新宋体,8,N</a:FontList>
18621 18645
 <a:DataType>varchar(255)</a:DataType>
18622 18646
 <a:Length>255</a:Length>
18623 18647
 </o:Column>
18624
-<o:Column Id="o1104">
18648
+<o:Column Id="o1106">
18625 18649
 <a:ObjectID>1414BD13-AA8D-4144-BA19-810AED96EE55</a:ObjectID>
18626 18650
 <a:Name>update_address</a:Name>
18627 18651
 <a:Code>update_address</a:Code>
@@ -18635,7 +18659,7 @@ LABL 0 新宋体,8,N</a:FontList>
18635 18659
 </o:Column>
18636 18660
 </c:Columns>
18637 18661
 <c:Keys>
18638
-<o:Key Id="o1105">
18662
+<o:Key Id="o1107">
18639 18663
 <a:ObjectID>81BA3F75-E9E6-4FF0-BC41-4D8BAF735EDC</a:ObjectID>
18640 18664
 <a:Name>Key_1</a:Name>
18641 18665
 <a:Code>Key_1</a:Code>
@@ -18644,17 +18668,17 @@ LABL 0 新宋体,8,N</a:FontList>
18644 18668
 <a:ModificationDate>1557800616</a:ModificationDate>
18645 18669
 <a:Modifier>szc</a:Modifier>
18646 18670
 <c:Key.Columns>
18647
-<o:Column Ref="o1100"/>
18671
+<o:Column Ref="o1102"/>
18648 18672
 </c:Key.Columns>
18649 18673
 </o:Key>
18650 18674
 </c:Keys>
18651 18675
 <c:PrimaryKey>
18652
-<o:Key Ref="o1105"/>
18676
+<o:Key Ref="o1107"/>
18653 18677
 </c:PrimaryKey>
18654 18678
 </o:Table>
18655 18679
 </c:Tables>
18656 18680
 <c:DefaultGroups>
18657
-<o:Group Id="o1106">
18681
+<o:Group Id="o1108">
18658 18682
 <a:ObjectID>9FAF56B5-A351-488F-9A3B-D4A944CD4081</a:ObjectID>
18659 18683
 <a:Name>PUBLIC</a:Name>
18660 18684
 <a:Code>PUBLIC</a:Code>
@@ -19317,7 +19341,7 @@ LABL 0 新宋体,8,N</a:FontList>
19317 19341
 </o:ExtendedDependency>
19318 19342
 </c:ChildTraceabilityLinks>
19319 19343
 <c:TargetModels>
19320
-<o:TargetModel Id="o1107">
19344
+<o:TargetModel Id="o1109">
19321 19345
 <a:ObjectID>B86EB932-C352-4174-86E4-2D2B1DDE4A45</a:ObjectID>
19322 19346
 <a:Name>MySQL 5.0</a:Name>
19323 19347
 <a:Code>MYSQL50</a:Code>