|
|
@@ -455,7 +455,7 @@ public class stockbill extends Controller {
|
|
|
querySQLDetail.setWhere("t1.st_stockbillid", st_stockbillids.toJavaList(Long.class));
|
|
|
|
|
|
RowsMap rowsMapDetail = querySQLDetail.query().toRowsMap("st_stockbillid");
|
|
|
-
|
|
|
+ ArrayList<Long> sa_sendrepairids = new ArrayList<>();
|
|
|
ArrayList<String> sqlList = new ArrayList<>();
|
|
|
for (Row row : rows) {
|
|
|
if (!row.getString("type").equals("返修入库")) {
|
|
|
@@ -469,6 +469,7 @@ public class stockbill extends Controller {
|
|
|
}
|
|
|
InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "sa_sendrepair");
|
|
|
long sa_sendrepairid = createTableID("sa_sendrepair");
|
|
|
+ sa_sendrepairids.add(sa_sendrepairid);
|
|
|
insertSQL.setUniqueid(sa_sendrepairid);
|
|
|
insertSQL.setSiteid(siteid);
|
|
|
insertSQL.setValue("billno", createBillCode("sendrepair"));
|
|
|
@@ -508,7 +509,7 @@ public class stockbill extends Controller {
|
|
|
}
|
|
|
dbConnect.runSqlUpdate(sqlList);
|
|
|
|
|
|
- return getSucReturnObject().toString();
|
|
|
+ return getSucReturnObject().setData(sa_sendrepairids).toString();
|
|
|
}
|
|
|
|
|
|
|