|
|
|
@ -156,14 +156,12 @@ public class AskForLeaveWorkFlowSubmitAction implements Action {
|
|
|
|
|
return Action.FAILURE_AND_CONTINUE;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
log.info("detailTable2 : [{}]", detailTable2);
|
|
|
|
|
|
|
|
|
|
//更新流程明细表2
|
|
|
|
|
String delteSql = "delete from " + detail2TableName + " where mainid=?";
|
|
|
|
|
DbTools.update(delteSql, requestid);
|
|
|
|
|
if (!CommonUtil.insertBatch(detailTable2, detail2TableName)) {
|
|
|
|
|
if (detailTable2.size() > 0 && !CommonUtil.insertBatch(detailTable2, detail2TableName)) {
|
|
|
|
|
//更新流程明细表2失败
|
|
|
|
|
String message = "更新流程明细表2失败";
|
|
|
|
|
log.error(message);
|
|
|
|
@ -172,8 +170,6 @@ public class AskForLeaveWorkFlowSubmitAction implements Action {
|
|
|
|
|
return Action.FAILURE_AND_CONTINUE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//当前假期类型需要校验剩余额度时则更新假期余额在途时长,否则跳过
|
|
|
|
|
if (checkAmountJqIdList.contains(jqlx)) {
|
|
|
|
|
//更新假期余额在途时长
|
|
|
|
|
Map<String, Object> balanceMap = Maps.newHashMap();
|
|
|
|
|
for (Map<String, Object> data : detailTable2) {
|
|
|
|
|