傅行帆 3 年之前
父節點
當前提交
8bb9130f5d
共有 21 個檔案被更改,包括 157 行新增405 行删除
  1. 4
    5
      src/main/java/com/yunzhi/marketing/common/CommConstant.java
  2. 21
    0
      src/main/java/com/yunzhi/marketing/dto/StatisticsDTO.java
  3. 7
    0
      src/main/java/com/yunzhi/marketing/po/CustomerRankListVO.java
  4. 6
    0
      src/main/java/com/yunzhi/marketing/po/TaRecommendCustomerPO.java
  5. 0
    6
      src/main/java/com/yunzhi/marketing/po/TaRecommendCustomerVO.java
  6. 8
    0
      src/main/java/com/yunzhi/marketing/service/ChannelCustomerStatisticsService.java
  7. 39
    0
      src/main/java/com/yunzhi/marketing/service/impl/ChannelCustomerStatisticsServiceImpl.java
  8. 0
    9
      src/main/java/com/yunzhi/marketing/service/impl/TaRecommendCustomerServiceImpl.java
  9. 3
    3
      src/main/java/com/yunzhi/marketing/xlk/controller/ChannelCustomerController.java
  10. 55
    0
      src/main/java/com/yunzhi/marketing/xlk/controller/ChannelCustomerStatisticsController.java
  11. 0
    162
      src/main/java/com/yunzhi/marketing/xlk/controller/CustomerSubscribeController.java
  12. 10
    0
      src/main/java/com/yunzhi/marketing/xlk/dto/MarkingCommissionCustomerDTO.java
  13. 0
    30
      src/main/java/com/yunzhi/marketing/xlk/dto/MarkingSubscribeCustomerDTO.java
  14. 0
    118
      src/main/java/com/yunzhi/marketing/xlk/entity/CustomerSubscribe.java
  15. 0
    18
      src/main/java/com/yunzhi/marketing/xlk/mapper/CustomerSubscribeMapper.java
  16. 1
    1
      src/main/java/com/yunzhi/marketing/xlk/service/IChannelCustomerService.java
  17. 0
    16
      src/main/java/com/yunzhi/marketing/xlk/service/ICustomerSubscribeService.java
  18. 3
    11
      src/main/java/com/yunzhi/marketing/xlk/service/impl/ChannelCustomerServiceImpl.java
  19. 0
    20
      src/main/java/com/yunzhi/marketing/xlk/service/impl/CustomerSubscribeServiceImpl.java
  20. 0
    1
      src/main/resources/mapper/TaRecommendCustomerMapper.xml
  21. 0
    5
      src/main/resources/mapper/xlk/CustomerSubscribeMapper.xml

+ 4
- 5
src/main/java/com/yunzhi/marketing/common/CommConstant.java 查看文件

