浏览代码

特价房源

fuxingfan 3 年前
父节点
当前提交
fba72148fb

+ 8
- 0
src/main/java/com/yunzhi/marketing/entity/TaBuilding.java 查看文件

@@ -10,6 +10,8 @@ import com.baomidou.mybatisplus.annotation.IdType;
10 10
 import com.baomidou.mybatisplus.annotation.TableField;
11 11
 import com.baomidou.mybatisplus.annotation.TableId;
12 12
 import com.baomidou.mybatisplus.core.metadata.IPage;
13
+import com.yunzhi.marketing.xlk.entity.BuildingSpecialRoom;
14
+import com.yunzhi.marketing.xlk.entity.Trend;
13 15
 import lombok.Data;
14 16
 import lombok.EqualsAndHashCode;
15 17
 import lombok.experimental.Accessors;
@@ -381,4 +383,10 @@ public class TaBuilding implements Serializable {
381 383
 
382 384
     @TableField(exist = false)
383 385
     private List<ExtendContent> extendContent;
386
+
387
+    @TableField(exist = false)
388
+    private List<BuildingSpecialRoom> specialRoomList;
389
+
390
+    @TableField(exist = false)
391
+    private List<Trend> trendList;
384 392
 }

+ 23
- 0
src/main/java/com/yunzhi/marketing/service/impl/TaBuildingServiceImpl.java 查看文件

@@ -16,6 +16,10 @@ import com.yunzhi.marketing.common.StringUtils;
16 16
 import com.yunzhi.marketing.entity.*;
17 17
 import com.yunzhi.marketing.mapper.*;
18 18
 import com.yunzhi.marketing.service.*;
19
+import com.yunzhi.marketing.xlk.entity.BuildingSpecialRoom;
20
+import com.yunzhi.marketing.xlk.entity.Trend;
21
+import com.yunzhi.marketing.xlk.mapper.BuildingSpecialRoomMapper;
22
+import com.yunzhi.marketing.xlk.mapper.TrendMapper;
19 23
 import org.apache.commons.collections.CollectionUtils;
20 24
 import org.springframework.beans.factory.annotation.Autowired;
21 25
 import org.springframework.stereotype.Service;
@@ -127,6 +131,12 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
127 131
     @Autowired
128 132
     private IExtendContentService iExtendContentService;
129 133
 
134
+    @Autowired
135
+    private BuildingSpecialRoomMapper buildingSpecialRoomMapper;
136
+
137
+    @Autowired
138
+    private TrendMapper trendMapper;
139
+
130 140
     private String MARKETING_CODE;
131 141
     @Override
