Commit 361bbddba7d1bf56b725be32465df32ffdb39157

Authored by 张志伟
1 parent ccee7886

feature(*): 修复bug

- 修复bug
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 &lt;= #{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 &lt;= #{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
... ... @@ -79,4 +79,5 @@ public class ClueTask extends BaseAuditableTimeEntity&lt;ClueTask, Long&gt; {
79 79 * 已跟进次数
80 80 */
81 81 private Integer times;
  82 + private Integer version;
82 83 }
... ...
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/dto/FollowPoolDTO.java
... ... @@ -103,4 +103,5 @@ public class FollowPoolDTO {
103 103 * 集团id
104 104 */
105 105 private Long groupId;
  106 + private Integer version;
106 107 }
... ...
fw-valhalla-domain/src/main/java/cn/fw/valhalla/domain/vo/pool/FollowPoolListVO.java
... ... @@ -99,6 +99,7 @@ public class FollowPoolListVO {
99 99 * 集团id
100 100 */
101 101 private Long groupId;
  102 + private Integer version;
102 103  
103 104 public String getRemaining() {
104 105 if (Objects.isNull(remaining) || state != 1) {
... ...
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
... ... @@ -264,6 +264,7 @@ public class IRFollowStrategy extends AbstractFollowStrategy {
264 264 }
265 265 clueTask.setFollowShop(shopId);
266 266 clueTask.setFollowUser(userId);
  267 + clueTask.setVersion(2);
267 268 return clueTask;
268 269 }
269 270  
... ...
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);
... ...