diff --git a/src/weaver/interfaces/kr/workflow/action/KrBatchOvertimeCreateAction.java b/src/weaver/interfaces/kr/workflow/action/KrBatchOvertimeCreateAction.java index d8507a5..17b2a29 100644 --- a/src/weaver/interfaces/kr/workflow/action/KrBatchOvertimeCreateAction.java +++ b/src/weaver/interfaces/kr/workflow/action/KrBatchOvertimeCreateAction.java @@ -47,6 +47,7 @@ public class KrBatchOvertimeCreateAction implements Action { DetailTable detailTable = detailTableInfo.getDetailTable()[0]; Row[] rows = detailTable.getRow(); boolean isRun = true; + int index = 1; for (Row row : rows) { if (!isRun) { break; @@ -100,7 +101,7 @@ public class KrBatchOvertimeCreateAction implements Action { Map params = new HashMap<>(); params.put("token", token); params.put("personId", personId); - params.put("billNo", billNo + "-" + row.getId()); + params.put("billNo", billNo + "-" + index); params.put("otType", otType); params.put("otAdjuest", otAdjuest); params.put("beginDate", beginDate); @@ -127,6 +128,7 @@ public class KrBatchOvertimeCreateAction implements Action { requestInfo.getRequestManager().setMessagecontent(jsonObject.getString("msg")); isRun = false; } + index++; } if (isRun) {