|
@@ -24,6 +24,10 @@ import com.huiju.estateagents.service.ITaPersonService;
|
24
|
24
|
import com.huiju.estateagents.service.ITaRecommendCustomerService;
|
25
|
25
|
import com.huiju.estateagents.service.TaChannelPersonService;
|
26
|
26
|
import com.huiju.estateagents.service.TaChannelService;
|
|
27
|
+import io.swagger.annotations.Api;
|
|
28
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
29
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
30
|
+import io.swagger.annotations.ApiOperation;
|
27
|
31
|
import org.springframework.beans.factory.annotation.Autowired;
|
28
|
32
|
import org.springframework.context.ApplicationContext;
|
29
|
33
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -48,6 +52,7 @@ import java.util.List;
|
48
|
52
|
*/
|
49
|
53
|
@RestController
|
50
|
54
|
@RequestMapping("/api")
|
|
55
|
+@Api(value = "项目类型", tags = "项目类型")
|
51
|
56
|
public class TaRecommendCustomerController extends BaseController {
|
52
|
57
|
|
53
|
58
|
@Autowired
|
|
@@ -74,6 +79,12 @@ public class TaRecommendCustomerController extends BaseController {
|
74
|
79
|
* @return
|
75
|
80
|
*/
|
76
|
81
|
@GetMapping("/wx/customer/list")
|
|
82
|
+ @ApiOperation(value = "查询我的客户列表", notes = "查询我的客户列表")
|
|
83
|
+ @ApiImplicitParams({
|
|
84
|
+ @ApiImplicitParam(dataTypeClass = Integer.class, name = "pageNumber", paramType = "query",value = "第几页"),
|
|
85
|
+ @ApiImplicitParam(dataTypeClass = Integer.class, name = "pageSize", paramType = "query",value = "一页多少行"),
|
|
86
|
+ @ApiImplicitParam(dataTypeClass = String.class, name = "keywords", paramType = "query",value = "搜索关键字,目前仅支持姓名")
|
|
87
|
+ })
|
77
|
88
|
public ResponseBean getMyCustList(@RequestParam int pageNumber, @RequestParam int pageSize, String keywords, HttpServletRequest request) {
|
78
|
89
|
if (pageNumber < 0 || pageSize < 0) {
|
79
|
90
|
return ResponseBean.error("分页参数不正确", ResponseBean.ERROR_ILLEGAL_PARAMS);
|
|
@@ -89,6 +100,10 @@ public class TaRecommendCustomerController extends BaseController {
|
89
|
100
|
* @return
|
90
|
101
|
*/
|
91
|
102
|
@GetMapping("/wx/customer/{id}")
|
|
103
|
+ @ApiOperation(value = "查询客户详情", notes = "查询客户详情")
|
|
104
|
+ @ApiImplicitParams({
|
|
105
|
+ @ApiImplicitParam(dataTypeClass = String.class, name = "id", paramType = "path",value = "搜索关键字,目前仅支持姓名")
|
|
106
|
+ })
|
92
|
107
|
public ResponseBean getCustDetail(@PathVariable String id) {
|
93
|
108
|
if (null == id || "".equals(id.trim())) {
|
94
|
109
|
return ResponseBean.error("请求地址错误", ResponseBean.ERROR_ILLEGAL_PARAMS);
|
|
@@ -103,6 +118,10 @@ public class TaRecommendCustomerController extends BaseController {
|
103
|
118
|
* @return
|
104
|
119
|
*/
|
105
|
120
|
@PostMapping("/wx/customer/edit")
|
|
121
|
+ @ApiOperation(value = "客户编辑", notes = "客户编辑")
|
|
122
|
+ @ApiImplicitParams({
|
|
123
|
+ @ApiImplicitParam(dataTypeClass = String.class, name = "id", paramType = "path",value = "搜索关键字,目前仅支持姓名")
|
|
124
|
+ })
|
106
|
125
|
public ResponseBean updateCust(@RequestBody String paramStr) {
|
107
|
126
|
return taRecommendCustomerService.updateCustByJSON(paramStr);
|
108
|
127
|
}
|
|
@@ -478,6 +497,9 @@ public class TaRecommendCustomerController extends BaseController {
|
478
|
497
|
taRecommendCustomer.setVerifyStatus(verifyStatus);
|
479
|
498
|
if(!StringUtils.isEmpty(verifyRemark)){
|
480
|
499
|
taRecommendCustomer.setVerifyRemark(verifyRemark);
|
|
500
|
+ if(CommConstant.CUSTOMER_REPORT.equals(taRecommendCustomer.getReportRecommendStatus())){
|
|
501
|
+ taRecommendCustomer.setRealtyConsultant(taRecommendCustomer.getRecommendPerson());
|
|
502
|
+ }
|
481
|
503
|
}
|
482
|
504
|
if (taRecommendCustomerService.updateById(taRecommendCustomer)){
|
483
|
505
|
|