|
@@ -2109,19 +2109,19 @@ public class DyoaHistoryServiceImpl implements IDyoaHistoryService{
|
|
for (OrderFund orderFund : list){
|
|
for (OrderFund orderFund : list){
|
|
if (orderFund.getBusinessType().equals(PERSONAL_BUSINESS.name())){
|
|
if (orderFund.getBusinessType().equals(PERSONAL_BUSINESS.name())){
|
|
Personal p = personalService.getOne(new LambdaQueryWrapper<Personal>().eq(BaseEntity::getId, orderFund.getBusinessId()).select(Personal::getClientManagerId, BaseEntity::getId));
|
|
Personal p = personalService.getOne(new LambdaQueryWrapper<Personal>().eq(BaseEntity::getId, orderFund.getBusinessId()).select(Personal::getClientManagerId, BaseEntity::getId));
|
|
- if (p!=null){
|
|
|
|
|
|
+ if (p!=null && orderFund.getClientManagerId()==null){
|
|
orderFundService.update(new LambdaUpdateWrapper<OrderFund>().set(OrderFund::getClientManagerId,p.getClientManagerId()).eq(BaseEntity::getId,orderFund.getId()));
|
|
orderFundService.update(new LambdaUpdateWrapper<OrderFund>().set(OrderFund::getClientManagerId,p.getClientManagerId()).eq(BaseEntity::getId,orderFund.getId()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (orderFund.getBusinessType().equals(MAJOR_BUSINESS.name())){
|
|
if (orderFund.getBusinessType().equals(MAJOR_BUSINESS.name())){
|
|
Major m = majorServiceImpl.getOne(new LambdaQueryWrapper<Major>().eq(BaseEntity::getId, orderFund.getBusinessId()).select(Major::getClientManagerId, BaseEntity::getId));
|
|
Major m = majorServiceImpl.getOne(new LambdaQueryWrapper<Major>().eq(BaseEntity::getId, orderFund.getBusinessId()).select(Major::getClientManagerId, BaseEntity::getId));
|
|
- if (m!=null){
|
|
|
|
|
|
+ if (m!=null && orderFund.getClientManagerId()==null){
|
|
orderFundService.update(new LambdaUpdateWrapper<OrderFund>().set(OrderFund::getClientManagerId,m.getClientManagerId()).eq(BaseEntity::getId,orderFund.getId()));
|
|
orderFundService.update(new LambdaUpdateWrapper<OrderFund>().set(OrderFund::getClientManagerId,m.getClientManagerId()).eq(BaseEntity::getId,orderFund.getId()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (orderFund.getBusinessType().equals(ASSET_BUSINESS.name())){
|
|
if (orderFund.getBusinessType().equals(ASSET_BUSINESS.name())){
|
|
Assets a = assetsService.getOne(new LambdaQueryWrapper<Assets>().eq(BaseEntity::getId, orderFund.getBusinessId()).select(Assets::getClientManagerId, BaseEntity::getId));
|
|
Assets a = assetsService.getOne(new LambdaQueryWrapper<Assets>().eq(BaseEntity::getId, orderFund.getBusinessId()).select(Assets::getClientManagerId, BaseEntity::getId));
|
|
- if (a!=null){
|
|
|
|
|
|
+ if (a!=null && orderFund.getClientManagerId()==null){
|
|
orderFundService.update(new LambdaUpdateWrapper<OrderFund>().set(OrderFund::getClientManagerId,a.getClientManagerId()).eq(BaseEntity::getId,orderFund.getId()));
|
|
orderFundService.update(new LambdaUpdateWrapper<OrderFund>().set(OrderFund::getClientManagerId,a.getClientManagerId()).eq(BaseEntity::getId,orderFund.getId()));
|
|
}
|
|
}
|
|
}
|
|
}
|