Commit 8b56592709d3554e6cd74daae7bf79a86de32512
1 parent
791a2f74
保有客抽取bug修复
Showing
1 changed file
with
4 additions
and
3 deletions
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/CustomerChangeBizService.java
... | ... | @@ -330,9 +330,9 @@ public class CustomerChangeBizService extends AbstractCustomerService { |
330 | 330 | } |
331 | 331 | if (Objects.isNull(customer.getAdviserId()) && Objects.isNull(customer.getShopId())) { |
332 | 332 | publicPoolService.removeByCustomerId(customer.getId(), customer.getGroupId()); |
333 | - create(customer, adviserId, true); | |
333 | + create(customer, adviserId, true, shopId); | |
334 | 334 | } else { |
335 | - create(customer, adviserId, false); | |
335 | + create(customer, adviserId, false, shopId); | |
336 | 336 | } |
337 | 337 | return updated; |
338 | 338 | } |
... | ... | @@ -514,12 +514,13 @@ public class CustomerChangeBizService extends AbstractCustomerService { |
514 | 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 | 518 | StammkundePool stammkundePool = createSimpleInfo(customer, adviserId); |
519 | 519 | stammkundePool.setSources(StammkundeSourcesEnum.SYSTEMATIC); |
520 | 520 | if (publicPool) { |
521 | 521 | stammkundePool.setSources(StammkundeSourcesEnum.PUBLIC_POOL); |
522 | 522 | } |
523 | + stammkundePool.setShopId(shopId); | |
523 | 524 | stammkundePool.setPoolStatus(StammkundeStatusEnum.KUNDE); |
524 | 525 | stammkundePool.setAktiv(Boolean.TRUE); |
525 | 526 | stammkundePool.setActivationTime(new Date()); | ... | ... |