dingxin 6 anos atrás
pai
commit
44eda7ea3e

+ 2
- 9
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpRentalHouseServicelImpl.java Ver arquivo

@@ -15,10 +15,7 @@ import com.google.common.collect.Maps;
15 15
 import org.springframework.beans.factory.annotation.Autowired;
16 16
 import org.springframework.stereotype.Service;
17 17
 
18
-import java.util.ArrayList;
19
-import java.util.HashMap;
20
-import java.util.List;
21
-import java.util.Map;
18
+import java.util.*;
22 19
 
23 20
 /**
24 21
  * version V1.0
@@ -43,13 +40,9 @@ public class TpRentalHouseServicelImpl implements TpRentalHouseServicel {
43 40
         Page<TpRentalHouse> pageTpRentalHouseList = PageHelper.startPage(pageNum, pageSize);
44 41
         List<TpRentalHouse> tpRentalHouseList= tpRentalHouseMapper.getRentalHouse(houseName,rentalType,houseType,rentalPrice,priceFluctuate);
45 42
             // 把字符串转数组
46
-        List<String> houseLabel= new ArrayList<>();
47 43
         for (TpRentalHouse tpRentalHouse:tpRentalHouseList){
48 44
             String [] result = tpRentalHouse.getHouseLabel().split(",");
49
-            for(int a = 0;a<result.length;a++){
50
-                houseLabel.add(result[a]);
51
-                tpRentalHouse.setHouseLabelArr(houseLabel);
52
-            }
45
+            tpRentalHouse.setHouseLabelArr(Arrays.asList(result));
53 46
             // 根据 tpRentalHouse.getId()和img_type为2查询列表图
54 47
             List<TpRentalHouseImg> tpRentalHouseImgList= tpRentalHouseImgMapper.selectRentalHouseImg(tpRentalHouse.getId(),1);
55 48
              if (null != tpRentalHouseImgList){

+ 32
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpShopServicelmpl.java Ver arquivo

@@ -94,10 +94,42 @@ public class TpShopServicelmpl implements TpShopServicel {
94 94
             // 查询当前商铺类型
95 95
              tpShopType= tpShopTypeMapper.selectCommunityIdShop(userElement.getCommunityId());
96 96
         }
97
+        //购物
98
+        List<String> tpShopTypeImgShop= new ArrayList<>();
99
+        //购物车3x
100
+        tpShopTypeImgShop.add("http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1557816503894.png?Expires=1559643891&OSSAccessKeyId=LTAIkc75dpkJw8Lb");
101
+        //购物车2x
102
+        tpShopTypeImgShop.add("http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1557816639291.png?Expires=1559644026&OSSAccessKeyId=LTAIkc75dpkJw8Lb");
103
+
104
+        //美食图片
105
+        List<String> tpShopTypeImgCate= new ArrayList<>();
106
+        // 美食图片3x
107
+        tpShopTypeImgCate.add("http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1557816913843.png?Expires=1559644301&OSSAccessKeyId=LTAIkc75dpkJw8Lb");
108
+       // 美食图片2x
109
+        tpShopTypeImgCate.add("http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1557816963921.png?Expires=1559644351&OSSAccessKeyId=LTAIkc75dpkJw8Lb");
110
+
111
+        //休闲
112
+        List<String> tpShopTypeImgRecreation= new ArrayList<>();
113
+        // 休闲3x
114
+        tpShopTypeImgRecreation.add("http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1557817084664.png?Expires=1559644472&OSSAccessKeyId=LTAIkc75dpkJw8Lb");
115
+       // 休闲2x
116
+        tpShopTypeImgRecreation.add("http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1557817102003.png?Expires=1559644489&OSSAccessKeyId=LTAIkc75dpkJw8Lb");
117
+
118
+        // 运动图片
119
+        List<String> tpShopTypeImgExercise= new ArrayList<>();
120
+        // 运动图片3x
121
+        tpShopTypeImgExercise.add("http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1557817239384.png?Expires=1559644626&OSSAccessKeyId=LTAIkc75dpkJw8Lb");
122
+        // 运动图片2x
123
+        tpShopTypeImgExercise.add("http://jingcheng-h5temp.oss-cn-shanghai.aliyuncs.com/1557817273156.png?Expires=1559644660&OSSAccessKeyId=LTAIkc75dpkJw8Lb");
97 124
         Map<String,Object> hashMap= new HashMap<>();
98 125
         hashMap.put("tpShopType",tpShopType);
99 126
         hashMap.put("tpShopList",tpShopList);
127
+        hashMap.put("tpShopTypeImgShop",tpShopTypeImgShop);
128
+        hashMap.put("tpShopTypeImgCate",tpShopTypeImgCate);
129
+        hashMap.put("tpShopTypeImgRecreation",tpShopTypeImgRecreation);
130
+        hashMap.put("tpShopTypeImgExercise",tpShopTypeImgExercise);
100 131
         response.addSuccess(hashMap);
101 132
         return response;
133
+
102 134
     }
103 135
 }

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/HotelController.java Ver arquivo

@@ -51,7 +51,7 @@ public class HotelController extends BaseController {
51 51
         return responseBean;
52 52
     }
53 53
 
54
-    @ApiOperation(value = "工单列表", notes = "工单列表")
54
+    @ApiOperation(value = "添加房间", notes = "添加房间")
55 55
     @ApiImplicitParams({
56 56
             @ApiImplicitParam(paramType = "body",dataType = "String",name = "parameter",value = "roomNo:房间号" +
57 57
                     "roomName:房间名称" +

+ 1
- 0
CODE/smart-community/property-api/src/main/resources/mapper/HotelRoomMapper.xml Ver arquivo

@@ -22,6 +22,7 @@
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
25 26
         </where>
26 27
     </select>
27 28
 

+ 14
- 0
VUECODE/smart-property-manage/src/views/grogshop/grogshopRoomAdd.vue Ver arquivo

@@ -58,7 +58,21 @@ export default {
58 58
   },
59 59
   methods: {
60 60
     submitForm(){
61
+      if(this.ruleForm.roomNo =='null'){
62
+        this.$message.error('请输入房间号');
63
+      }
64
+      if(this.ruleForm.roomName =='null'){
65
+        this.$message.error('请输入房间名称');
66
+      }
67
+      if(this.ruleForm.roomNo =='null'){
68
+        this.$message.error('请输入房间号');
69
+      }
61 70
       this.$store.dispatch('HotelRoomAdd', this.ruleForm).then((res) => {
71
+        this.$router.push({ name: 'grogshop-grogshopRoom' })
72
+         this.$message({
73
+          message: '新增房间成功',
74
+          type: 'success'
75
+        });
62 76
       }).catch(() => {
63 77
         console.log('error HotelRoom')
64 78
       })