Commit 4f92d9290b7269627648b82b0a40b037ee57cebc

Authored by 张志伟
1 parent 38443fbb

bug 修复

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&lt;CustomerMapper, Customer&gt; 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)
... ...