考勤,请假流程节点action类逻辑优化

zm_dev
sy 12 months ago
parent cf271ea653
commit 8e2c9ba0f8

@ -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) {

@ -100,9 +100,11 @@ public class EnterpriseCalendarServiceImpl extends Service implements Enterprise
bs.writeLog("delSign : " + delSign + ", delSql : " + delSql);
//插入新数据
String tableName = "uf_jcl_kq_rlxx";
if (dateInfoList.size() > 0) {
bs.writeLog("入库开始---");
boolean insertSign = CommonUtil.insertBatch(dateInfoList, tableName);
bs.writeLog("insertSign : " + insertSign);
}
return new HashMap<>();
}

Loading…
Cancel
Save