132 142
     public ResponseBean buildingList(Integer pageNum, Integer pageSize, String name, String code, LocalDateTime startDate, String buildingStatus, String marketStatus, Integer cityId, Integer isMain, Integer orgId, List<TaPersonBuilding> taPersonBuildingList) {
@@ -358,6 +368,19 @@ public class TaBuildingServiceImpl extends ServiceImpl<TaBuildingMapper, TaBuild
358 368
         List<ExtendContent> taExtendContents = iExtendContentService.list(taExtendContentQueryWrapper);
359 369
         building.setExtendContent(taExtendContents);
360 370
 
371
+        // 添加楼盘特价房源
372
+        LambdaQueryWrapper<BuildingSpecialRoom> specialRoomLambdaQueryWrapper = new LambdaQueryWrapper<>();
373
+        specialRoomLambdaQueryWrapper.eq(BuildingSpecialRoom::getBuildingId,id);
374
+        specialRoomLambdaQueryWrapper.orderByDesc(BuildingSpecialRoom::getCreateDate);
375
+        List<BuildingSpecialRoom> buildingSpecialRooms = buildingSpecialRoomMapper.selectList(specialRoomLambdaQueryWrapper);
376
+        building.setSpecialRoomList(buildingSpecialRooms);
377
+
378
+        // 添加楼盘项目动态
379
+        LambdaQueryWrapper<Trend> lambdaQueryWrapper =new LambdaQueryWrapper<>();
380
+        lambdaQueryWrapper.eq(Trend::getBuildingId,id);
381
+        lambdaQueryWrapper.orderByDesc(Trend::getCreateDate);
382
+        List<Trend> trends = trendMapper.selectList(lambdaQueryWrapper);
383
+        building.setTrendList(trends);
361 384
 
362 385
         List<TaSalesBatch> resultSalesBatchList = new ArrayList<>();
363 386
         taSalesBatch.stream().forEach(record -> {

+ 175
- 0
src/main/java/com/yunzhi/marketing/xlk/controller/BuildingSpecialRoomController.java 查看文件

@@ -0,0 +1,175 @@
1
+package com.yunzhi.marketing.xlk.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.marketing.base.BaseController;
7
+import com.yunzhi.marketing.base.ResponseBean;
8
+import com.yunzhi.marketing.xlk.dto.BuildingSpecialRoomDTO;
9
+import com.yunzhi.marketing.xlk.entity.BuildingSpecialRoom;
10
+import com.yunzhi.marketing.xlk.service.IBuildingSpecialRoomService;
11
+import io.swagger.annotations.Api;
12
+import io.swagger.annotations.ApiOperation;
13
+import org.slf4j.Logger;
14
+import org.slf4j.LoggerFactory;
15
+import org.springframework.beans.BeanUtils;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.web.bind.annotation.PathVariable;
18
+import org.springframework.web.bind.annotation.RequestBody;
19
+import org.springframework.web.bind.annotation.RequestHeader;
20
+import org.springframework.web.bind.annotation.RequestMapping;
21
+import org.springframework.web.bind.annotation.RequestMethod;
22
+import org.springframework.web.bind.annotation.RequestParam;
23
+import org.springframework.web.bind.annotation.ResponseBody;
24
+import org.springframework.web.bind.annotation.RestController;
25
+
26
+import javax.servlet.http.HttpServletRequest;
27
+import java.time.LocalDateTime;
28
+
29
+/**
30
+ * <p>
31
+    * 特价房源表  前端控制器
32
+    * </p>
33
+ *
34
+ * @author jobob
35
+ * @since 2021-07-12
36
+ */
37
+@RestController
38
+@RequestMapping("/api")
39
+@Api(value = "特价房源表", tags = "xlk-特价房源表")
40
+public class BuildingSpecialRoomController extends BaseController {
41
+
42
+    private final Logger logger = LoggerFactory.getLogger(BuildingSpecialRoomController.class);
43
+
44
+    @Autowired
45
+    public IBuildingSpecialRoomService iBuildingSpecialRoomService;
46
+
47
+
48
+    /**
49
+     * 分页查询列表
50
+     * @param pageNum
51
+     * @param pageSize
52
+     * @return
53
+     */
54
+    @ApiOperation(value = "admin-查询特价房源列表", notes = "admin-查询特价房源列表")
55
+    @RequestMapping(value="/buildingSpecialRoom",method= RequestMethod.GET)
56
+    public ResponseBean buildingSpecialRoomList(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
57
+                                                @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
58
+                                                @RequestParam(value ="buildingId") String buildingId,
59
+                                                @RequestHeader("authorization") String token, HttpServletRequest request){
60
+        ResponseBean responseBean = new ResponseBean();
61
+        try {
62
+            //使用分页插件
63
+		    IPage<BuildingSpecialRoom> pg = new Page<>(pageNum, pageSize);
64
+            LambdaQueryWrapper<BuildingSpecialRoom> queryWrapper = new LambdaQueryWrapper<>();
65
+            queryWrapper.eq(BuildingSpecialRoom::getOrgId,getOrgId(request));
66
+            queryWrapper.eq(BuildingSpecialRoom::getBuildingId,buildingId);
67
+            queryWrapper.orderByDesc(BuildingSpecialRoom::getCreateDate);
68
+
69
+            IPage<BuildingSpecialRoom> result = iBuildingSpecialRoomService.page(pg, queryWrapper);
70
+            responseBean.addSuccess(result);
71
+        }catch (Exception e){
72
+            e.printStackTrace();
73
+            logger.error("buildingSpecialRoomList -=- {}",e.toString());
74
+            responseBean.addError(e.getMessage());
75
+        }
76
+        return responseBean;
77
+    }
78
+
79
+    /**
80
+     * 保存对象
81
+     * @param buildingSpecialRoomDTO 实体对象
82
+     * @return
83
+     */
84
+    @ApiOperation(value = "admin-保存特价房源", notes = "admin-保存特价房源")
85
+    @RequestMapping(value="/buildingSpecialRoom",method= RequestMethod.POST)
86
+    public ResponseBean buildingSpecialRoomAdd(@RequestBody BuildingSpecialRoomDTO buildingSpecialRoomDTO, @RequestHeader("authorization") String token, HttpServletRequest request){
87
+        ResponseBean responseBean = new ResponseBean();
88
+        try {
89
+            Integer orgId = getOrgId(request);
90
+            BuildingSpecialRoom buildingSpecialRoom = new BuildingSpecialRoom();
91
+            BeanUtils.copyProperties(buildingSpecialRoomDTO,buildingSpecialRoom);
92
+            buildingSpecialRoom.setOrgId(orgId);
93
+            buildingSpecialRoom.setCreateDate(LocalDateTime.now());
94
+            if (iBuildingSpecialRoomService.save(buildingSpecialRoom)){
95
+                responseBean.addSuccess(buildingSpecialRoom);
96
+            }else {
97
+                responseBean.addError("fail");
98
+            }
99
+        }catch (Exception e){
100
+            e.printStackTrace();
101
+            logger.error("buildingSpecialRoomAdd -=- {}",e.toString());
102
+            responseBean.addError(e.getMessage());
103
+        }
104
+        return responseBean;
105
+    }
106
+
107
+    /**
108
+     * 根据id删除对象
109
+     * @param id  实体ID
110
+     */
111
+    @ApiOperation(value = "admin-删除特价房源", notes = "admin-删除特价房源")
112
+    @ResponseBody
113
+    @RequestMapping(value="/buildingSpecialRoom/{id}", method= RequestMethod.DELETE)
114
+    public ResponseBean buildingSpecialRoomDelete(@PathVariable String id, @RequestHeader("authorization") String token, HttpServletRequest request){
115
+        ResponseBean responseBean = new ResponseBean();
116
+        try {
117
+            if(iBuildingSpecialRoomService.removeById(id)){
118
+                responseBean.addSuccess("success");
119
+            }else {
120
+                responseBean.addError("fail");
121
+            }
122
+        }catch (Exception e){
123
+            e.printStackTrace();
124
+            logger.error("buildingSpecialRoomDelete -=- {}",e.toString());
125
+            responseBean.addError(e.getMessage());
126
+        }
127
+        return responseBean;
128
+    }
129
+
130
+    /**
131
+     * 修改对象
132
+     * @param id  实体ID
133
+     * @param buildingSpecialRoomDTO 实体对象
134
+     * @return
135
+     */
136
+    @ApiOperation(value = "admin-修改特价房源", notes = "admin-修改特价房源")
137
+    @RequestMapping(value="/buildingSpecialRoom/{id}",method= RequestMethod.PUT)
138
+    public ResponseBean buildingSpecialRoomUpdate(@PathVariable String id,
139
+                                                  @RequestBody BuildingSpecialRoomDTO buildingSpecialRoomDTO, @RequestHeader("authorization") String token, HttpServletRequest request){
140
+        ResponseBean responseBean = new ResponseBean();
141
+        try {
142
+            BuildingSpecialRoom buildingSpecialRoom = new BuildingSpecialRoom();
143
+            BeanUtils.copyProperties(buildingSpecialRoomDTO,buildingSpecialRoom);
144
+            buildingSpecialRoom.setSpecialRoomId(id);
145
+            if (iBuildingSpecialRoomService.updateById(buildingSpecialRoom)){
146
+                responseBean.addSuccess(buildingSpecialRoom);
147
+            }else {
148
+                responseBean.addError("fail");
149
+            }
150
+        }catch (Exception e){
151
+            e.printStackTrace();
152
+            logger.error("buildingSpecialRoomUpdate -=- {}",e.toString());
153
+            responseBean.addError(e.getMessage());
154
+        }
155
+        return responseBean;
156
+    }
157
+
158
+    /**
159
+     * 根据id查询对象
160
+     * @param id  实体ID
161
+     */
162
+    @ApiOperation(value = "admin-获取特价房源详情", notes = "admin-获取特价房源详情")
163
+    @RequestMapping(value="/buildingSpecialRoom/{id}",method= RequestMethod.GET)
164
+    public ResponseBean buildingSpecialRoomGet(@PathVariable String id, @RequestHeader("authorization") String token, HttpServletRequest request){
165
+        ResponseBean responseBean = new ResponseBean();
166
+        try {
167
+            responseBean.addSuccess(iBuildingSpecialRoomService.getById(id));
168
+        }catch (Exception e){
169
+            e.printStackTrace();
170
+            logger.error("buildingSpecialRoomDelete -=- {}",e.toString());
171
+            responseBean.addError(e.getMessage());
172
+        }
173
+        return responseBean;
174
+    }
175
+}

+ 174
- 0
src/main/java/com/yunzhi/marketing/xlk/controller/TrendController.java 查看文件

@@ -0,0 +1,174 @@
1
+package com.yunzhi.marketing.xlk.controller;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.yunzhi.marketing.base.BaseController;
7
+import com.yunzhi.marketing.base.ResponseBean;
8
+import com.yunzhi.marketing.xlk.dto.TrendDTO;
9
+import com.yunzhi.marketing.xlk.entity.Trend;
10
+import com.yunzhi.marketing.xlk.service.ITrendService;
11
+import io.swagger.annotations.Api;
12
+import io.swagger.annotations.ApiOperation;
13
+import org.slf4j.Logger;
14
+import org.slf4j.LoggerFactory;
15
+import org.springframework.beans.BeanUtils;
16
+import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.web.bind.annotation.PathVariable;
18
+import org.springframework.web.bind.annotation.RequestBody;
19
+import org.springframework.web.bind.annotation.RequestHeader;
20
+import org.springframework.web.bind.annotation.RequestMapping;
21
+import org.springframework.web.bind.annotation.RequestMethod;
22
+import org.springframework.web.bind.annotation.RequestParam;
23
+import org.springframework.web.bind.annotation.ResponseBody;
24
+import org.springframework.web.bind.annotation.RestController;
25
+
26
+import javax.servlet.http.HttpServletRequest;
27
+import java.time.LocalDateTime;
28
+
29
+/**
30
+ * <p>
31
+    * 项目动态表  前端控制器
32
+    * </p>
33
+ *
34
+ * @author jobob
35
+ * @since 2021-07-12
36
+ */
37
+@RestController
38
+@RequestMapping("/api")
39
+@Api(value = "项目动态表", tags = "xlk-项目动态表")
40
+public class TrendController extends BaseController {
41
+
42
+    private final Logger logger = LoggerFactory.getLogger(TrendController.class);
43
+
44
+    @Autowired
45
+    public ITrendService iTrendService;
46
+
47
+
48
+    /**
49
+     * 分页查询列表
50
+     * @param pageNum
51
+     * @param pageSize
52
+     * @return
53
+     */
54
+    @ApiOperation(value = "admin-查询项目动态列表", notes = "admin-查询项目动态列表")
55
+    @RequestMapping(value="/trend",method= RequestMethod.GET)
56
+    public ResponseBean trendList(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
57
+                                  @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
58
+                                  @RequestParam(value ="buildingId") String buildingId,
59
+                                  @RequestHeader("authorization") String token, HttpServletRequest request){
60
+        ResponseBean responseBean = new ResponseBean();
61
+        try {
62
+            //使用分页插件
63
+		    IPage<Trend> pg = new Page<>(pageNum, pageSize);
64
+            LambdaQueryWrapper<Trend> queryWrapper = new LambdaQueryWrapper<>();
65
+            queryWrapper.eq(Trend::getOrgId,getOrgId(request));
66
+            queryWrapper.eq(Trend::getBuildingId,buildingId);
67
+            queryWrapper.orderByDesc(Trend::getCreateDate);
68
+
69
+            IPage<Trend> result = iTrendService.page(pg, queryWrapper);
70
+            responseBean.addSuccess(result);
71
+        }catch (Exception e){
72
+            e.printStackTrace();
73
+            logger.error("trendList -=- {}",e.toString());
74
+            responseBean.addError(e.getMessage());
75
+        }
76
+        return responseBean;
77
+    }
78
+
79
+    /**
80
+     * 保存对象
81
+     * @param trendDTO 实体对象
82
+     * @return
83
+     */
84
+    @ApiOperation(value = "admin-保存项目动态表", notes = "admin-保存项目动态表")
85
+    @RequestMapping(value="/trend",method= RequestMethod.POST)
86
+    public ResponseBean trendAdd(@RequestBody TrendDTO trendDTO, @RequestHeader("authorization") String token, HttpServletRequest request){
87
+        ResponseBean responseBean = new ResponseBean();
88
+        try {
89
+            Trend trend = new Trend();
90
+            BeanUtils.copyProperties(trendDTO,trend);
91
+            trend.setOrgId(getOrgId(request));
92
+            trend.setCreateDate(LocalDateTime.now());
93
+            if (iTrendService.save(trend)){
94
+                responseBean.addSuccess(trend);
95
+            }else {
96
+                responseBean.addError("fail");
97
+            }
98
+        }catch (Exception e){
99
+            e.printStackTrace();
100
+            logger.error("trendAdd -=- {}",e.toString());
101
+            responseBean.addError(e.getMessage());
102
+        }
103
+        return responseBean;
104
+    }
105
+
106
+    /**
107
+     * 根据id删除对象
108
+     * @param id  实体ID
109
+     */
110
+    @ApiOperation(value = "admin-删除项目动态", notes = "admin-删除项目动态")
111
+    @ResponseBody
112
+    @RequestMapping(value="/trend/{id}", method= RequestMethod.DELETE)
113
+    public ResponseBean trendDelete(@PathVariable String id, @RequestHeader("authorization") String token, HttpServletRequest request){
114
+        ResponseBean responseBean = new ResponseBean();
115
+        try {
116
+            if(iTrendService.removeById(id)){
117
+                responseBean.addSuccess("success");
118
+            }else {
119
+                responseBean.addError("fail");
120
+            }
121
+        }catch (Exception e){
122
+            e.printStackTrace();
123
+            logger.error("trendDelete -=- {}",e.toString());
124
+            responseBean.addError(e.getMessage());
125
+        }
126
+        return responseBean;
127
+    }
128
+
129
+    /**
130
+     * 修改对象
131
+     * @param id  实体ID
132
+     * @param trendDTO 实体对象
133
+     * @return
134
+     */
135
+    @ApiOperation(value = "admin-修改项目动态", notes = "admin-修改项目动态")
136
+    @RequestMapping(value="/trend/{id}",method= RequestMethod.PUT)
137
+    public ResponseBean trendUpdate(@PathVariable String id,
138
+                                    @RequestBody TrendDTO trendDTO, @RequestHeader("authorization") String token, HttpServletRequest request){
139
+        ResponseBean responseBean = new ResponseBean();
140
+        try {
141
+            Trend trend = new Trend();
142
+            BeanUtils.copyProperties(trendDTO,trend);
143
+            trend.setTrendId(id);
144
+            if (iTrendService.updateById(trend)){
145
+                responseBean.addSuccess(trend);
146
+            }else {
147
+                responseBean.addError("fail");
148
+            }
149
+        }catch (Exception e){
150
+            e.printStackTrace();
151
+            logger.error("trendUpdate -=- {}",e.toString());
152
+            responseBean.addError(e.getMessage());
153
+        }
154
+        return responseBean;
155
+    }
156
+
157
+    /**
158
+     * 根据id查询对象
159
+     * @param id  实体ID
160
+     */
161
+    @ApiOperation(value = "admin-查询项目动态详情", notes = "admin-查询项目动态详情")
162
+    @RequestMapping(value="/trend/{id}",method= RequestMethod.GET)
163
+    public ResponseBean trendGet(@PathVariable String id, @RequestHeader("authorization") String token, HttpServletRequest request){
164
+        ResponseBean responseBean = new ResponseBean();
165
+        try {
166
+            responseBean.addSuccess(iTrendService.getById(id));
167
+        }catch (Exception e){
168
+            e.printStackTrace();
169
+            logger.error("trendDelete -=- {}",e.toString());
170
+            responseBean.addError(e.getMessage());
171
+        }
172
+        return responseBean;
173
+    }
174
+}

+ 73
- 0
src/main/java/com/yunzhi/marketing/xlk/dto/BuildingSpecialRoomDTO.java 查看文件

@@ -0,0 +1,73 @@
1
+package com.yunzhi.marketing.xlk.dto;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Data;
7
+import lombok.EqualsAndHashCode;
8
+import lombok.experimental.Accessors;
9
+
10
+import java.io.Serializable;
11
+import java.time.LocalDateTime;
12
+
13
+/**
14
+ * <p>
15
+ * 特价房源表 
16
+ * </p>
17
+ *
18
+ * @author jobob
19
+ * @since 2021-07-12
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@TableName("xlk_building_special_room")
25
+public class BuildingSpecialRoomDTO implements Serializable {
26
+
27
+    /**
28
+     * 房源名称
29
+     */
30
+    private String roomName;
31
+
32
+    /**
33
+     * 户型
34
+     */
35
+    private String unitType;
36
+
37
+    /**
38
+     * 面积
39
+     */
40
+    private String area;
41
+
42
+    /**
43
+     * 开始时间
44
+     */
45
+    private LocalDateTime startTime;
46
+
47
+    /**
48
+     * 结束时间
49
+     */
50
+    private LocalDateTime endTime;
51
+
52
+    /**
53
+     * 原始价格
54
+     */
55
+    private String originalPrice;
56
+
57
+    /**
58
+     * 现价格
59
+     */
60
+    private String currentPrice;
61
+
62
+    /**
63
+     * 节省价格
64
+     */
65
+    private String thriftPrice;
66
+
67
+    /**
68
+     * 楼盘id
69
+     */
70
+    private String buildingId;
71
+
72
+
73
+}

+ 48
- 0
src/main/java/com/yunzhi/marketing/xlk/dto/TrendDTO.java 查看文件

@@ -0,0 +1,48 @@
1
+package com.yunzhi.marketing.xlk.dto;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Data;
7
+import lombok.EqualsAndHashCode;
8
+import lombok.experimental.Accessors;
9
+
10
+import java.io.Serializable;
11
+import java.time.LocalDateTime;
12
+
13
+/**
14
+ * <p>
15
+ * 项目动态表 
16
+ * </p>
17
+ *
18
+ * @author jobob
19
+ * @since 2021-07-12
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@TableName("xlk_trend")
25
+public class TrendDTO implements Serializable {
26
+
27
+    /**
28
+     * 动态时间
29
+     */
30
+    private LocalDateTime trendTime;
31
+
32
+    /**
33
+     * 动态标题
34
+     */
35
+    private String trendTitle;
36
+
37
+    /**
38
+     * 动态内容
39
+     */
40
+    private String trendContent;
41
+
42
+    /**
43
+     * 楼盘id
44
+     */
45
+    private String buildingId;
46
+
47
+
48
+}

+ 91
- 0
src/main/java/com/yunzhi/marketing/xlk/entity/BuildingSpecialRoom.java 查看文件

@@ -0,0 +1,91 @@
1
+package com.yunzhi.marketing.xlk.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Data;
7
+import lombok.EqualsAndHashCode;
8
+import lombok.experimental.Accessors;
9
+
10
+import java.io.Serializable;
11
+import java.time.LocalDateTime;
12
+
13
+/**
14
+ * <p>
15
+ * 特价房源表 
16
+ * </p>
17
+ *
18
+ * @author jobob
19
+ * @since 2021-07-12
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@TableName("xlk_building_special_room")
25
+public class BuildingSpecialRoom implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    /**
30
+     * 特价房源id
31
+     */
32
+    @TableId(type = IdType.UUID)
33
+    private String specialRoomId;
34
+
35
+    /**
36
+     * 房源名称
37
+     */
38
+    private String roomName;
39
+
40
+    /**
41
+     * 户型
42
+     */
43
+    private String unitType;
44
+
45
+    /**
46
+     * 面积
47
+     */
48
+    private String area;
49
+
50
+    /**
51
+     * 开始时间
52
+     */
53
+    private LocalDateTime startTime;
54
+
55
+    /**
56
+     * 结束时间
57
+     */
58
+    private LocalDateTime endTime;
59
+
60
+    /**
61
+     * 原始价格
62
+     */
63
+    private String originalPrice;
64
+
65
+    /**
66
+     * 现价格
67
+     */
68
+    private String currentPrice;
69
+
70
+    /**
71
+     * 节省价格
72
+     */
73
+    private String thriftPrice;
74
+
75
+    /**
76
+     * 创建时间
77
+     */
78
+    private LocalDateTime createDate;
79
+
80
+    /**
81
+     * 公司id
82
+     */
83
+    private Integer orgId;
84
+
85
+    /**
86
+     * 楼盘id
87
+     */
88
+    private String buildingId;
89
+
90
+
91
+}

