Commit ccee7886ea5796cafbe6b72a7f74e3409e5f99a4
1 parent
4f92d929
feature(*): 修复bug
- 修复bug
Showing
2 changed files
with
9 additions
and
1 deletions
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/CustomerBizService.java
... | ... | @@ -563,6 +563,7 @@ public class CustomerBizService extends AbstractCustomerService { |
563 | 563 | boolean updated = customerService.update(Wrappers.<Customer>lambdaUpdate() |
564 | 564 | .set(Customer::getAdviserId, null) |
565 | 565 | .set(Customer::getShopId, null) |
566 | + .set(Customer::getTemporary, null) | |
566 | 567 | .eq(Customer::getId, detailDto.getId())); |
567 | 568 | if (!updated) { |
568 | 569 | return; |
... | ... | @@ -600,6 +601,7 @@ public class CustomerBizService extends AbstractCustomerService { |
600 | 601 | boolean updated = customerService.update(Wrappers.<Customer>lambdaUpdate() |
601 | 602 | .set(Customer::getAdviserId, null) |
602 | 603 | .set(Customer::getShopId, null) |
604 | + .set(Customer::getTemporary, null) | |
603 | 605 | .eq(Customer::getId, detailDto.getId())); |
604 | 606 | if (!updated) { |
605 | 607 | return; |
... | ... | @@ -821,6 +823,7 @@ public class CustomerBizService extends AbstractCustomerService { |
821 | 823 | customer.setCreateTime(new Date()); |
822 | 824 | customer.setUpdateTime(new Date()); |
823 | 825 | customer.setYn(Boolean.TRUE); |
826 | + customer.setTemporary(Boolean.FALSE); | |
824 | 827 | final SpecDTO spec = oopService.spec(customerParams.getSpecId()); |
825 | 828 | customer.setCarImage(Optional.ofNullable(spec).orElse(new SpecDTO()).getThumbnail()); |
826 | 829 | customer.setShopId(casShopId); |
... | ... | @@ -1021,6 +1024,7 @@ public class CustomerBizService extends AbstractCustomerService { |
1021 | 1024 | customerService.update(Wrappers.<Customer>lambdaUpdate() |
1022 | 1025 | .set(Customer::getAdviserId, null) |
1023 | 1026 | .set(Customer::getShopId, null) |
1027 | + .set(Customer::getTemporary, null) | |
1024 | 1028 | .in(Customer::getId, customerIdList)); |
1025 | 1029 | } |
1026 | 1030 | |
... | ... | @@ -1035,6 +1039,7 @@ public class CustomerBizService extends AbstractCustomerService { |
1035 | 1039 | customerService.update(Wrappers.<Customer>lambdaUpdate() |
1036 | 1040 | .set(Customer::getAdviserId, null) |
1037 | 1041 | .set(Customer::getShopId, null) |
1042 | + .set(Customer::getTemporary, null) | |
1038 | 1043 | .eq(Customer::getId, customerId)); |
1039 | 1044 | } |
1040 | 1045 | ... | ... |
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/cust/CustomerChangeBizService.java
... | ... | @@ -351,6 +351,8 @@ public class CustomerChangeBizService extends AbstractCustomerService { |
351 | 351 | publicCluePoolService.removeClue(customer.getId(), adviserId); |
352 | 352 | } |
353 | 353 | } |
354 | + customer.setTemporary(Boolean.FALSE); | |
355 | + customerService.updateById(customer); | |
354 | 356 | stammkundePoolService.updateById(stammkundePool); |
355 | 357 | } |
356 | 358 | return true; |
... | ... | @@ -360,6 +362,7 @@ public class CustomerChangeBizService extends AbstractCustomerService { |
360 | 362 | boolean updated = customerService.update(Wrappers.<Customer>lambdaUpdate() |
361 | 363 | .set(Customer::getAdviserId, adviserId) |
362 | 364 | .set(Customer::getShopId, shopId) |
365 | + .set(Customer::getTemporary, Boolean.FALSE) | |
363 | 366 | .eq(Customer::getId, changeAdviserReq.getCusId())); |
364 | 367 | |
365 | 368 | BV.isTrue(updated, () -> "变更档案服务顾问失败,请重试"); |
... | ... | @@ -497,7 +500,7 @@ public class CustomerChangeBizService extends AbstractCustomerService { |
497 | 500 | stammkundePoolService.save(simpleInfo); |
498 | 501 | commonService.createClue(customer); |
499 | 502 | } |
500 | - | |
503 | + customer.setTemporary(Boolean.FALSE); | |
501 | 504 | final CustomerInfoDto customerInfoDto = new CustomerInfoDto(); |
502 | 505 | BeanUtils.copyProperties(customer, customerInfoDto); |
503 | 506 | customerInfoDto.setConsultantId(customer.getAdviserId()); | ... | ... |