|
@@ -379,12 +379,13 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
|
|
|
financialExpenditure.setBatchNo(workOrderId.toString());
|
|
|
financialExpenditure.setFinancialProcessNo(workOrderId.toString());
|
|
|
Employee employee = employeeDao.get(pWorkOrderInfo.getCreator());
|
|
|
+ Integer organId = financialExpenditureDao.getDeptId(pWorkOrderInfo.getDeptId());
|
|
|
+ Organization organization = organizationDao.get(organId);
|
|
|
+ if(organization != null){
|
|
|
+ financialExpenditure.setOrganId(organization.getId());
|
|
|
+ financialExpenditure.setOrganName(organization.getName());
|
|
|
+ }
|
|
|
if(employee != null){
|
|
|
- Organization organization = organizationDao.get(employee.getDeptId());
|
|
|
- if(organization != null){
|
|
|
- financialExpenditure.setOrganId(organization.getId());
|
|
|
- financialExpenditure.setOrganName(organization.getName());
|
|
|
- }
|
|
|
List<Integer> userIds = new ArrayList<>();
|
|
|
userIds.add(employee.getUserId());
|
|
|
List<SimpleUserDto> byIds = employeeDao.findByIds(userIds);
|