+ 66
- 0
src/main/java/com/yunzhi/marketing/xlk/entity/Trend.java 查看文件

@@ -0,0 +1,66 @@
1
+package com.yunzhi.marketing.xlk.entity;
2
+
3
+import com.baomidou.mybatisplus.annotation.IdType;
4
+import com.baomidou.mybatisplus.annotation.TableId;
5
+import com.baomidou.mybatisplus.annotation.TableName;
6
+import lombok.Data;
7
+import lombok.EqualsAndHashCode;
8
+import lombok.experimental.Accessors;
9
+
10
+import java.io.Serializable;
11
+import java.time.LocalDateTime;
12
+
13
+/**
14
+ * <p>
15
+ * 项目动态表 
16
+ * </p>
17
+ *
18
+ * @author jobob
19
+ * @since 2021-07-12
20
+ */
21
+@Data
22
+@EqualsAndHashCode(callSuper = false)
23
+@Accessors(chain = true)
24
+@TableName("xlk_trend")
25
+public class Trend implements Serializable {
26
+
27
+    private static final long serialVersionUID = 1L;
28
+
29
+    /**
30
+     * 动态id
31
+     */
32
+    @TableId(type = IdType.UUID)
33
+    private String trendId;
34
+
35
+    /**
36
+     * 动态时间
37
+     */
38
+    private LocalDateTime trendTime;
39
+
40
+    /**
41
+     * 动态标题
42
+     */
43
+    private String trendTitle;
44
+
45
+    /**
46
+     * 动态内容
47
+     */
48
+    private String trendContent;
49
+
50
+    /**
51
+     * 创建时间
52
+     */
53
+    private LocalDateTime createDate;
54
+
55
+    /**
56
+     * 公司id
57
+     */
58
+    private Integer orgId;
59
+
60
+    /**
61
+     * 楼盘id
62
+     */
63
+    private String buildingId;
64
+
65
+
66
+}

