7c9f5c47
张志伟
|
1
2
3
|
package cn.fw.valhalla.controller.app;
import cn.fw.common.page.AppPage;
|
0ce04411
张志伟
|
4
|
import cn.fw.common.web.annotation.ControllerMethod;
|
7c9f5c47
张志伟
|
5
6
7
8
9
10
|
import cn.fw.common.web.auth.LoginAuthBean;
import cn.fw.common.web.auth.annotation.CurrentUser;
import cn.fw.data.base.domain.common.Message;
import cn.fw.security.auth.client.annotation.Authorization;
import cn.fw.security.auth.client.annotation.IgnoreAuth;
import cn.fw.security.auth.client.enums.AuthType;
|
b27b4375
张志伟
|
11
|
import cn.fw.valhalla.domain.query.*;
|
fdf7fb2f
张志伟
|
12
|
import cn.fw.valhalla.domain.vo.pool.*;
|
7c9f5c47
张志伟
|
13
|
import cn.fw.valhalla.service.bus.follow.PoolBizService;
|
7c9f5c47
张志伟
|
14
15
16
17
18
19
20
|
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
|
7c9f5c47
张志伟
|
21
|
import static cn.fw.common.web.util.ResultBuilder.success;
|
7c9f5c47
张志伟
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/**
* @author : kurisu
* @className : StammkundePoolController
* @description : 保有客池
* @date: 2020-11-11 17:26
*/
@Slf4j
@RestController
@Authorization(AuthType.APP)
@RequiredArgsConstructor
@Validated
@RequestMapping("/app/pool")
public class PoolController {
private final PoolBizService poolBizService;
|
7c9f5c47
张志伟
|
38
|
|
abc1b038
张志伟
|
39
40
|
@GetMapping("/follow/own/list")
|
0ce04411
张志伟
|
41
|
@ControllerMethod("查询自己的跟进池列表")
|
abc1b038
张志伟
|
42
|
public Message<AppPage<FollowPoolListVO>> ownFollowList(@CurrentUser LoginAuthBean currentUser, final FollowPoolQueryVO queryVO) {
|
0ce04411
张志伟
|
43
44
|
AppPage<FollowPoolListVO> page = poolBizService.followList(currentUser, queryVO);
return success(page);
|
abc1b038
张志伟
|
45
46
47
48
|
}
@GetMapping("/follow/list")
@IgnoreAuth
|
0ce04411
张志伟
|
49
50
|
@ControllerMethod("查询跟进池列表")
public Message<AppPage<FollowPoolListVO>> followList(final FollowPoolQueryVO queryVO) {
|
3bb11446
张志伟
|
51
|
queryVO.setIgnoreChangeRole(Boolean.TRUE);
|
0ce04411
张志伟
|
52
53
|
AppPage<FollowPoolListVO> page = poolBizService.followList(null, queryVO);
return success(page);
|
abc1b038
张志伟
|
54
55
|
}
|
7c9f5c47
张志伟
|
56
57
|
@GetMapping("/public/list")
@IgnoreAuth
|
0ce04411
张志伟
|
58
|
@ControllerMethod("查询公共池列表")
|
41a2b42a
张志伟
|
59
|
public Message<AppPage<PublicPoolVO>> publicList(@CurrentUser LoginAuthBean currentUser, final PublicPoolQueryVO queryVO) {
|
0ce04411
张志伟
|
60
61
|
AppPage<PublicPoolVO> page = poolBizService.publicList(currentUser, queryVO);
return success(page);
|
39e85d50
张志伟
|
62
63
64
|
}
@GetMapping("/stammkunde/own/list")
|
0ce04411
张志伟
|
65
|
@ControllerMethod("查询自己的保有客池列表")
|
39e85d50
张志伟
|
66
|
public Message<AppPage<StammkundePoolVO>> ownStammkundeList(@CurrentUser LoginAuthBean currentUser, final StammkundePoolQueryVO queryVO) {
|
0ce04411
张志伟
|
67
68
|
AppPage<StammkundePoolVO> page = poolBizService.stammkundeList(currentUser, queryVO);
return success(page);
|
7c9f5c47
张志伟
|
69
70
71
72
|
}
@GetMapping("/stammkunde/list")
@IgnoreAuth
|
0ce04411
张志伟
|
73
74
75
76
|
@ControllerMethod("查询保有客池列表")
public Message<AppPage<StammkundePoolVO>> stammkundeList(final StammkundePoolQueryVO queryVO) {
AppPage<StammkundePoolVO> page = poolBizService.stammkundeList(null, queryVO);
return success(page);
|
7c9f5c47
张志伟
|
77
|
}
|
fb44222c
张志伟
事故车跟进逻辑调整
|
78
79
80
|
@GetMapping("/clue/list")
@IgnoreAuth
|
0ce04411
张志伟
|
81
82
83
84
|
@ControllerMethod("查询客户线索池列表")
public Message<AppPage<CustomerCluePoolVO>> clueList(final CustomerCluePoolQueryVO queryVO) {
AppPage<CustomerCluePoolVO> page = poolBizService.clueList(queryVO);
return success(page);
|
fb44222c
张志伟
事故车跟进逻辑调整
|
85
|
}
|
fdf7fb2f
张志伟
|
86
87
88
|
@GetMapping("/clue/summary")
@IgnoreAuth
|
0ce04411
张志伟
|
89
90
91
|
@ControllerMethod("查询客户线索池概况")
public Message<CustomerClueSummaryVO> clueSummary(final CustomerCluePoolQueryVO queryVO) {
return success(poolBizService.summary(queryVO));
|
fdf7fb2f
张志伟
|
92
|
}
|
8c7566e0
张志伟
|
93
|
|
652ffd0e
张志伟
|
94
95
96
97
98
|
/**
* @param queryVO
* @return
* @description
*/
|
b27b4375
张志伟
|
99
|
@GetMapping("/public/clue/own/list")
|
0ce04411
张志伟
|
100
|
@ControllerMethod("查询自己的公共客户池列表")
|
b27b4375
张志伟
|
101
|
public Message<AppPage<PublicCluePoolVO>> ownPublicClueList(@CurrentUser LoginAuthBean currentUser, final PublicCluePoolQueryVO queryVO) {
|
0ce04411
张志伟
|
102
103
|
AppPage<PublicCluePoolVO> page = poolBizService.publicClueList(queryVO, currentUser);
return success(page);
|
b27b4375
张志伟
|
104
105
|
}
|
652ffd0e
张志伟
|
106
107
108
109
110
|
/**
* @param queryVO
* @return
* @description
*/
|
b27b4375
张志伟
|
111
112
|
@GetMapping("/public/clue/list")
@IgnoreAuth
|
0ce04411
张志伟
|
113
114
115
116
|
@ControllerMethod("查询公共客户池列表")
public Message<AppPage<PublicCluePoolVO>> publicClueList(final PublicCluePoolQueryVO queryVO) {
AppPage<PublicCluePoolVO> page = poolBizService.publicClueList(queryVO, null);
return success(page);
|
b27b4375
张志伟
|
117
|
}
|
7c9f5c47
张志伟
|
118
|
}
|