Commit 78febec80ff7c275771195f58b28c28342b6cf80

Authored by 张志伟
1 parent 16361b47

:sparkles: feat(*): 优化售前跟进打电话的判断

- 优化售前跟进打电话的判断
fw-shirasawa-service/src/main/java/cn/fw/shirasawa/service/bus/follow/strategy/AbstractFollowStrategy.java
... ... @@ -758,8 +758,10 @@ public abstract class AbstractFollowStrategy implements FollowStrategy {
758 758 protected void assembleCompleteTelStatus(FollowRecord record, FollowTask task) {
759 759 record.setCompelTel(Boolean.FALSE);
760 760 if (task.getType().equals(FollowTypeEnum.CF) || task.getType().equals(FollowTypeEnum.PF) || task.getType().equals(FollowTypeEnum.AF)) {
  761 + boolean noAF = task.getType().equals(FollowTypeEnum.CF) || task.getType().equals(FollowTypeEnum.PF);
761 762 List<FollowRecord> list = followRecordService.list(Wrappers.<FollowRecord>lambdaQuery()
762   - .eq(FollowRecord::getMemberId, task.getMemberId())
  763 + .eq(!noAF, FollowRecord::getMemberId, task.getMemberId())
  764 + .eq(noAF, FollowRecord::getCustomerId, task.getCustomerId())
763 765 .eq(FollowRecord::getUserId, task.getFollowUser())
764 766 .eq(FollowRecord::getFollowStatus, FollowStatusEnum.CLOSED)
765 767 .eq(FollowRecord::getAddTodo, Boolean.TRUE)
... ...