|
@@ -124,7 +124,7 @@ public class AccountRequestFundsServiceImpl extends ServiceImpl<AccountRequestFu
|
|
|
DynamicDataSourceContextHolder.push(SourceConstant.COMMON);
|
|
|
//查询归属公司的名称
|
|
|
Corporation corporation = corporationService.getById(accountRequestFundsVo.getCorporationId());
|
|
|
- if (ObjectUtil.isNotEmpty(corporation)){
|
|
|
+ if (ObjectUtil.isEmpty(corporation)){
|
|
|
throw new ServiceException("没有找到归属公司信息");
|
|
|
}
|
|
|
accountRequestFundsVo.setCorporationName(corporation.getName());
|
|
@@ -133,7 +133,7 @@ public class AccountRequestFundsServiceImpl extends ServiceImpl<AccountRequestFu
|
|
|
DynamicDataSourceContextHolder.push(SourceConstant.BASE);
|
|
|
//查询部门名称信息
|
|
|
SysDept sysDept = sysDeptService.getById(accountRequestFundsVo.getDepartmentId());
|
|
|
- if (ObjectUtil.isNotEmpty(sysDept)){
|
|
|
+ if (ObjectUtil.isEmpty(sysDept)){
|
|
|
throw new ServiceException("没有找到归属部门信息");
|
|
|
}
|
|
|
accountRequestFundsVo.setDeptName(sysDept.getDeptName());
|