Commit 44d903f0 by 孙亚楠

Merge branch 'xggsve-order-dev' of gitlab.gongsibao.com:jiangyong/zhichan into xggsve-order-dev

parents d096e720 60616107
......@@ -46,6 +46,7 @@ class ActionAPI extends APIBase {
case "completedOrder": //完善信息接口
opResult = await this.iborderbaseSve.apiCompletedOrder(action_body);
break;
case "handling": //订单办理接口
opResult = await this.iborderbaseSve.apiHandling(action_body);
break;
......
......@@ -41,6 +41,11 @@ class IborderbaseService extends ServiceBase {
}
try {
let exists = await this.service.findOne({thirdNo: params.thirdNo});
if(exists) {
return system.getResult(null, `订单号【${params.thirdNo}】已存在`);
}
let channel =await this.channelSve.findOne({channelNo: params.channelNo});
if (!channel) {
return system.getResult(null, `渠道${params.channelNo}不存在`);
......@@ -76,7 +81,7 @@ class IborderbaseService extends ServiceBase {
payType: params.payType,
payStatus: "10",
};
payment = await this.paymentSve.create(payment);
payment = await this.paymentSve.create(payment, t);
params.orderpay_id = payment.id;
}
// 将id赋值
......
......@@ -153,8 +153,8 @@ class ServiceBase {
async delete(qobj) {
return this.dao.delete(qobj);
}
async create(qobj) {
return this.dao.create(qobj);
async create(qobj, t) {
return this.dao.create(qobj, t);
}
async update(qobj, tm = null) {
return this.dao.update(qobj, tm);
......
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