Commit 8b56592709d3554e6cd74daae7bf79a86de32512

Authored by 张志伟
1 parent 791a2f74

:construction: 保有客抽取bug修复

fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/CustomerChangeBizService.java
@@ -330,9 +330,9 @@ public class CustomerChangeBizService extends AbstractCustomerService { @@ -330,9 +330,9 @@ public class CustomerChangeBizService extends AbstractCustomerService {
330 } 330 }
331 if (Objects.isNull(customer.getAdviserId()) && Objects.isNull(customer.getShopId())) { 331 if (Objects.isNull(customer.getAdviserId()) && Objects.isNull(customer.getShopId())) {
332 publicPoolService.removeByCustomerId(customer.getId(), customer.getGroupId()); 332 publicPoolService.removeByCustomerId(customer.getId(), customer.getGroupId());
333 - create(customer, adviserId, true); 333 + create(customer, adviserId, true, shopId);
334 } else { 334 } else {
335 - create(customer, adviserId, false); 335 + create(customer, adviserId, false, shopId);
336 } 336 }
337 return updated; 337 return updated;
338 } 338 }
@@ -514,12 +514,13 @@ public class CustomerChangeBizService extends AbstractCustomerService { @@ -514,12 +514,13 @@ public class CustomerChangeBizService extends AbstractCustomerService {
514 followTaskService.updateBatchById(list); 514 followTaskService.updateBatchById(list);
515 } 515 }
516 516
517 - private void create(Customer customer, Long adviserId, boolean publicPool) { 517 + private void create(Customer customer, Long adviserId, boolean publicPool, Long shopId) {
518 StammkundePool stammkundePool = createSimpleInfo(customer, adviserId); 518 StammkundePool stammkundePool = createSimpleInfo(customer, adviserId);
519 stammkundePool.setSources(StammkundeSourcesEnum.SYSTEMATIC); 519 stammkundePool.setSources(StammkundeSourcesEnum.SYSTEMATIC);
520 if (publicPool) { 520 if (publicPool) {
521 stammkundePool.setSources(StammkundeSourcesEnum.PUBLIC_POOL); 521 stammkundePool.setSources(StammkundeSourcesEnum.PUBLIC_POOL);
522 } 522 }
  523 + stammkundePool.setShopId(shopId);
523 stammkundePool.setPoolStatus(StammkundeStatusEnum.KUNDE); 524 stammkundePool.setPoolStatus(StammkundeStatusEnum.KUNDE);
524 stammkundePool.setAktiv(Boolean.TRUE); 525 stammkundePool.setAktiv(Boolean.TRUE);
525 stammkundePool.setActivationTime(new Date()); 526 stammkundePool.setActivationTime(new Date());