Commit 7afd2c30 by 王昆

gsb

parent 2cee0266
......@@ -79,14 +79,14 @@ class SaasOrderDao extends Dao {
if (params.createEnd) {
sql.push("AND t1.created_at <= :createEnd");
}
if (params.merchant_app_user_id) {
sql.push("AND t1.merchant_app_user_id = :merchant_app_user_id");
}
if (params.legal_idno) {
sql.push("AND t2.legal_idno = :legal_idno");
}
if (params.merchant_app_user_id) {
sql.push("AND t2.merchant_app_user_id = :merchant_app_user_id");
}
}
async mapByIds(ids, attrs) {
......
......@@ -27,6 +27,7 @@ class SaasOrderService extends ServiceBase {
order.bminfo = await this.saasorderbminfoDao.getById(params.id);
this.handleDate(order, ["created_at"], null, -8);
await this.setOrderStatus([order]);
return system.getResultSuccess(order);
}
......@@ -164,6 +165,7 @@ class SaasOrderService extends ServiceBase {
price: price,
pay_status: 10,
audit_status: 10,
handle_status: 10,
}
let self = this;
......@@ -435,7 +437,7 @@ class SaasOrderService extends ServiceBase {
async offlinePay(params) {
let id = this.trim(params.id);
let order = await this.dao.findById(id);
if(order.pay_status != "10") {
if (order.pay_status != "10") {
return;
}
......
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