+ 18
- 0
src/main/java/com/yunzhi/marketing/xlk/mapper/BuildingSpecialRoomMapper.java 查看文件

@@ -0,0 +1,18 @@
1
+package com.yunzhi.marketing.xlk.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.yunzhi.marketing.xlk.entity.BuildingSpecialRoom;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 特价房源表  Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author jobob
13
+ * @since 2021-07-12
14
+ */
15
+@Mapper
16
+public interface BuildingSpecialRoomMapper extends BaseMapper<BuildingSpecialRoom> {
17
+
18
+}

+ 18
- 0
src/main/java/com/yunzhi/marketing/xlk/mapper/TrendMapper.java 查看文件

@@ -0,0 +1,18 @@
1
+package com.yunzhi.marketing.xlk.mapper;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.yunzhi.marketing.xlk.entity.Trend;
5
+import org.apache.ibatis.annotations.Mapper;
6
+
7
+/**
8
+ * <p>
9
+ * 项目动态表  Mapper 接口
10
+ * </p>
11
+ *
12
+ * @author jobob
13
+ * @since 2021-07-12
14
+ */
15
+@Mapper
16
+public interface TrendMapper extends BaseMapper<Trend> {
17
+
18
+}

+ 16
- 0
src/main/java/com/yunzhi/marketing/xlk/service/IBuildingSpecialRoomService.java 查看文件

