Commit 5cf7e96d161e56fe6c53209bddd1f7a35a2cfc32
1 parent
6091f818
feat(*): bug修复
- bug修复
Showing
8 changed files
with
53 additions
and
6 deletions
fw-valhalla-dao/src/main/resources/mapper/ClueTaskMapper.xml
... | ... | @@ -104,7 +104,6 @@ |
104 | 104 | </if> |
105 | 105 | <if test="condition.ignoreChangeRole != null"> |
106 | 106 | and (t1.reason is null or t1.reason not in (4)) |
107 | - and t1.redistribution = 0 | |
108 | 107 | </if> |
109 | 108 | </where> |
110 | 109 | <if test="condition.orderString != null and condition.orderString !='' "> |
... | ... | @@ -194,7 +193,6 @@ |
194 | 193 | </if> |
195 | 194 | <if test="condition.ignoreChangeRole != null"> |
196 | 195 | and (t1.reason is null or t1.reason not in (4)) |
197 | - and t1.redistribution = 0 | |
198 | 196 | </if> |
199 | 197 | </where> |
200 | 198 | </select> | ... | ... |
fw-valhalla-sdk/pom.xml
fw-valhalla-sdk/src/main/java/cn/fw/valhalla/sdk/api/FollowApiService.java
... | ... | @@ -70,4 +70,13 @@ public interface FollowApiService { |
70 | 70 | */ |
71 | 71 | @GetMapping("/car/inShop") |
72 | 72 | Message<Void> carInShop(@RequestParam("plateNo") String plateNo, @RequestParam("groupId") Long groupId); |
73 | + | |
74 | + /** | |
75 | + * 查询车辆历史续保跟进人员 | |
76 | + * | |
77 | + * @param vin 车架号 | |
78 | + * @param groupId 集团id | |
79 | + */ | |
80 | + @GetMapping("/ins/follower") | |
81 | + Message<List<Long>> queryInsFollower(@RequestParam("vin") String vin, @RequestParam("groupId") Long groupId); | |
73 | 82 | } |
74 | 83 | \ No newline at end of file | ... | ... |
fw-valhalla-server/src/main/java/cn/fw/valhalla/controller/api/FollowApiServiceImpl.java
... | ... | @@ -94,4 +94,17 @@ public class FollowApiServiceImpl implements FollowApiService { |
94 | 94 | followApiBizService.afterCarInShop(plateNo, groupId); |
95 | 95 | return success(); |
96 | 96 | } |
97 | + | |
98 | + /** | |
99 | + * 查询车辆历史续保跟进人员 | |
100 | + * | |
101 | + * @param vin 车架号 | |
102 | + * @param groupId 集团id | |
103 | + */ | |
104 | + @Override | |
105 | + @GetMapping("/ins/follower") | |
106 | + @ControllerMethod("车辆进站") | |
107 | + public Message<List<Long>> queryInsFollower(@RequestParam("vin") final String vin, @RequestParam("groupId") final Long groupId) { | |
108 | + return success(followApiBizService.queryInsFollower(vin, groupId)); | |
109 | + } | |
97 | 110 | } | ... | ... |
fw-valhalla-server/src/main/java/cn/fw/valhalla/controller/task/OriginDataDealTask.kt
... | ... | @@ -55,7 +55,7 @@ class OriginDataDealTask( |
55 | 55 | val listOps = stringRedisTemplate.boundListOps(reachLogKey) |
56 | 56 | listOps.size()?.takeIf { it > 0 }?.let { |
57 | 57 | while (true) { |
58 | - val dataStr = listOps.leftPop()?.takeIf { StringUtils.isEmpty(it) } | |
58 | + val dataStr = listOps.leftPop() | |
59 | 59 | if (dataStr.isNullOrBlank()) { |
60 | 60 | break |
61 | 61 | } | ... | ... |
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/FollowApiBizService.kt
... | ... | @@ -151,4 +151,31 @@ class FollowApiBizService( |
151 | 151 | followClueService.updateById(this) |
152 | 152 | } |
153 | 153 | } |
154 | + | |
155 | + fun queryInsFollower(vin: String, groupId: Long): List<Long> { | |
156 | + val clueList = followClueService.list( | |
157 | + Wrappers.lambdaQuery<FollowClue>() | |
158 | + .eq(FollowClue::getVin, vin) | |
159 | + .eq(FollowClue::getClueType, FollowTypeEnum.IR) | |
160 | + .`in`( | |
161 | + FollowClue::getClueState, | |
162 | + listOf(ClueStatusEnum.ONGOING, ClueStatusEnum.COMPLETE, ClueStatusEnum.FAILURE) | |
163 | + ) | |
164 | + .eq(FollowClue::getGroupId, groupId) | |
165 | + ) | |
166 | + | |
167 | + if (clueList.isNullOrEmpty()) { | |
168 | + return mutableListOf() | |
169 | + } | |
170 | + val clueIds = clueList.map { it.id } | |
171 | + val taskList = clueTaskService.list( | |
172 | + Wrappers.lambdaQuery<ClueTask>() | |
173 | + .`in`(ClueTask::getClueId, clueIds) | |
174 | + .`in`(ClueTask::getState, TaskStateEnum.DEFEAT, TaskStateEnum.ONGOING) | |
175 | + ) | |
176 | + if (taskList.isNullOrEmpty()) { | |
177 | + return mutableListOf() | |
178 | + } | |
179 | + return taskList.map { it.followUser } | |
180 | + } | |
154 | 181 | } | ... | ... |
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/PoolBizService.java
... | ... | @@ -74,7 +74,7 @@ public class PoolBizService { |
74 | 74 | page.setTotal(total); |
75 | 75 | list = pubCluePoolService.followList(queryVO); |
76 | 76 | } else { |
77 | - queryVO.setIgnoreChangeRole(null); | |
77 | + queryVO.setIgnoreChangeRole(true); | |
78 | 78 | if (Boolean.TRUE.equals(queryVO.getClueDimension())) { |
79 | 79 | prepareClueDimensionQuery(queryVO); |
80 | 80 | } | ... | ... |
pom.xml