Commit 5cf7e96d161e56fe6c53209bddd1f7a35a2cfc32

Authored by 张志伟
1 parent 6091f818

:fire: feat(*): bug修复

- bug修复
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
... ... @@ -10,7 +10,7 @@
10 10 <relativePath>../pom.xml</relativePath>
11 11 </parent>
12 12 <artifactId>fw-valhalla-sdk</artifactId>
13   - <version>1.3.4</version>
  13 + <version>1.3.5</version>
14 14 <packaging>jar</packaging>
15 15 <name>fw-valhalla-sdk</name>
16 16  
... ...
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 }
... ...
... ... @@ -124,7 +124,7 @@
124 124 <dependency>
125 125 <groupId>cn.fw</groupId>
126 126 <artifactId>fw-valhalla-sdk</artifactId>
127   - <version>1.3.4</version>
  127 + <version>1.3.5</version>
128 128 </dependency>
129 129 <dependency>
130 130 <groupId>cn.fw</groupId>
... ...