fuxingfan 3 years ago
parent
commit
bf00079df3

+ 5
- 5
src/main/java/com/yunzhi/marketing/interceptor/AccessInterceptor.java View File

@@ -253,12 +253,12 @@ public class AccessInterceptor implements HandlerInterceptor {
253 253
     private boolean inWhiteList(HttpServletRequest request) {
254 254
         String requestURI = request.getRequestURI();
255 255
 
256
-//        for (String it : whiteList) {
257
-//            if (requestURI.startsWith(it)) {
256
+        for (String it : whiteList) {
257
+            if (requestURI.startsWith(it)) {
258 258
                 return true;
259
-//            }
260
-//        }
259
+            }
260
+        }
261 261
 
262
-//        return false;
262
+        return false;
263 263
     }
264 264
 }

+ 8
- 25
src/main/java/com/yunzhi/marketing/xlk/controller/HousePropertyController.java View File

@@ -7,6 +7,8 @@ import com.yunzhi.marketing.base.BaseController;
7 7
 import com.yunzhi.marketing.base.ResponseBean;
8 8
 import com.yunzhi.marketing.xlk.entity.HouseProperty;
9 9
 import com.yunzhi.marketing.xlk.service.IHousePropertyService;
10
+import io.swagger.annotations.Api;
11
+import io.swagger.annotations.ApiOperation;
10 12
 import org.slf4j.Logger;
11 13
 import org.slf4j.LoggerFactory;
12 14
 import org.springframework.beans.factory.annotation.Autowired;
@@ -21,7 +23,8 @@ import org.springframework.web.bind.annotation.*;
21 23
  * @since 2021-06-15
22 24
  */
23 25
 @RestController
