Commit 4f92d9290b7269627648b82b0a40b037ee57cebc
1 parent
38443fbb
bug 修复
Showing
2 changed files
with
9 additions
and
3 deletions
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/bus/pub/PubFollowBizService.java
... | ... | @@ -241,9 +241,14 @@ public class PubFollowBizService { |
241 | 241 | PublicPool publicPool = createPublicPool(customer); |
242 | 242 | publicPoolService.save(publicPool); |
243 | 243 | stammkundePoolService.reject(customer.getId(), customer.getGroupId(), DefeatReasonEnum.RC); |
244 | - customer.setAdviserId(null); | |
245 | - customer.setShopId(null); | |
246 | - customerService.updateById(customer); | |
244 | + | |
245 | + customerService.update(Wrappers.<Customer>lambdaUpdate() | |
246 | + .set(Customer::getTemporary, null) | |
247 | + .set(Customer::getShopId, null) | |
248 | + .set(Customer::getAdviserId, null) | |
249 | + .eq(Customer::getId, customer.getId()) | |
250 | + ); | |
251 | + | |
247 | 252 | } |
248 | 253 | |
249 | 254 | private PublicPool createPublicPool(Customer customer) { | ... | ... |
fw-valhalla-service/src/main/java/cn/fw/valhalla/service/data/impl/CustomerServiceImpl.java
... | ... | @@ -144,6 +144,7 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i |
144 | 144 | update(Wrappers.<Customer>lambdaUpdate() |
145 | 145 | .set(Customer::getAdviserId, userId) |
146 | 146 | .set(Customer::getShopId, shopId) |
147 | + .set(Customer::getTemporary, Boolean.TRUE) | |
147 | 148 | .eq(Customer::getYn, Boolean.TRUE) |
148 | 149 | .eq(Customer::getGroupId, groupId) |
149 | 150 | .in(Customer::getFrameNo, vinList) | ... | ... |