From 40eda099f86b9758e2b39e9f092d39891ae1a93a Mon Sep 17 00:00:00 2001 From: Kurisu Date: Tue, 25 Apr 2023 10:18:45 +0800 Subject: [PATCH] feature(*): 修复事故车跟进的bug --- fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/ACFollowStrategy.java | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/ACFollowStrategy.java b/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/ACFollowStrategy.java index 6078e75..97a7a68 100644 --- a/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/ACFollowStrategy.java +++ b/fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/follow/strategy/impl/ACFollowStrategy.java @@ -10,6 +10,7 @@ import cn.fw.valhalla.domain.db.customer.AccidentPool; import cn.fw.valhalla.domain.db.customer.Customer; import cn.fw.valhalla.domain.db.follow.ClueTask; import cn.fw.valhalla.domain.db.follow.FollowClue; +import cn.fw.valhalla.domain.dto.CustomerDetailDto; import cn.fw.valhalla.domain.enums.*; import cn.fw.valhalla.domain.vo.setting.SettingVO; import cn.fw.valhalla.rpc.ehr.dto.StaffInfoDTO; @@ -124,6 +125,15 @@ public class ACFollowStrategy extends AbstractFollowStrategy { .bizId(followClue.getVin()) .build(); + if (StringUtils.isValid(followClue.getVin())) { + CustomerDetailDto customerDetailDto = customerBizService.queryByFrameNo(followClue.getVin(), followClue.getGroupId()); + if (Objects.nonNull(customerDetailDto)) { + followInitDTO.setCustomerId(customerDetailDto.getId()); + followInitDTO.setCustomerName(customerDetailDto.getName()); + followInitDTO.setMemberId(customerDetailDto.getMemberId()); + } + } + ShopDTO shop = oopService.shop(clueTask.getFollowShop()); if (Objects.nonNull(shop)) { followInitDTO.setShopName(shop.getShopName()); -- libgit2 0.22.2