|
|
@@ -1,8 +1,10 @@
|
|
|
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.qry.BlinkBizFileQry;
|
|
|
import com.wx.blink.backend.service.IBlinkCustomerService;
|
|
|
+import com.wx.blink.backend.service.IBlinkCustomerTagService;
|
|
|
import com.wx.blink.base.common.domain.PageResult;
|
|
|
import com.wx.blink.base.common.domain.ResponseDTO;
|
|
|
import com.wx.blink.common.qry.BlinkCustomerQry;
|
|
|
@@ -15,6 +17,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
|
import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@@ -30,6 +33,8 @@ public class BlinkCustomerController {
|
|
|
private IBlinkCustomerService customerService;
|
|
|
@Resource
|
|
|
private Configuration configuration;
|
|
|
+ @Resource
|
|
|
+ private IBlinkCustomerTagService customerTagService;
|
|
|
|
|
|
@Operation(summary = "新增客户")
|
|
|
@PostMapping("/supports/customer/create")
|
|
|
@@ -105,5 +110,23 @@ public class BlinkCustomerController {
|
|
|
public ResponseDTO<Map<String,Object>> supportsCustomerBlacklistDetails(@PathVariable String id) {
|
|
|
return ResponseDTO.ok(customerService.supportsCustomerBlacklistDetails(id));
|
|
|
}
|
|
|
+ //------------------------标签----------------------//
|
|
|
+ @Operation(summary = "客户标签新增/修改")
|
|
|
+ @PostMapping(value = "/supports/customer/tag/addOrUpdate")
|
|
|
+ public ResponseDTO customerTagAddOrUpdate(@RequestBody BlinkCustomerTagVO vo) {
|
|
|
+ customerTagService.addOrUpdate(vo);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+ @Operation(summary = "客户标签删除")
|
|
|
+ @PostMapping(value = "/supports/customer/tag/delete")
|
|
|
+ public ResponseDTO customerTagDelete(@RequestBody BlinkCustomerTagVO vo) {
|
|
|
+ customerTagService.delete(vo);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
|
|
|
+ @Operation(summary = "客户标签查询")
|
|
|
+ @GetMapping(value = "/supports/customer/tag/getList/{customerId}")
|
|
|
+ public ResponseDTO<List<BlinkCustomerTagVO>> customerTagGetList(@PathVariable String customerId) {
|
|
|
+ return ResponseDTO.ok(customerTagService.getCustomerTagList(customerId));
|
|
|
+ }
|
|
|
}
|