康瑞,单据编号BUG修复

kangrui
dxfeng 2 years ago
parent 43dd33d0a2
commit c0375840b4

@ -47,6 +47,7 @@ public class KrBatchOvertimeCreateAction implements Action {
DetailTable detailTable = detailTableInfo.getDetailTable()[0]; DetailTable detailTable = detailTableInfo.getDetailTable()[0];
Row[] rows = detailTable.getRow(); Row[] rows = detailTable.getRow();
boolean isRun = true; boolean isRun = true;
int index = 1;
for (Row row : rows) { for (Row row : rows) {
if (!isRun) { if (!isRun) {
break; break;
@ -100,7 +101,7 @@ public class KrBatchOvertimeCreateAction implements Action {
Map<String, Object> params = new HashMap<>(); Map<String, Object> params = new HashMap<>();
params.put("token", token); params.put("token", token);
params.put("personId", personId); params.put("personId", personId);
params.put("billNo", billNo + "-" + row.getId()); params.put("billNo", billNo + "-" + index);
params.put("otType", otType); params.put("otType", otType);
params.put("otAdjuest", otAdjuest); params.put("otAdjuest", otAdjuest);
params.put("beginDate", beginDate); params.put("beginDate", beginDate);
@ -127,6 +128,7 @@ public class KrBatchOvertimeCreateAction implements Action {
requestInfo.getRequestManager().setMessagecontent(jsonObject.getString("msg")); requestInfo.getRequestManager().setMessagecontent(jsonObject.getString("msg"));
isRun = false; isRun = false;
} }
index++;
} }
if (isRun) { if (isRun) {

Loading…
Cancel
Save