@@ -0,0 +1,16 @@
1
+package com.yunzhi.marketing.xlk.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.marketing.xlk.entity.BuildingSpecialRoom;
5
+
6
+/**
7
+ * <p>
8
+ * 特价房源表  服务类
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2021-07-12
13
+ */
14
+public interface IBuildingSpecialRoomService extends IService<BuildingSpecialRoom> {
15
+
16
+}

+ 16
- 0
src/main/java/com/yunzhi/marketing/xlk/service/ITrendService.java 查看文件

@@ -0,0 +1,16 @@
1
+package com.yunzhi.marketing.xlk.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.yunzhi.marketing.xlk.entity.Trend;
5
+
6
+/**
7
+ * <p>
8
+ * 项目动态表  服务类
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2021-07-12
13
+ */
14
+public interface ITrendService extends IService<Trend> {
15
+
16
+}

+ 20
- 0
src/main/java/com/yunzhi/marketing/xlk/service/impl/BuildingSpecialRoomServiceImpl.java 查看文件

@@ -0,0 +1,20 @@
1
+package com.yunzhi.marketing.xlk.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.yunzhi.marketing.xlk.entity.BuildingSpecialRoom;
5
+import com.yunzhi.marketing.xlk.mapper.BuildingSpecialRoomMapper;
6
+import com.yunzhi.marketing.xlk.service.IBuildingSpecialRoomService;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 特价房源表  服务实现类
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2021-07-12
16
+ */
17
+@Service
18
+public class BuildingSpecialRoomServiceImpl extends ServiceImpl<BuildingSpecialRoomMapper, BuildingSpecialRoom> implements IBuildingSpecialRoomService {
19
+
20
+}

