|
|
@@ -2,8 +2,8 @@ package com.wx.blink.backend.controller;
|
|
|
|
|
|
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;
|
|
|
+import com.wx.blink.backend.domain.qry.BlinkCustomerVisitPlanQry;
|
|
|
+import com.wx.blink.backend.service.*;
|
|
|
import com.wx.blink.base.common.domain.PageResult;
|
|
|
import com.wx.blink.base.common.domain.ResponseDTO;
|
|
|
import com.wx.blink.common.qry.BlinkCustomerQry;
|
|
|
@@ -34,6 +34,14 @@ public class BlinkCustomerController {
|
|
|
private Configuration configuration;
|
|
|
@Resource
|
|
|
private IBlinkCustomerTagService customerTagService;
|
|
|
+ @Resource
|
|
|
+ private IBlinkCustomerMarketTeamService marketTeamService;
|
|
|
+ @Resource
|
|
|
+ private IBlinkCustomerFollowService followService;
|
|
|
+ @Resource
|
|
|
+ private IBlinkCustomerDecisionChainService decisionChainService;
|
|
|
+ @Resource
|
|
|
+ private IBlinkCustomerVisitPlanService visitPlanService;
|
|
|
|
|
|
@Operation(summary = "新增客户")
|
|
|
@PostMapping("/supports/customer/create")
|
|
|
@@ -145,10 +153,110 @@ public class BlinkCustomerController {
|
|
|
public ResponseDTO<List<BlinkCustomerTagVO>> customerTagGetList(@PathVariable String customerId) {
|
|
|
return ResponseDTO.ok(customerTagService.getCustomerTagList(customerId));
|
|
|
}
|
|
|
- //---------------------------------相关tab页查询-----------------------------------//
|
|
|
+ //---------------------------------相关tab页内容-----------------------------------//
|
|
|
@Operation(summary = "获取客户关联公司列表")
|
|
|
@GetMapping(value = "/supports/customer/relatedCompany/{customerId}")
|
|
|
public ResponseDTO<List<BlinkCustomerVO>> getRelatedCompanyById(@PathVariable String customerId) {
|
|
|
return ResponseDTO.ok(customerService.getRelatedCompanyById(customerId));
|
|
|
}
|
|
|
+
|
|
|
+ @Operation(summary = "客户营销团队新增/修改")
|
|
|
+ @PostMapping(value = "/supports/customer/marketTeam/addOrUpdate")
|
|
|
+ public ResponseDTO customerTagAddOrUpdate(@RequestBody BlinkCustomerMarketTeamVO vo) {
|
|
|
+ marketTeamService.addOrUpdate(vo);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "客户营销团队移除")
|
|
|
+ @PostMapping(value = "/supports/customer/marketTeam/deleteById")
|
|
|
+ public ResponseDTO deleteById(@RequestBody BlinkCustomerMarketTeamVO vo) {
|
|
|
+ marketTeamService.deleteById(vo.getId());
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "查询客户营销团队")
|
|
|
+ @GetMapping(value = "/supports/customer/getMarketTeamListByCustomerId/{customerId}")
|
|
|
+ public ResponseDTO<List<BlinkCustomerMarketTeamVO>> getMarketTeamListByCustomerId(@PathVariable String customerId) {
|
|
|
+ return ResponseDTO.ok(marketTeamService.getListByCustomerId(customerId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "客户跟进情况新增/修改")
|
|
|
+ @PostMapping(value = "/supports/customer/follow/addOrUpdate")
|
|
|
+ public ResponseDTO customerfollowAddOrUpdate(@RequestBody BlinkCustomerFollowVO vo) {
|
|
|
+ followService.addOrUpdate(vo);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+ @Operation(summary = "查询客户跟进情况团队")
|
|
|
+ @GetMapping(value = "/supports/customer/getFollowListByCustomerId/{customerId}")
|
|
|
+ public ResponseDTO<List<BlinkCustomerFollowVO>> getFollowListByCustomerId(@PathVariable String customerId) {
|
|
|
+ return ResponseDTO.ok(followService.getFollowListByCustomerId(customerId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "客户决策链新增/修改")
|
|
|
+ @PostMapping(value = "/supports/customer/decisionChain/addOrUpdate")
|
|
|
+ public ResponseDTO customerDecisionChainAddOrUpdate(@RequestBody BlinkCustomerDecisionChainVO vo) {
|
|
|
+ decisionChainService.addOrUpdate(vo);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "客户决策链移除")
|
|
|
+ @PostMapping(value = "/supports/customer/decisionChain/deleteByCustomerId")
|
|
|
+ public ResponseDTO deleteDecisionChain(@RequestBody BlinkCustomerDecisionChainVO vo) {
|
|
|
+ decisionChainService.delete(vo);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "查询决策链列表")
|
|
|
+ @GetMapping(value = "/supports/customer/getDecisionChainListByCustomerId/{customerId}")
|
|
|
+ public ResponseDTO<List<BlinkCustomerDecisionChainVO>> getDecisionChainListByCusId(@PathVariable String customerId) {
|
|
|
+ return ResponseDTO.ok(decisionChainService.getDecisionChainListByCustomerId(customerId));
|
|
|
+ }
|
|
|
+
|
|
|
+ //---------------------------------------------拜访计划-------------------------------------------------------//
|
|
|
+
|
|
|
+ @Operation(summary = "创建拜访计划")
|
|
|
+ @PostMapping(value = "/supports/customer/visitPlan/add")
|
|
|
+ public ResponseDTO visitPlanAdd(@RequestBody BlinkCustomerVisitPlanVO vo) {
|
|
|
+ visitPlanService.addOrUpdate(vo);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "取消拜访")
|
|
|
+ @PostMapping(value = "/supports/customer/visitPlan/cancel")
|
|
|
+ public ResponseDTO visitPlanCancel(@RequestBody BlinkCustomerVisitPlanVO vo) {
|
|
|
+ visitPlanService.visitCancel(vo);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "拜访完成")
|
|
|
+ @PostMapping(value = "/supports/customer/visitPlan/completed")
|
|
|
+ public ResponseDTO visitPlanCompleted(@RequestBody BlinkCustomerVisitPlanVO vo) {
|
|
|
+ visitPlanService.visitCompleted(vo);
|
|
|
+ return ResponseDTO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "拜访计划日历数据个数查询")
|
|
|
+ @PostMapping(value = "/supports/customer/visitPlan/calendarNum")
|
|
|
+ public ResponseDTO<List<BlinkCustomerVisitPlanCalendarVO>> visitPlanCalendarNum() {
|
|
|
+ return ResponseDTO.ok(visitPlanService.getVisitPlanCalendarNum());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "拜访计划查询列表表头统计数据接口")
|
|
|
+ @PostMapping(value = "/supports/customer/visitPlan/statistics")
|
|
|
+ public ResponseDTO<BlinkCustomerVisitPlanStatisticsVO> visitPlanStatisticsInfo(@RequestBody BlinkCustomerVisitPlanQry qry) {
|
|
|
+ // BlinkCustomerVisitPlanQry qry = new BlinkCustomerVisitPlanQry();
|
|
|
+ return ResponseDTO.ok(visitPlanService.visitPlanStatisticsInfo(qry));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "查询拜访计划列表")
|
|
|
+ @PostMapping(value = "/supports/customer/visitPlan/queryPage")
|
|
|
+ public ResponseDTO<PageResult<BlinkCustomerVisitPlanVO>> visitPlanQueryPage(@RequestBody BlinkCustomerVisitPlanQry qry) {
|
|
|
+ return ResponseDTO.ok(visitPlanService.visitPlanQueryPage(qry));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "获取拜访计划详细信息")
|
|
|
+ @GetMapping(value = "/supports/customer/visitPlan/{id}")
|
|
|
+ public ResponseDTO<BlinkCustomerVisitPlanVO> visitPlanSingleQuery(@PathVariable String id) {
|
|
|
+ return ResponseDTO.ok(visitPlanService.visitPlanSingleQuery(id));
|
|
|
+ }
|
|
|
}
|