|
|
@@ -123,7 +123,8 @@ public class FsCompanyCustomerServiceImpl implements IFsCompanyCustomerService {
|
|
|
//若提交的号码是脱敏的号码,则不需要更新号码
|
|
|
fsCompanyCustomer.setPhone(null);
|
|
|
}
|
|
|
- FsCompanyCustomer oldCustomer = selectFsCompanyCustomerById(fsCompanyCustomer.getId());
|
|
|
+ // 使用行锁查询客户信息(阻塞直到获得锁)
|
|
|
+ FsCompanyCustomer oldCustomer = fsCompanyCustomerMapper.selectByIdForUpdate(fsCompanyCustomer.getId());
|
|
|
if(oldCustomer.getCompanyUserId()!=null){
|
|
|
throw new CustomException("客户已被其它销售认领!请刷新后重试");
|
|
|
}
|