+ 20
- 0
src/main/java/com/yunzhi/marketing/xlk/service/impl/TrendServiceImpl.java 查看文件

@@ -0,0 +1,20 @@
1
+package com.yunzhi.marketing.xlk.service.impl;
2
+
3
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
4
+import com.yunzhi.marketing.xlk.entity.Trend;
5
+import com.yunzhi.marketing.xlk.mapper.TrendMapper;
6
+import com.yunzhi.marketing.xlk.service.ITrendService;
7
+import org.springframework.stereotype.Service;
8
+
9
+/**
10
+ * <p>
11
+ * 项目动态表  服务实现类
12
+ * </p>
13
+ *
14
+ * @author jobob
15
+ * @since 2021-07-12
16
+ */
17
+@Service
18
+public class TrendServiceImpl extends ServiceImpl<TrendMapper, Trend> implements ITrendService {
19
+
20
+}

+ 5
- 0
src/main/resources/mapper/xlk/BuildingSpecialRoomMapper.xml 查看文件

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.yunzhi.marketing.xlk.mapper.BuildingSpecialRoomMapper">
4
+
5
+</mapper>

+ 5
- 0
src/main/resources/mapper/xlk/TrendMapper.xml 查看文件

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.yunzhi.marketing.xlk.mapper.TrendMapper">
4
+
5
+</mapper>