24
-@RequestMapping("/")
26
+@RequestMapping("/api")
27
+@Api(value = "帮我找房问卷问题表", tags = "xlk-帮我找房问卷问题表")
25 28
 public class HousePropertyController extends BaseController {
26 29
 
27 30
     private final Logger logger = LoggerFactory.getLogger(HousePropertyController.class);
@@ -30,30 +33,10 @@ public class HousePropertyController extends BaseController {
30 33
     public IHousePropertyService iHousePropertyService;
31 34
 
32 35
 
33
-    /**
34
-     * 分页查询列表
35
-     * @param pageNum
36
-     * @param pageSize
37
-     * @return
38
-     */
39
-    @RequestMapping(value="/houseProperty",method= RequestMethod.GET)
40
-    public ResponseBean housePropertyList(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
41
-                                          @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize){
42
-        ResponseBean responseBean = new ResponseBean();
43
-        try {
44
-            //使用分页插件
45
-		    IPage<HouseProperty> pg = new Page<>(pageNum, pageSize);
46
-            QueryWrapper<HouseProperty> queryWrapper = new QueryWrapper<>();
47
-            queryWrapper.orderByDesc("create_date");
48
-
49
-            IPage<HouseProperty> result = iHousePropertyService.page(pg, queryWrapper);
50
-            responseBean.addSuccess(result);
51
-        }catch (Exception e){
52
-            e.printStackTrace();
53
-            logger.error("housePropertyList -=- {}",e.toString());
54
-            responseBean.addError(e.getMessage());
55
-        }
56
-        return responseBean;
36
+    @ApiOperation(value = "wx-获取帮我找房问卷问题表", notes = "admin-获取帮我找房问卷问题表")
37
+    @RequestMapping(value="/wx/houseProperty",method= RequestMethod.GET)
38
+    public ResponseBean housePropertyList(){
39
+        return ResponseBean.success(iHousePropertyService.list());
57 40
     }
58 41
 
59 42
     /**

+ 138
- 12
src/main/java/com/yunzhi/marketing/xlk/dto/SearchHouseDTO.java View File

@@ -38,37 +38,163 @@ public class SearchHouseDTO implements Serializable {
38 38
     private String intentBuilding;
39 39
 
40 40
     /**
41
-     * 最小面积
41
+     * 总预算范围最小价格
42 42
      */
43
-    private String minArea;
43
+    private String minPrice;
44 44
 
45 45
     /**
46
-     * 最大面积
46
+     * 总预算范围最大价格
47 47
      */
48
-    private String maxArea;
48
+    private String maxPrice;
49 49
 
50 50
     /**
51
-     * 最小户型
51
+     * 首套还是二套
52 52
      */
53
-    private String minHouseType;
53
+    private String houseNumber;
54 54
 
55 55
     /**
56
-     * 最大户型
56
+     * 0待回访,1已回访,2无效
57 57
      */
58
-    private String maxHouseType;
58
+    private String status;
59 59
 
60 60
     /**
61
-     * 最小价格
61
+     * 审核结果
62 62
      */
63
-    private String minPrice;
63
+    private String auditRemark;
64 64
 
65 65
     /**
66
-     * 最大价格
66
+     * 帮我找房类型 1买房2租房3海外置业4增值服务
67 67
      */
68
-    private String maxPrice;
68
+    private Integer type;
69
+
70
+    /**
71
+     * 房屋属性
72
+     */
73
+    private String houseAttribute;
74
+
75
+    /**
76
+     * 居室要求
77
+     */
78
+    private String housetRoomType;
79
+
80
+    /**
81
+     * 面积要求
82
+     */
83
+    private String houseArea;
84
+
85
+    /**
86
+     * 价格要求
87
+     */
88
+    private String housePrice;
89
+
90
+    /**
91
+     * 偏好设置
92
+     */
93
+    private String housePreference;
94
+
95
+    /**
96
+     * 购房目的
97
+     */
98
+    private String housePurpose;
99
+
100
+    /**
101
+     * 购房时间
102
+     */
103
+    private String houseTime;
69 104
 
70 105
     /**
71 106
      * 备注
72 107
      */
73 108
     private String remark;
109
+
110
+    /**
111
+     * 租房预算
112
+     */
113
+    private String rentHouseBudget;
114
+
115
+    /**
116
+     * 租房居室
117
+     */
118
+    private String rentHousetRoomType;
119
+
120
+    /**
121
+     * 租房地址
122
+     */
123
+    private String rentHouseCity;
124
+
125
+    /**
126
+     * 租房要求
127
+     */
128
+    private String rentHouseDemand;
129
+
130
+    /**
131
+     * 海外城市
132
+     */
133
+    private String overseasHouseCity;
134
+
135
+    /**
136
+     * 海外房子预算
137
+     */
138
+    private String overseasHouseBudget;
139
+
140
+    /**
141
+     * 海外房屋类型
142
+     */
143
+    private String overseasHouseType;
144
+
145
+    /**
146
+     * 海外购房目的
147
+     */
148
+    private String overseasHousePurpose;
149
+
150
+    /**
151
+     * 装修预算
152
+     */
153
+    private String fitmentBudget;
154
+
155
+    /**
156
+     * 房屋现状
157
+     */
158
+    private String fitmentHousePresent;
159
+
160
+    /**
161
+     * 家装模式
162
+     */
163
+    private String fitmentMode;
164
+
165
+    /**
166
+     * 看中的家装的方面
167
+     */
168
+    private String fitmentFactor;
169
+
170
+    /**
171
+     * 家装风格
172
+     */
173
+    private String fitmentStyle;
174
+
175
+    /**
176
+     * 家装诉求
177
+     */
178
+    private String fitmentAppeal;
179
+
180
+    /**
181
+     * 家装特殊区域
182
+     */
183
+    private String fitmentSpecialArea;
184
+
185
+    /**
186
+     * 智能家居
187
+     */
188
+    private String fitmentIntelligent;
189
+
190
+    /**
191
+     * 租房偏好
192
+     */
193
+    private String rentHousePreference;
194
+
195
+    /**
196
+     * 装修面积
197
+     */
198
+    private String fitmentArea;
199
+
74 200
 }

+ 8
- 0
src/main/java/com/yunzhi/marketing/xlk/entity/SearchHouse.java View File

@@ -1,6 +1,8 @@
1 1
 package com.yunzhi.marketing.xlk.entity;
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 com.baomidou.mybatisplus.annotation.TableName;
5 7
 import lombok.Data;
6 8
 import lombok.EqualsAndHashCode;
@@ -25,6 +27,12 @@ public class SearchHouse implements Serializable {
25 27
 
26 28
     private static final long serialVersionUID = 1L;
27 29
 
30
+    /**
31
+     * 主键
32
+     */
33
+    @TableId(type = IdType.UUID)
34
+    private String id;
35
+
28 36
     /**
29 37
      * 创建人小程序人员
30 38
      */