|
@@ -63,7 +63,7 @@ public class icstockbill extends CrmBase {
|
|
|
* @param st_stockbillid
|
|
* @param st_stockbillid
|
|
|
* @throws YosException
|
|
* @throws YosException
|
|
|
*/
|
|
*/
|
|
|
- public void oneAction(long st_stockbillid) throws YosException {
|
|
|
|
|
|
|
+ public JSONObject oneAction(long st_stockbillid) throws YosException {
|
|
|
Rows billRows = new DBConnect().runSqlQuery("select * from st_stockbill where st_stockbillid=" + st_stockbillid);
|
|
Rows billRows = new DBConnect().runSqlQuery("select * from st_stockbill where st_stockbillid=" + st_stockbillid);
|
|
|
if (billRows.isEmpty()) {
|
|
if (billRows.isEmpty()) {
|
|
|
throw new YosException("未找到该出库单");
|
|
throw new YosException("未找到该出库单");
|
|
@@ -94,6 +94,7 @@ public class icstockbill extends CrmBase {
|
|
|
logger.error("销售出库单" + billno + "自动收货失败;" + jsonObject);
|
|
logger.error("销售出库单" + billno + "自动收货失败;" + jsonObject);
|
|
|
new DBConnect().runSqlUpdate("update st_stockbill set autoreceiveerrtimes=autoreceiveerrtimes+1 where st_stockbillid=" + st_stockbillid);
|
|
new DBConnect().runSqlUpdate("update st_stockbill set autoreceiveerrtimes=autoreceiveerrtimes+1 where st_stockbillid=" + st_stockbillid);
|
|
|
}
|
|
}
|
|
|
|
|
+ return jsonObject;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|