|
|
@@ -1,7 +1,6 @@
|
|
|
package com.wx.blink.backend.controller;
|
|
|
|
|
|
-import com.wx.blink.backend.domain.dto.BlinkCustomerHeaderVO;
|
|
|
-import com.wx.blink.backend.domain.dto.BlinkCustomerTagVO;
|
|
|
+import com.wx.blink.backend.domain.dto.*;
|
|
|
import com.wx.blink.backend.domain.qry.BlinkBizFileQry;
|
|
|
import com.wx.blink.backend.service.IBlinkCustomerService;
|
|
|
import com.wx.blink.backend.service.IBlinkCustomerTagService;
|
|
|
@@ -73,6 +72,41 @@ public class BlinkCustomerController {
|
|
|
return customerService.supportsCustomerHeaderSingleQuery(id);
|
|
|
}
|
|
|
|
|
|
+ @Operation(summary = "服务商客户列表")
|
|
|
+ @PostMapping("/supports/customer/providerQueryPage")
|
|
|
+ public ResponseDTO<PageResult<BlinkCustomerVO>> providerQueryPage(@RequestBody BlinkCustomerQry qry) {
|
|
|
+ return ResponseDTO.ok(customerService.providerCustomerQueryPage(qry));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "服务商客户列表表头统计数据接口")
|
|
|
+ @PostMapping(value = "/supports/customer/providerStatistics/info")
|
|
|
+ public ResponseDTO<BlinkCustomerStatisticsVO> providerStatisticsInfo() {
|
|
|
+ BlinkCustomerQry qry = new BlinkCustomerQry();
|
|
|
+ return ResponseDTO.ok(customerService.providerCustomerStatisticsInfo(qry));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "客户黑名单表单获取明细信息")
|
|
|
+ @GetMapping(value = "/supports/customer/blacklist/details/{id}")
|
|
|
+ public ResponseDTO<Map<String,Object>> supportsCustomerBlacklistDetails(@PathVariable String id) {
|
|
|
+ return ResponseDTO.ok(customerService.supportsCustomerBlacklistDetails(id));
|
|
|
+ }
|
|
|
+ @Operation(summary = "客户获取曾用名")
|
|
|
+ @GetMapping(value = "/supports/customer/getUsedName/{id}")
|
|
|
+ public ResponseDTO<List<BlinkCustomerUsedNameVO>> getUsedName(@PathVariable String id) {
|
|
|
+ return ResponseDTO.ok(customerService.getUsedName(id));
|
|
|
+ }
|
|
|
+ @Operation(summary = "客户转移")
|
|
|
+ @PostMapping(value = "/supports/customer/transfer")
|
|
|
+ public ResponseDTO<String> customerTransfer(@RequestBody BlinkCustomerTransferVO vo) {
|
|
|
+ return customerService.customerTransfer(vo);
|
|
|
+ }
|
|
|
+ @Operation(summary = "客户释放公海")
|
|
|
+ @PostMapping(value = "/supports/customer/release")
|
|
|
+ public ResponseDTO<String> customerRelease(@RequestBody BlinkCustomerReleaseVO vo) {
|
|
|
+ return customerService.customerRelease(vo);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
//----------------------------------------------资料------------------------------------------------------------//
|
|
|
@Operation(summary = "添加资料")
|
|
|
@PostMapping("/supports/biz/file/create")
|
|
|
@@ -92,24 +126,6 @@ public class BlinkCustomerController {
|
|
|
return customerService.bizFileDelete(id);
|
|
|
}
|
|
|
|
|
|
- @Operation(summary = "服务商客户列表")
|
|
|
- @PostMapping("/supports/customer/providerQueryPage")
|
|
|
- public ResponseDTO<PageResult<BlinkCustomerVO>> providerQueryPage(@RequestBody BlinkCustomerQry qry) {
|
|
|
- return ResponseDTO.ok(customerService.providerCustomerQueryPage(qry));
|
|
|
- }
|
|
|
-
|
|
|
- @Operation(summary = "服务商客户列表表头统计数据接口")
|
|
|
- @PostMapping(value = "/supports/customer/providerStatistics/info")
|
|
|
- public ResponseDTO<BlinkCustomerStatisticsVO> providerStatisticsInfo() {
|
|
|
- BlinkCustomerQry qry = new BlinkCustomerQry();
|
|
|
- return ResponseDTO.ok(customerService.providerCustomerStatisticsInfo(qry));
|
|
|
- }
|
|
|
-
|
|
|
- @Operation(summary = "客户黑名单表单获取明细信息")
|
|
|
- @GetMapping(value = "/supports/customer/blacklist/details/{id}")
|
|
|
- public ResponseDTO<Map<String,Object>> supportsCustomerBlacklistDetails(@PathVariable String id) {
|
|
|
- return ResponseDTO.ok(customerService.supportsCustomerBlacklistDetails(id));
|
|
|
- }
|
|
|
//------------------------标签----------------------//
|
|
|
@Operation(summary = "客户标签新增/修改")
|
|
|
@PostMapping(value = "/supports/customer/tag/addOrUpdate")
|
|
|
@@ -129,4 +145,5 @@ public class BlinkCustomerController {
|
|
|
public ResponseDTO<List<BlinkCustomerTagVO>> customerTagGetList(@PathVariable String customerId) {
|
|
|
return ResponseDTO.ok(customerTagService.getCustomerTagList(customerId));
|
|
|
}
|
|
|
+ //---------------------------------相关tab页查询-----------------------------------//
|
|
|
}
|