Commit 942ca790 by 王昆

gbs

parent 41f11970
...@@ -69,6 +69,9 @@ class ActionAPI extends APIBase { ...@@ -69,6 +69,9 @@ class ActionAPI extends APIBase {
case "itemByIds": case "itemByIds":
opResult = await this.storderitemSve.byIds(action_body); opResult = await this.storderitemSve.byIds(action_body);
break; break;
case "updateItemInvoice":
opResult = await this.storderitemSve.updateInvoice(action_body);
break;
default: default:
......
...@@ -36,6 +36,11 @@ class StOrderItemDao extends Dao { ...@@ -36,6 +36,11 @@ class StOrderItemDao extends Dao {
await this.customUpdate(sql, params, t); await this.customUpdate(sql, params, t);
} }
async updateInvoice(params, t) {
let sql = "UPDATE st_order_item SET saas_invoice_id = :saas_invoice_id WHERE id IN (:ids) ";
await this.customUpdate(sql, params, t);
}
async countItems(params, t) { async countItems(params, t) {
let sql = "SELECT count(1) AS num FROM st_order_item WHERE order_id = :order_id AND trade_status = :trade_status"; let sql = "SELECT count(1) AS num FROM st_order_item WHERE order_id = :order_id AND trade_status = :trade_status";
let list = await this.customQuery(sql, params, t); let list = await this.customQuery(sql, params, t);
......
...@@ -65,6 +65,10 @@ class StOrderItemService extends ServiceBase { ...@@ -65,6 +65,10 @@ class StOrderItemService extends ServiceBase {
} }
async tradeOnlineCB(params) { async tradeOnlineCB(params) {
} }
async updateInvoice(params) {
let rs = await this.dao.updateInvoice(params);
return system.getResult(rs);
}
async byIds(params) { async byIds(params) {
let list = await this.dao.byIds(params); let list = await this.dao.byIds(params);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment