Commit 361bbddba7d1bf56b725be32465df32ffdb39157
1 parent
ccee7886
feature(*): 修复bug
- 修复bug
Showing
7 changed files
with
16 additions
and
8 deletions
fw-valhalla-dao/src/main/resources/mapper/ClueTaskMapper.xml
... | ... | @@ -29,6 +29,7 @@ |
29 | 29 | t1.close_time close_time, |
30 | 30 | t1.reason initiative, |
31 | 31 | t1.group_id group_id |
32 | + t1.`version` `version` | |
32 | 33 | FROM clue_task t1 |
33 | 34 | left join follow_clue t6 on t1.clue_id=t6.id |
34 | 35 | left join customer t3 on t6.vin = t3.frame_no and t6.group_id = t3.group_id and t3.yn=1 |
... | ... | @@ -163,14 +164,14 @@ |
163 | 164 | </if> |
164 | 165 | <if test="condition.closeTime1 !=null or condition.closeTime2 !=null"> |
165 | 166 | and ( t1.close_time is null or ( |
166 | - <trim prefixOverrides="and"> | |
167 | - <if test="condition.closeTime1 !=null"> | |
168 | - and t1.close_time >= #{condition.closeTime1} | |
169 | - </if> | |
170 | - <if test="condition.closeTime2 !=null"> | |
171 | - and t1.close_time <= #{condition.closeTime2} | |
172 | - </if> | |
173 | - </trim> | |
167 | + <trim prefixOverrides="and"> | |
168 | + <if test="condition.closeTime1 !=null"> | |
169 | + and t1.close_time >= #{condition.closeTime1} | |
170 | + </if> | |
171 | + <if test="condition.closeTime2 !=null"> | |
172 | + and t1.close_time <= #{condition.closeTime2} | |
173 | + </if> | |
174 | + </trim> | |
174 | 175 | )) |
175 | 176 | </if> |
176 | 177 | <if test="condition.redistribution !=null"> | ... | ... |
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/db/follow/ClueTask.java
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/dto/FollowPoolDTO.java
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/vo/pool/FollowPoolListVO.java
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/AbstractFollowStrategy.java
... | ... | @@ -666,6 +666,7 @@ public abstract class AbstractFollowStrategy implements FollowStrategy { |
666 | 666 | } |
667 | 667 | clueTask.setFollowShop(shopId); |
668 | 668 | clueTask.setFollowUser(userId); |
669 | + clueTask.setVersion(2); | |
669 | 670 | return clueTask; |
670 | 671 | } |
671 | 672 | |
... | ... | @@ -735,6 +736,7 @@ public abstract class AbstractFollowStrategy implements FollowStrategy { |
735 | 736 | } |
736 | 737 | redistributionTask.setGroupId(clue.getGroupId()); |
737 | 738 | redistributionTask.setRpcSuccess(Boolean.FALSE); |
739 | + redistributionTask.setVersion(2); | |
738 | 740 | clueTaskService.save(redistributionTask); |
739 | 741 | FollowInitDTO followInitDTO = creteRedistributionFollowInitDTO(clue, redistributionTask); |
740 | 742 | shirasawaRpcService.changeFollowData(followInitDTO, redistributionTask.getBeginTime().toLocalDate()); | ... | ... |
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/IRFollowStrategy.java
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/PubFollowStrategy.java
... | ... | @@ -121,6 +121,7 @@ public class PubFollowStrategy implements FollowStrategy { |
121 | 121 | clueTask.setFollowShop(pubClue.getShopId()); |
122 | 122 | clueTask.setFollowUser(pubClue.getAdviserId()); |
123 | 123 | clueTask.setFollowUserName(pubClue.getAdviserName()); |
124 | + clueTask.setVersion(2); | |
124 | 125 | clueTaskService.save(clueTask); |
125 | 126 | final FollowInitDTO followInitDTO = creteFollowInitDTO(pubClue, clueTask); |
126 | 127 | shirasawaRpcService.createFollowData(followInitDTO); | ... | ... |