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) {
|
0ce04411
张志伟
|
51
52
|
AppPage<FollowPoolListVO> page = poolBizService.followList(null, queryVO);
return success(page);
|
abc1b038
张志伟
|
53
54
|
}
|
7c9f5c47
张志伟
|
55
56
|
@GetMapping("/public/list")
@IgnoreAuth
|
0ce04411
张志伟
|
57
|
@ControllerMethod("查询公共池列表")
|
41a2b42a
张志伟
|
58
|
public Message<AppPage<PublicPoolVO>> publicList(@CurrentUser LoginAuthBean currentUser, final PublicPoolQueryVO queryVO) {
|
0ce04411
张志伟
|
59
60
|
AppPage<PublicPoolVO> page = poolBizService.publicList(currentUser, queryVO);
return success(page);
|
39e85d50
张志伟
|
61
62
63
|
}
@GetMapping("/stammkunde/own/list")
|
0ce04411
张志伟
|
64
|
@ControllerMethod("查询自己的保有客池列表")
|
39e85d50
张志伟
|
65
|
public Message<AppPage<StammkundePoolVO>> ownStammkundeList(@CurrentUser LoginAuthBean currentUser, final StammkundePoolQueryVO queryVO) {
|
0ce04411
张志伟
|
66
67
|
AppPage<StammkundePoolVO> page = poolBizService.stammkundeList(currentUser, queryVO);
return success(page);
|
7c9f5c47
张志伟
|
68
69
70
71
|
}
@GetMapping("/stammkunde/list")
@IgnoreAuth
|
0ce04411
张志伟
|
72
73
74
75
|
@ControllerMethod("查询保有客池列表")
public Message<AppPage<StammkundePoolVO>> stammkundeList(final StammkundePoolQueryVO queryVO) {
AppPage<StammkundePoolVO> page = poolBizService.stammkundeList(null, queryVO);
return success(page);
|
7c9f5c47
张志伟
|
76
|
}
|
fb44222c
张志伟
事故车跟进逻辑调整
|
77
78
79
|
@GetMapping("/clue/list")
@IgnoreAuth
|
0ce04411
张志伟
|
80
81
82
83
|
@ControllerMethod("查询客户线索池列表")
public Message<AppPage<CustomerCluePoolVO>> clueList(final CustomerCluePoolQueryVO queryVO) {
AppPage<CustomerCluePoolVO> page = poolBizService.clueList(queryVO);
return success(page);
|
fb44222c
张志伟
事故车跟进逻辑调整
|
84
|
}
|
fdf7fb2f
张志伟
|
85
86
87
|
@GetMapping("/clue/summary")
@IgnoreAuth
|
0ce04411
张志伟
|
88
89
90
|
@ControllerMethod("查询客户线索池概况")
public Message<CustomerClueSummaryVO> clueSummary(final CustomerCluePoolQueryVO queryVO) {
return success(poolBizService.summary(queryVO));
|
fdf7fb2f
张志伟
|
91
|
}
|
8c7566e0
张志伟
|
92
|
|
652ffd0e
张志伟
|
93
94
95
96
97
|
/**
* @param queryVO
* @return
* @description
*/
|
b27b4375
张志伟
|
98
|
@GetMapping("/public/clue/own/list")
|
0ce04411
张志伟
|
99
|
@ControllerMethod("查询自己的公共客户池列表")
|
b27b4375
张志伟
|
100
|
public Message<AppPage<PublicCluePoolVO>> ownPublicClueList(@CurrentUser LoginAuthBean currentUser, final PublicCluePoolQueryVO queryVO) {
|
0ce04411
张志伟
|
101
102
|
AppPage<PublicCluePoolVO> page = poolBizService.publicClueList(queryVO, currentUser);
return success(page);
|
b27b4375
张志伟
|
103
104
|
}
|
652ffd0e
张志伟
|
105
106
107
108
109
|
/**
* @param queryVO
* @return
* @description
*/
|
b27b4375
张志伟
|
110
111
|
@GetMapping("/public/clue/list")
@IgnoreAuth
|
0ce04411
张志伟
|
112
113
114
115
|
@ControllerMethod("查询公共客户池列表")
public Message<AppPage<PublicCluePoolVO>> publicClueList(final PublicCluePoolQueryVO queryVO) {
AppPage<PublicCluePoolVO> page = poolBizService.publicClueList(queryVO, null);
return success(page);
|
b27b4375
张志伟
|
116
|
}
|
7c9f5c47
张志伟
|
117
|
}
|