|
|
@@ -549,10 +549,11 @@ public class aftersalesmag extends Controller {
|
|
|
}
|
|
|
ArrayList<String> sqlList = new ArrayList<>();
|
|
|
SQLFactory sqlFactoryupdate;
|
|
|
+ long st_stockbillid =0;
|
|
|
Rows departmenthrrows =dbConnect.runSqlQuery("select * from sys_departmenthrid where hrid="+hrid);
|
|
|
if (ischeck) {
|
|
|
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("STOCKBILL8"));
|
|
|
@@ -620,7 +621,7 @@ public class aftersalesmag extends Controller {
|
|
|
sqlFactoryupdate.addParameter("checkby", username);
|
|
|
sqlList.add(sqlFactoryupdate.getSQL());
|
|
|
dbConnect.runSqlUpdate(sqlList);
|
|
|
- return getSucReturnObject().toString();
|
|
|
+ return getSucReturnObject().setData(st_stockbillid).toString();
|
|
|
}
|
|
|
|
|
|
@API(title = "更新退货单退款账户", apiversion = R.ID20230706103703.v1.class)
|