Commit 0b867fb90f07838022a6584cc68acf2432e00b7c

Authored by 张志伟
2 parents db733f91 c988d69d

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

fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/CustomerChangeBizService.java
... ... @@ -389,6 +389,7 @@ public class CustomerChangeBizService extends AbstractCustomerService {
389 389 if (Objects.isNull(userDTO)) {
390 390 return null;
391 391 }
  392 + AffiliationRecord entity = createEntity(customer, userDTO.getUserId(), customer.getShopId());
392 393 customer.setAdviserId(userDTO.getUserId());
393 394 customerService.updateById(customer);
394 395 DefeatReasonEnum reasonEnum = DefeatReasonEnum.OT;
... ... @@ -398,7 +399,6 @@ public class CustomerChangeBizService extends AbstractCustomerService {
398 399 if (FollowTypeEnum.RM.equals(task.getType())) {
399 400 reasonEnum = DefeatReasonEnum.RM;
400 401 }
401   - AffiliationRecord entity = createEntity(customer, userDTO.getUserId(), customer.getShopId());
402 402 entity.setReason(reasonEnum.getName());
403 403 affiliationRecordService.save(entity);
404 404 StammkundeDto stammkundeDto = new StammkundeDto();
... ...