|
|
@@ -144,7 +144,7 @@ public class HkLeaveAuthServ extends Serv {
|
|
|
return;
|
|
|
List<LeaveAuthItemRow> oldItemRowList = selLeaveAuthItemRowList(itemGdba, rcid);
|
|
|
for (LeaveAuthItemRow itemRow : oldItemRowList) {
|
|
|
- Map<String, Object> deleteResult = executeLeaveAuthDeleteForItem(itemGdba, itemRow, true, false);
|
|
|
+ Map<String, Object> deleteResult = executeLeaveAuthDeleteForItem(itemGdba, itemRow, true, false, Map.of());
|
|
|
if (!rdBoolLike(deleteResult.get("deleteConfirmed"))) {
|
|
|
log4j.warn("HkLeaveAuthServ.syncLeaveAuthAfterEndTimeChange() item旧时间窗未能确认回收,itemId={}, rcid={}",
|
|
|
itemRow.itemId, rcid);
|
|
|
@@ -726,7 +726,7 @@ public class HkLeaveAuthServ extends Serv {
|
|
|
markLeaveAuthStageDeleted(itemResult, ctx, new Timestamp(System.currentTimeMillis()));
|
|
|
updLeaveAuthItemRow(gdba, itemRow.itemId, itemResult);
|
|
|
} else {
|
|
|
- itemResult = executeLeaveAuthDeleteForItem(gdba, itemRow, true, false);
|
|
|
+ itemResult = executeLeaveAuthDeleteForItem(gdba, itemRow, true, false, Map.of());
|
|
|
if (!rdBoolLike(itemResult.get("deleteConfirmed")))
|
|
|
allOk = false;
|
|
|
}
|
|
|
@@ -915,6 +915,7 @@ public class HkLeaveAuthServ extends Serv {
|
|
|
if (limit <= 0)
|
|
|
limit = HK_DEF_RECYCLE_LIMIT;
|
|
|
result.put("limit", limit);
|
|
|
+ Map<String, Object> overrideParm = makeReqOverrideParm();
|
|
|
Timestamp now = new Timestamp(System.currentTimeMillis());
|
|
|
result.put("now", makeHkTime(now));
|
|
|
|
|
|
@@ -930,7 +931,7 @@ public class HkLeaveAuthServ extends Serv {
|
|
|
for (LeaveAuthItemRow itemRow : itemRowList) {
|
|
|
Map<String, Object> item;
|
|
|
try {
|
|
|
- item = executeLeaveAuthDeleteForItem(gdba, itemRow, false, true);
|
|
|
+ item = executeLeaveAuthDeleteForItem(gdba, itemRow, false, true, overrideParm);
|
|
|
} catch (Exception e) {
|
|
|
log4j.error("HkLeaveAuthServ.recycleExpiredLeaveAuthResult() item删除异常,itemId={}", itemRow.itemId, e);
|
|
|
item = new LinkedHashMap<>();
|
|
|
@@ -1592,7 +1593,8 @@ public class HkLeaveAuthServ extends Serv {
|
|
|
private static Map<String, Object> executeLeaveAuthDeleteForItem(Db gdba,
|
|
|
LeaveAuthItemRow itemRow,
|
|
|
boolean forceDelete,
|
|
|
- boolean autoTrigger) throws Exception {
|
|
|
+ boolean autoTrigger,
|
|
|
+ Map<String, Object> overrideParm) throws Exception {
|
|
|
Map<String, Object> result = new LinkedHashMap<>();
|
|
|
result.put("ok", true);
|
|
|
result.put("autoTrigger", autoTrigger);
|
|
|
@@ -1658,6 +1660,12 @@ public class HkLeaveAuthServ extends Serv {
|
|
|
updLeaveAuthItemRow(gdba, itemRow.itemId, result);
|
|
|
return result;
|
|
|
}
|
|
|
+ String tagId = rdCfgOrOverride(overrideParm, "tagId", CFG_TAG_ID, "HK_LEAVE_AUTH_TAG_ID", HK_DEF_TAG_ID);
|
|
|
+ if (StringUtils.isNotBlank(tagId))
|
|
|
+ hkConnParm.put("tagId", tagId);
|
|
|
+ result.put("tagId", tagId);
|
|
|
+ result.put("tagIdSource", rdCfgSource(overrideParm, "tagId", CFG_TAG_ID, "HK_LEAVE_AUTH_TAG_ID", HK_DEF_TAG_ID));
|
|
|
+ result.put("hkConn", makeSafeHkConnResp(hkConnParm));
|
|
|
|
|
|
Map<String, Map<String, Object>> personInfoMap = HK_API_CLIENT.loadPersonInfoMapByJobNo(
|
|
|
hkConnParm, List.of(ctx.jobNo));
|