Commit 07ccabd012424d08604d357903b3701b199bc6f9

Authored by 张志伟
2 parents 57b4ad7f 0b867fb9

Merge remote-tracking branch 'origin/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,6 +389,7 @@ public class CustomerChangeBizService extends AbstractCustomerService {
389 if (Objects.isNull(userDTO)) { 389 if (Objects.isNull(userDTO)) {
390 return null; 390 return null;
391 } 391 }
  392 + AffiliationRecord entity = createEntity(customer, userDTO.getUserId(), customer.getShopId());
392 customer.setAdviserId(userDTO.getUserId()); 393 customer.setAdviserId(userDTO.getUserId());
393 customerService.updateById(customer); 394 customerService.updateById(customer);
394 DefeatReasonEnum reasonEnum = DefeatReasonEnum.OT; 395 DefeatReasonEnum reasonEnum = DefeatReasonEnum.OT;
@@ -398,7 +399,6 @@ public class CustomerChangeBizService extends AbstractCustomerService { @@ -398,7 +399,6 @@ public class CustomerChangeBizService extends AbstractCustomerService {
398 if (FollowTypeEnum.RM.equals(task.getType())) { 399 if (FollowTypeEnum.RM.equals(task.getType())) {
399 reasonEnum = DefeatReasonEnum.RM; 400 reasonEnum = DefeatReasonEnum.RM;
400 } 401 }
401 - AffiliationRecord entity = createEntity(customer, userDTO.getUserId(), customer.getShopId());  
402 entity.setReason(reasonEnum.getName()); 402 entity.setReason(reasonEnum.getName());
403 affiliationRecordService.save(entity); 403 affiliationRecordService.save(entity);
404 StammkundeDto stammkundeDto = new StammkundeDto(); 404 StammkundeDto stammkundeDto = new StammkundeDto();