@@ -240,15 +240,14 @@ public class CommConstant {
240 240
     public static final Integer CUSTOMER_PREPARATORY = 3;
241 241
 
242 242
     /**
243
-     * 客户认购
243
+     * 客户签约
244 244
      */
245
-    public static final Integer CUSTOMER_PREORDER = 4;
245
+    public static final Integer CUSTOMER_SIGNED = 4;
246 246
 
247 247
     /**
248
-     * 客户签约
248
+     * 客户结佣
249 249
      */
250
-    public static final Integer CUSTOMER_SIGNED = 5;
251
-
250
+    public static final Integer CUSTOMER_COMMISSION = 5;
252 251
 
253 252
     /**
254 253
      * 待审核

+ 21
- 0
src/main/java/com/yunzhi/marketing/dto/StatisticsDTO.java 查看文件

@@ -0,0 +1,21 @@
1
+package com.yunzhi.marketing.dto;
2
+
3
+import lombok.Data;
4
+
5
+import java.time.LocalDateTime;
6
+
7
+@Data
8
+public class StatisticsDTO {
9
+
10
+    private String buildingId;
11
+
12
+    private LocalDateTime startDate;
13
+
14
+    private LocalDateTime endDate;
15
+
16
+    private Integer orgId;
17
+
18
+    private String personId;
19
+
20
+    private String channelId;
21
+}

+ 7
- 0
src/main/java/com/yunzhi/marketing/po/CustomerRankListVO.java 查看文件

@@ -0,0 +1,7 @@
1
+package com.yunzhi.marketing.po;
2
+
3
+import lombok.Data;
4
+
5
+@Data
6
+public class CustomerRankListVO {
7
+}

+ 6
- 0
src/main/java/com/yunzhi/marketing/po/TaRecommendCustomerPO.java 查看文件

@@ -23,6 +23,12 @@ public class TaRecommendCustomerPO {
23 23
 
24 24
     private LocalDateTime createDate;
25 25
 
26
+    private String customerStatus;
27
+
28
+    private String consultant;
29
+
30
+    private String avatarurl;
31
+
26 32
     /**
27 33
      * 过了保护期的时间
28 34
      */

+ 0
- 6
src/main/java/com/yunzhi/marketing/po/TaRecommendCustomerVO.java 查看文件

@@ -11,7 +11,6 @@ import com.yunzhi.marketing.entity.PersonIntention;
11 11
 import com.yunzhi.marketing.entity.TaPersonVisitRecord;
12 12
 import com.yunzhi.marketing.xlk.entity.CustomerPreparatory;
13 13
 import com.yunzhi.marketing.xlk.entity.CustomerSignatory;
14
-import com.yunzhi.marketing.xlk.entity.CustomerSubscribe;
15 14
 import com.yunzhi.marketing.xlk.entity.CustomerVisit;
16 15
 import lombok.Data;
17 16
 import lombok.EqualsAndHashCode;
@@ -243,11 +242,6 @@ public class TaRecommendCustomerVO implements Serializable {
243 242
      */
244 243
     private CustomerVisit customerVisit;
245 244
 
246
-    /**
247
-     * 认购
248
-     */
249
-    private CustomerSubscribe customerSubscribe;
250
-
251 245
     /**
252 246
      * 签约
253 247
      */

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

@@ -0,0 +1,8 @@
1
+package com.yunzhi.marketing.service;
2
+
3
+import com.yunzhi.marketing.base.ResponseBean;
4
+import com.yunzhi.marketing.dto.StatisticsDTO;
5
+
6
+public interface ChannelCustomerStatisticsService {
7
+    ResponseBean getRanklist(StatisticsDTO statisticsDTo);
8
+}

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

@@ -0,0 +1,39 @@
1
+package com.yunzhi.marketing.service.impl;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
4
+import com.yunzhi.marketing.base.ResponseBean;
5
+import com.yunzhi.marketing.dto.StatisticsDTO;
6
+import com.yunzhi.marketing.po.CustomerRankListVO;
7
+import com.yunzhi.marketing.service.ChannelCustomerStatisticsService;
8
+import com.yunzhi.marketing.xlk.entity.BuildingChannel;
9
+import com.yunzhi.marketing.xlk.mapper.BuildingChannelMapper;
10
+import com.yunzhi.marketing.xlk.mapper.ChannelCustomerMapper;
11
+import org.ietf.jgss.ChannelBinding;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.stereotype.Service;
14
+
15
+import java.util.List;
16
+
17
+@Service
18
+public class ChannelCustomerStatisticsServiceImpl implements ChannelCustomerStatisticsService {
19
+
20
+    @Autowired
21
+    private BuildingChannelMapper buildingChannelMapper;
22
+
23
+    @Autowired
24
+    private ChannelCustomerMapper channelCustomerMapper;
25
+
26
+    @Override
27
+    public ResponseBean getRanklist(StatisticsDTO statisticsDTo) {
28
+        LambdaQueryWrapper<BuildingChannel> lambdaQueryWrapper = new LambdaQueryWrapper<>();
29
+        lambdaQueryWrapper.eq(BuildingChannel::getBuildingId,statisticsDTo.getBuildingId());
30
+        BuildingChannel buildingChannel = buildingChannelMapper.selectOne(lambdaQueryWrapper);
31
+
32
+        if (null == buildingChannel) {
33
+            return ResponseBean.error("此楼盘未绑定渠道商", ResponseBean.ERROR_UNAVAILABLE);
34
+        }
35
+        statisticsDTo.setChannelId(buildingChannel.getChannelId());
36
+        List<CustomerRankListVO> list = channelCustomerMapper.getRanklist(statisticsDTo);
37
+        return ResponseBean.success(list);
38
+    }
39
+}

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

@@ -137,9 +137,6 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
137 137
     @Autowired
138 138
     private CustomerSignatoryMapper customerSignatoryMapper;
139 139
 
140
-    @Autowired
141
-    private CustomerSubscribeMapper customerSubscribeMapper;
142
-
143 140
     @Override
144 141
     public ResponseBean getMyCustList(String openid, String keywords, int pageNumber, int pageSize) {
145 142
         List<TaPerson> taPersons = getPersonsByOpenId(openid);
@@ -708,12 +705,6 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
708 705
             lambdaQueryWrapper.eq(CustomerPreparatory::getCustomerId,taRecommendCustomer.getCustomerId());
709 706
             CustomerPreparatory customerPreparatory = customerPreparatoryMapper.selectOne(lambdaQueryWrapper);
710 707
             taRecommendCustomerVO.setCustomerPreparatory(customerPreparatory);
711
-        }else if (CommConstant.CUSTOMER_PREORDER.equals(taRecommendCustomer.getStatus())) {
712
-            // 认购状态
713
-            LambdaQueryWrapper<CustomerSubscribe> lambdaQueryWrapper = new LambdaQueryWrapper<>();
714
-            lambdaQueryWrapper.eq(CustomerSubscribe::getCustomerId,taRecommendCustomer.getCustomerId());
715
-            CustomerSubscribe customerSubscribe = customerSubscribeMapper.selectOne(lambdaQueryWrapper);
716
-            taRecommendCustomerVO.setCustomerSubscribe(customerSubscribe);
717 708
         }else if (CommConstant.CUSTOMER_SIGNED.equals(taRecommendCustomer.getStatus())) {
718 709
             // 签约状态
719 710
             LambdaQueryWrapper<CustomerSignatory> lambdaQueryWrapper = new LambdaQueryWrapper<>();

+ 3
- 3
src/main/java/com/yunzhi/marketing/xlk/controller/ChannelCustomerController.java 查看文件

@@ -123,9 +123,9 @@ public class ChannelCustomerController extends BaseController {
123 123
      * @return
124 124
      */
125 125
     @ApiOperation(value = "森哥看这里-wx-驻场确认认购", notes = "森哥看这里-wx-驻场确认认购")
126
-    @RequestMapping(value="/wx/marking/subscribe",method= RequestMethod.PUT)
127
-    public ResponseBean subscribeCustomer(@RequestBody MarkingSubscribeCustomerDTO params){
128
-        return iChannelCustomerService.subscribeCustomer(params);
126
+    @RequestMapping(value="/wx/marking/commission",method= RequestMethod.PUT)
127
+    public ResponseBean commissionCustomer(@RequestBody MarkingCommissionCustomerDTO params){
128
+        return iChannelCustomerService.commissionCustomer(params);
129 129
     }
130 130
 
131 131
     /**

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

@@ -0,0 +1,55 @@
1
+package com.yunzhi.marketing.xlk.controller;
2
+
3
+
4
+import com.yunzhi.marketing.base.BaseController;
5
+import com.yunzhi.marketing.base.ResponseBean;
6
+import com.yunzhi.marketing.dto.StatisticsDTO;
7
+import com.yunzhi.marketing.entity.TaPerson;
8
+import com.yunzhi.marketing.service.ChannelCustomerStatisticsService;
9
+import com.yunzhi.marketing.service.ITaPersonService;
10
+import io.swagger.annotations.Api;
11
+import io.swagger.annotations.ApiOperation;
12
+import org.springframework.beans.factory.annotation.Autowired;
13
+import org.springframework.format.annotation.DateTimeFormat;
14
+import org.springframework.web.bind.annotation.*;
15
+
16
+import javax.servlet.http.HttpServletRequest;
17
+import java.time.LocalDate;
18
+import java.time.LocalDateTime;
19
+import java.util.List;
20
+
21
+@RestController
22
+@RequestMapping("/api")
23
+@Api(value = "森哥看这里-合作渠道统计表", tags = "森哥看这里-xlk-合作渠道统计表")
24
+public class ChannelCustomerStatisticsController extends BaseController {
25
+
26
+    @Autowired
27
+    public ITaPersonService taPersonService;
28
+
29
+    @Autowired
30
+    private ChannelCustomerStatisticsService channelCustomerStatisticsService;
31
+
32
+    @ApiOperation(value = "wx-龙虎榜排名数据", notes = "wx-龙虎榜排名数据")
33
+    @GetMapping(value="/wx/ranklist")
34
+    public ResponseBean getRanklist(@RequestParam("buildingId") String buildingId,
35
+                                    @RequestParam(value = "startDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime startDate,
36
+                                    @RequestParam(value = "endDate", required = false) @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) LocalDateTime endDate,
37
+                                    @RequestHeader("authorization") String token, HttpServletRequest request){
38
+        ResponseBean responseBean = new ResponseBean();
39
+        String openid = getOpenId(request);
40
+        Integer orgId = getOrgId(request);
41
+        List<TaPerson> persons = taPersonService.getPersonsByOpenId(openid);
42
+        if (null == persons || persons.size() == 0) {
43
+            return ResponseBean.error("当前账户信息异常, 清除缓存重试", ResponseBean.ERROR_UNAVAILABLE);
44
+        }
45
+        TaPerson person = persons.get(0);
46
+
47
+        // 构造参数
48
+        StatisticsDTO statisticsDTo = new StatisticsDTO();
49
+        statisticsDTo.setBuildingId(buildingId);
50
+        statisticsDTo.setStartDate(startDate);
51
+        statisticsDTo.setEndDate(endDate);
52
+        statisticsDTo.setPersonId(person.getPersonId());
53
+        return  channelCustomerStatisticsService.getRanklist(statisticsDTo);
54
+    }
55
+}

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

@@ -1,162 +0,0 @@
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.entity.CustomerSubscribe;
9
-import com.yunzhi.marketing.xlk.service.ICustomerSubscribeService;
10
-import io.swagger.annotations.Api;
11
-import io.swagger.annotations.ApiOperation;
12
-import org.slf4j.Logger;
13
-import org.slf4j.LoggerFactory;
14
-import org.springframework.beans.factory.annotation.Autowired;
15
-import org.springframework.web.bind.annotation.PathVariable;
16
-import org.springframework.web.bind.annotation.RequestBody;
17
-import org.springframework.web.bind.annotation.RequestHeader;
18
-import org.springframework.web.bind.annotation.RequestMapping;
19
-import org.springframework.web.bind.annotation.RequestMethod;
20
-import org.springframework.web.bind.annotation.RequestParam;
21
-import org.springframework.web.bind.annotation.ResponseBody;
22
-import org.springframework.web.bind.annotation.RestController;
23
-
24
-import javax.servlet.http.HttpServletRequest;
25
-
26
-/**
27
- * <p>
28
-    * 客户认购单  前端控制器
29
-    * </p>
30
- *
31
- * @author jobob
32
- * @since 2021-07-30
33
- */
34
-@RestController
35
-@RequestMapping("/api")
36
-@Api(value = "", tags = "xlk-")
37
-public class CustomerSubscribeController extends BaseController {
38
-
39
-    private final Logger logger = LoggerFactory.getLogger(CustomerSubscribeController.class);
40
-
41
-    @Autowired
42
-    public ICustomerSubscribeService iCustomerSubscribeService;
43
-
44
-
45
-    /**
46
-     * 分页查询列表
47
-     * @param pageNum
48
-     * @param pageSize
49
-     * @return
50
-     */
51
-    @ApiOperation(value = "", notes = "")
52
-    @RequestMapping(value="/customerSubscribe",method= RequestMethod.GET)
53
-    public ResponseBean customerSubscribeList(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
54
-                                              @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
55
-                                              @RequestHeader("authorization") String token, HttpServletRequest request){
56
-        ResponseBean responseBean = new ResponseBean();
57
-        try {
58
-            //使用分页插件
59
-		    IPage<CustomerSubscribe> pg = new Page<>(pageNum, pageSize);
60
-            LambdaQueryWrapper<CustomerSubscribe> queryWrapper = new LambdaQueryWrapper<>();
61
-            queryWrapper.eq(CustomerSubscribe::getOrgId,getOrgId(request));
62
-            queryWrapper.orderByDesc(CustomerSubscribe::getCreateDate);
63
-
64
-            IPage<CustomerSubscribe> result = iCustomerSubscribeService.page(pg, queryWrapper);
65
-            responseBean.addSuccess(result);
66
-        }catch (Exception e){
67
-            e.printStackTrace();
68
-            logger.error("customerSubscribeList -=- {}",e.toString());
69
-            responseBean.addError(e.getMessage());
70
-        }
71
-        return responseBean;
72
-    }
73
-
74
-    /**
75
-     * 保存对象
76
-     * @param customerSubscribe 实体对象
77
-     * @return
78
-     */
79
-    @ApiOperation(value = "", notes = "")
80
-    @RequestMapping(value="/customerSubscribe",method= RequestMethod.POST)
81
-    public ResponseBean customerSubscribeAdd(@RequestBody CustomerSubscribe customerSubscribe, @RequestHeader("authorization") String token, HttpServletRequest request){
82
-        ResponseBean responseBean = new ResponseBean();
83
-        try {
84
-            if (iCustomerSubscribeService.save(customerSubscribe)){
85
-                responseBean.addSuccess(customerSubscribe);
86
-            }else {
87
-                responseBean.addError("fail");
88
-            }
89
-        }catch (Exception e){
90
-            e.printStackTrace();
91
-            logger.error("customerSubscribeAdd -=- {}",e.toString());
92
-            responseBean.addError(e.getMessage());
93
-        }
94
-        return responseBean;
95
-    }
96
-
97
-    /**
98
-     * 根据id删除对象
99
-     * @param id  实体ID
100
-     */
101
-    @ApiOperation(value = "", notes = "")
102
-    @ResponseBody
103
-    @RequestMapping(value="/customerSubscribe/{id}", method= RequestMethod.DELETE)
104
-    public ResponseBean customerSubscribeDelete(@PathVariable String id, @RequestHeader("authorization") String token, HttpServletRequest request){
105
-        ResponseBean responseBean = new ResponseBean();
106
-        try {
107
-            if(iCustomerSubscribeService.removeById(id)){
108
-                responseBean.addSuccess("success");
109
-            }else {
110
-                responseBean.addError("fail");
111
-            }
112
-        }catch (Exception e){
113
-            e.printStackTrace();
114
-            logger.error("customerSubscribeDelete -=- {}",e.toString());
115
-            responseBean.addError(e.getMessage());
116
-        }
117
-        return responseBean;
118
-    }
119
-
120
-    /**
121
-     * 修改对象
122
-     * @param id  实体ID
123
-     * @param customerSubscribe 实体对象
124
-     * @return
125
-     */
126
-    @ApiOperation(value = "", notes = "")
127
-    @RequestMapping(value="/customerSubscribe/{id}",method= RequestMethod.PUT)
128
-    public ResponseBean customerSubscribeUpdate(@PathVariable String id,
129
-                                                @RequestBody CustomerSubscribe customerSubscribe, @RequestHeader("authorization") String token, HttpServletRequest request){
130
-        ResponseBean responseBean = new ResponseBean();
131
-        try {
132
-            if (iCustomerSubscribeService.updateById(customerSubscribe)){
133
-                responseBean.addSuccess(customerSubscribe);
134
-            }else {
135
-                responseBean.addError("fail");
136
-            }
137
-        }catch (Exception e){
138
-            e.printStackTrace();
139
-            logger.error("customerSubscribeUpdate -=- {}",e.toString());
140
-            responseBean.addError(e.getMessage());
141
-        }
142
-        return responseBean;
143
-    }
144
-
145
-    /**
146
-     * 根据id查询对象
147
-     * @param id  实体ID
148
-     */
149
-    @ApiOperation(value = "", notes = "")
150
-    @RequestMapping(value="/customerSubscribe/{id}",method= RequestMethod.GET)
151
-    public ResponseBean customerSubscribeGet(@PathVariable String id, @RequestHeader("authorization") String token, HttpServletRequest request){
152
-        ResponseBean responseBean = new ResponseBean();
153
-        try {
154
-            responseBean.addSuccess(iCustomerSubscribeService.getById(id));
155
-        }catch (Exception e){
156
-            e.printStackTrace();
157
-            logger.error("customerSubscribeDelete -=- {}",e.toString());
158
-            responseBean.addError(e.getMessage());
159
-        }
160
-        return responseBean;
161
-    }
162
-}

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

@@ -0,0 +1,10 @@
1
+package com.yunzhi.marketing.xlk.dto;
2
+
3
+import lombok.Data;
4
+
5
+@Data
6
+public class MarkingCommissionCustomerDTO {
7
+
8
+    private String customerId;
9
+
10
+}

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

@@ -1,30 +0,0 @@
1
-package com.yunzhi.marketing.xlk.dto;
2
-
3
-import com.yunzhi.marketing.xlk.entity.CustomerPreparatory;
4
-import com.yunzhi.marketing.xlk.entity.CustomerSubscribe;
5
-import lombok.Data;
6
-import lombok.EqualsAndHashCode;
7
-import lombok.experimental.Accessors;
8
-
9
-import java.io.Serializable;
10
-
11
-/**
12
- * <p>
13
- * 渠道报备客户表 
14
- * </p>
15
- *
16
- * @author jobob
17
- * @since 2021-07-19
18
- */
19
-@Data
20
-@EqualsAndHashCode(callSuper = false)
21
-@Accessors(chain = true)
22
-public class MarkingSubscribeCustomerDTO implements Serializable {
23
-
24
-    private String customerId;
25
-
26
-    /**
27
-     * 认筹
28
-     */
29
-   private CustomerSubscribe customerSubscribe;
30
-}

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

@@ -1,118 +0,0 @@
1
-package com.yunzhi.marketing.xlk.entity;
2
-
3
-import com.baomidou.mybatisplus.annotation.TableName;
4
-import lombok.Data;
5
-import lombok.EqualsAndHashCode;
6
-import lombok.experimental.Accessors;
7
-
8
-import java.io.Serializable;
9
-import java.time.LocalDateTime;
10
-
11
-/**
12
- * <p>
13
- * 客户认购单 
14
- * </p>
15
- *
16
- * @author jobob
17
- * @since 2021-07-30
18
- */
19
-@Data
20
-@EqualsAndHashCode(callSuper = false)
21
-@Accessors(chain = true)
22
-@TableName("xlk_customer_subscribe")
23
-public class CustomerSubscribe implements Serializable {
24
-
25
-    private static final long serialVersionUID = 1L;
26
-
27
-    /**
28
-     * 主键
29
-     */
30
-    private String customerSubscribeId;
31
-
32
-    /**
33
-     * 客户id
34
-     */
35
-    private String customerId;
36
-
37
-    /**
38
-     * 楼盘id
39
-     */
40
-    private String buildingId;
41
-
42
-    /**
43
-     * 客户姓名
44
-     */
45
-    private String name;
46
-
47
-    /**
48
-     * 推荐人(归属渠道)
49
-     */
50
-    private String recommendPerson;
51
-
52
-    /**
53
-     * 推荐人姓名(归属渠道)
54
-     */
55
-    private String recommendName;
56
-
57
-    /**
58
-     * 内场接待(置业顾问)
59
-     */
60
-    private String realtyConsultant;
61
-
62
-    /**
63
-     * 内场接待(置业顾问)姓名
64
-     */
65
-    private String realtyConsultantName;
66
-
67
-    /**
68
-     * 创建时间
69
-     */
70
-    private LocalDateTime createDate;
71
-
72
-    /**
73
-     * 备注
74
-     */
75
-    private String remark;
76
-
77
-    /**
78
-     * 公司id
79
-     */
80
-    private Integer orgId;
81
-
82
-    /**
83
-     * 业绩分成人
84
-     */
85
-    private String dividendsName;
86
-
87
-    /**
88
-     * 比例
89
-     */
90
-    private String proportion;
91
-
92
-    /**
93
-     * 户型
94
-     */
95
-    private String houseType;
96
-
97
-    /**
98
-     * 栋
99
-     */
100
-    private String ridgepole;
101
-
102
-    /**
103
-     * 单元
104
-     */
105
-    private String unit;
106
-
107
-    /**
108
-     * 室
109
-     */
110
-    private String room;
111
-
112
-    /**
113
-     * 金额
114
-     */
115
-    private String price;
116
-
117
-
118
-}

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

@@ -1,18 +0,0 @@
1
-package com.yunzhi.marketing.xlk.mapper;
2
-
3
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
-import com.yunzhi.marketing.xlk.entity.CustomerSubscribe;
5
-import org.apache.ibatis.annotations.Mapper;
6
-
7
-/**
8
- * <p>
9
- * 客户认购单  Mapper 接口
10
- * </p>
11
- *
12
- * @author jobob
13
- * @since 2021-07-30
14
- */
15
-@Mapper
16
-public interface CustomerSubscribeMapper extends BaseMapper<CustomerSubscribe> {
17
-
18
-}

+ 1
- 1
src/main/java/com/yunzhi/marketing/xlk/service/IChannelCustomerService.java 查看文件

@@ -61,7 +61,7 @@ public interface IChannelCustomerService extends IService<ChannelCustomer> {
61 61
      * @param params
62 62
      * @return
63 63
      */
64
-    ResponseBean subscribeCustomer(MarkingSubscribeCustomerDTO params);
64
+    ResponseBean commissionCustomer(MarkingCommissionCustomerDTO params);
65 65
 
66 66
     /**
67 67
      * 驻场签约

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

@@ -1,16 +0,0 @@
1
-package com.yunzhi.marketing.xlk.service;
2
-
3
-import com.baomidou.mybatisplus.extension.service.IService;
4
-import com.yunzhi.marketing.xlk.entity.CustomerSubscribe;
5
-
6
-/**
7
- * <p>
8
- * 客户认购单  服务类
9
- * </p>
10
- *
11
- * @author jobob
12
- * @since 2021-07-30
13
- */
14
-public interface ICustomerSubscribeService extends IService<CustomerSubscribe> {
15
-
16
-}

+ 3
- 11
src/main/java/com/yunzhi/marketing/xlk/service/impl/ChannelCustomerServiceImpl.java 查看文件

@@ -42,10 +42,6 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
42 42
 
43 43
     @Autowired
44 44
     private CustomerSignatoryMapper customerSignatoryMapper;
45
-
46
-    @Autowired
47
-    private CustomerSubscribeMapper customerSubscribeMapper;
48
-
49 45
     /**
50 46
      * 审核
51 47
      *
@@ -245,20 +241,16 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
245 241
     }
246 242
 
247 243
     /**
248
-     * 驻场认购
244
+     * 驻场结佣金
249 245
      *
250 246
      * @param params
251 247
      * @return
252 248
      */
253 249
     @Override
254
-    public ResponseBean subscribeCustomer(MarkingSubscribeCustomerDTO params) {
250
+    public ResponseBean commissionCustomer(MarkingCommissionCustomerDTO params) {
255 251
         TaRecommendCustomer taRecommendCustomer = taRecommendCustomerMapper.selectById(params.getCustomerId());
256
-        taRecommendCustomer.setStatus(CommConstant.CUSTOMER_PREORDER);
252
+        taRecommendCustomer.setStatus(CommConstant.CUSTOMER_COMMISSION);
257 253
         taRecommendCustomerMapper.updateById(taRecommendCustomer);
258
-
259
-        CustomerSubscribe customerSubscribe = params.getCustomerSubscribe();
260
-        customerSubscribe.setCreateDate(LocalDateTime.now());
261
-        customerSubscribeMapper.insert(customerSubscribe);
262 254
         return ResponseBean.success("审核成功");
263 255
     }
264 256
 

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

@@ -1,20 +0,0 @@
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.CustomerSubscribe;
5
-import com.yunzhi.marketing.xlk.mapper.CustomerSubscribeMapper;
6
-import com.yunzhi.marketing.xlk.service.ICustomerSubscribeService;
7
-import org.springframework.stereotype.Service;
8
-
9
-/**
10
- * <p>
11
- * 客户认购单  服务实现类
12
- * </p>
13
- *
14
- * @author jobob
15
- * @since 2021-07-30
16
- */
17
-@Service
18
-public class CustomerSubscribeServiceImpl extends ServiceImpl<CustomerSubscribeMapper, CustomerSubscribe> implements ICustomerSubscribeService {
19
-
20
-}

+ 0
- 1
src/main/resources/mapper/TaRecommendCustomerMapper.xml 查看文件

@@ -891,7 +891,6 @@ FROM
891 891
                 #{personBuilding.buildingId}
892 892
             </foreach>
893 893
         </if>
894
-        ORDER BY create_date
895 894
         union all
896 895
         SELECT
897 896
         a.channel_customer_id AS id,

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

@@ -1,5 +0,0 @@
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.CustomerSubscribeMapper">
4
-
5
-</mapper>