|
|
@@ -377,11 +377,12 @@ public class sendrepair extends Controller {
|
|
|
sqlList.add(
|
|
|
DataContrlLog.createLog(this, "sa_sendrepair", sa_sendrepairid, "反进仓", "送修单反进仓成功").getSQL());
|
|
|
}
|
|
|
+ long st_stockbillid =0;
|
|
|
if(row.getString("disposition").equals("返修") || row.getString("disposition").equals("翻新")){
|
|
|
if(isinstock){
|
|
|
if(StringUtils.isBlank(row.getString("newitemno")) && StringUtils.isBlank(row.getString("newsku"))){
|
|
|
InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "st_stockbill");
|
|
|
- long st_stockbillid = createTableID("st_stockbill");
|
|
|
+ st_stockbillid = createTableID("st_stockbill");
|
|
|
insertSQL.setUniqueid(st_stockbillid);
|
|
|
insertSQL.setSiteid(siteid);
|
|
|
insertSQL.setValue("billno", createBillCode("stockbilla"));
|
|
|
@@ -435,7 +436,7 @@ public class sendrepair extends Controller {
|
|
|
sqlList.addAll(updatefnewmachinecode(isinstock,row,stockRowsMap));
|
|
|
|
|
|
InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "st_stockbill");
|
|
|
- long st_stockbillid = createTableID("st_stockbill");
|
|
|
+ st_stockbillid = createTableID("st_stockbill");
|
|
|
insertSQL.setUniqueid(st_stockbillid);
|
|
|
insertSQL.setSiteid(siteid);
|
|
|
insertSQL.setValue("billno", createBillCode("stockbilla"));
|
|
|
@@ -488,7 +489,7 @@ public class sendrepair extends Controller {
|
|
|
sqlList.addAll(updatefitemno(isinstock,row));
|
|
|
|
|
|
InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "st_stockbill");
|
|
|
- long st_stockbillid = createTableID("st_stockbill");
|
|
|
+ st_stockbillid = createTableID("st_stockbill");
|
|
|
insertSQL.setUniqueid(st_stockbillid);
|
|
|
insertSQL.setSiteid(siteid);
|
|
|
insertSQL.setValue("billno", createBillCode("stockbilla"));
|
|
|
@@ -578,7 +579,7 @@ public class sendrepair extends Controller {
|
|
|
System.err.println(sqlList.toString());
|
|
|
dbConnect.runSqlUpdate(sqlList);
|
|
|
|
|
|
- return getSucReturnObject().toString();
|
|
|
+ return getSucReturnObject().setData(st_stockbillid).toString();
|
|
|
}
|
|
|
|
|
|
@API(title = "审核", apiversion = R.ID2025102509532403.v1.class)
|