Commit 7f703c1fbee9879d7abe9c681618db740d1b8278

Authored by 张志伟
2 parents fe06a379 869ec3d1

Merge remote-tracking branch 'origin/dev' into test

fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/FollowBizService.java
... ... @@ -214,7 +214,22 @@ public class FollowBizService {
214 214 param.put("recordId", recordId.toString());
215 215 param.put("type", task.getType().getValue().toString());
216 216 flowDto.setParam(param);
217   - List<String> list = Collections.singletonList("跟进类型: " + task.getType().getName());
  217 + String name = "";
  218 + String plate = "";
  219 + FollowStrategy strategy = followMap.get(task.getType());
  220 + Assert.notNull(strategy, "strategy cannot be null");
  221 + FollowDetailVO vo = strategy.followPoolDetail(task);
  222 + if (Objects.nonNull(vo)) {
  223 + name = vo.getName();
  224 + plate = vo.getPlateNo();
  225 + }
  226 + List<String> list = Arrays.asList(
  227 + "申请人: " + currentUser.getUserName(),
  228 + "客户: " + name,
  229 + "车辆: " + plate,
  230 + "跟进类型: " + task.getType().getName(),
  231 + "战败原因: " + reason
  232 + );
218 233 flowDto.setBriefContentList(list);
219 234 String orderNo = flowApproveRpc.initiate(flowDto);
220 235 ApproveRecord approveRecord = new ApproveRecord();
... ...