|
@@ -223,6 +223,7 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
|
|
|
return financialExpenditures;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void syncOaPayLog(Integer workOrderId,String fileUrl) throws Exception {
|
|
@@ -246,7 +247,8 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
|
|
|
//课程退费和乐团退费需要单独处理
|
|
|
if(pWorkOrderInfo.getProcess().equals(33) ||
|
|
|
pWorkOrderInfo.getProcess().equals(22) ||
|
|
|
- pWorkOrderInfo.getProcess().equals(19)){
|
|
|
+ pWorkOrderInfo.getProcess().equals(19) ||
|
|
|
+ pWorkOrderInfo.getProcess().equals(28)){
|
|
|
List<FinancialExpenditure> financialExpenditureList = new ArrayList<>();
|
|
|
for (OaInputDto oaInputDto : oaInputDtos) {
|
|
|
if(!"子表单".equals(oaInputDto.getName())){
|
|
@@ -262,6 +264,7 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
|
|
|
financialExpenditure.setBatchNo(pWorkOrderInfo.getId().toString());
|
|
|
financialExpenditure.setFinancialProcessNo(pWorkOrderInfo.getId().toString());
|
|
|
financialExpenditure.setApplyUser(realName);
|
|
|
+ financialExpenditure.setApplyUserId(pWorkOrderInfo.getCreator());
|
|
|
List<OaColumnDto> columns = oaInputDto.getColumns();
|
|
|
if(columns != null && columns.size() > 0){
|
|
|
for (OaColumnDto column : columns) {
|
|
@@ -312,10 +315,10 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
|
|
|
}
|
|
|
continue;
|
|
|
}
|
|
|
- }else if(name.contains("金额")){
|
|
|
+ }else if(name.contains("金额") || name.contains("住宿费") || name.contains("出差补助") || name.contains("交通费")){
|
|
|
Object o = hashMap.get(inputDto.getModel());
|
|
|
if(Objects.nonNull(o) && StringUtils.isNotEmpty(o.toString())){
|
|
|
- financialExpenditure.setAmount(new BigDecimal(Double.parseDouble(o.toString())));
|
|
|
+ financialExpenditure.setAmount(financialExpenditure.getAmount().add(new BigDecimal(Double.parseDouble(o.toString()))));
|
|
|
continue;
|
|
|
}
|
|
|
}else if(name.contains("情况说明")){
|
|
@@ -336,6 +339,12 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
|
|
|
financialExpenditure.setFeeProject(FeeProjectEnum.valueOfDesc(o.toString()));
|
|
|
continue;
|
|
|
}
|
|
|
+ }else if(name.contains("住宿费")){
|
|
|
+ Object o = hashMap.get(inputDto.getModel());
|
|
|
+ if(Objects.nonNull(o) && StringUtils.isNotEmpty(o.toString())){
|
|
|
+ financialExpenditure.setFeeProject(FeeProjectEnum.valueOfDesc(o.toString()));
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -360,7 +369,7 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
|
|
|
groupClassService.cancelGroupOa(returnFeeDto);
|
|
|
}
|
|
|
}
|
|
|
- }else {
|
|
|
+ }else if(pWorkOrderInfo.getProcess().equals(33) || pWorkOrderInfo.getProcess().equals(19)){
|
|
|
//退团
|
|
|
for (FinancialExpenditure financialExpenditure : financialExpenditureList) {
|
|
|
String returnFeeType = financialExpenditure.getReturnFeeType();
|
|
@@ -457,6 +466,9 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
|
|
|
financialExpenditure.setFeeProject(FeeProjectEnum.valueOfDesc(o.toString()));
|
|
|
continue;
|
|
|
}
|
|
|
+ } else if (name.contains("子表单")) {
|
|
|
+ List<OaColumnDto> columns = oaInputDto.getColumns();
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
financialExpenditureDao.insert(financialExpenditure);
|