From c0375840b45df6057ffb1d2d88ce31c9082a5b3f Mon Sep 17 00:00:00 2001 From: dxfeng Date: Thu, 8 Jun 2023 13:56:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=B7=E7=91=9E=EF=BC=8C=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E7=BC=96=E5=8F=B7BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/workflow/action/KrBatchOvertimeCreateAction.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {