康瑞,单据编号BUG修复

kangrui
dxfeng 2 years ago
parent 43dd33d0a2
commit c0375840b4

@ -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<String, Object> 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) {

Loading…
Cancel
Save