Commit 26c6bc35 by 任晓松

获取支付记录

parent 67e37fa2
...@@ -25,5 +25,11 @@ class OpPayOrder extends APIBase { ...@@ -25,5 +25,11 @@ class OpPayOrder extends APIBase {
var result = await this.orderinfoSve.opOrderPayCallBackChannel(pobj, pobj.appInfo); var result = await this.orderinfoSve.opOrderPayCallBackChannel(pobj, pobj.appInfo);
return result; return result;
} }
//获取支付记录
async getPayRecords(pobj,qobj,req){
let result = await this.orderinfoSve.getPayRecords(pobj);
return result;
}
} }
module.exports = OpPayOrder; module.exports = OpPayOrder;
\ No newline at end of file
...@@ -1912,5 +1912,22 @@ class OrderInfoService extends ServiceBase { ...@@ -1912,5 +1912,22 @@ class OrderInfoService extends ServiceBase {
let result = await this.customQuery(sql,updateParams) let result = await this.customQuery(sql,updateParams)
return system.getResult(result); return system.getResult(result);
} }
//获取支付记录
async getPayRecords(pobj){
const userInfo = pobj.userInfo;
let sql = `select m.sourceOrderNo orderNo,json_extract(o.serviceItemSnapshot,'$.channel_item_name') productName,m.recvAmount totalSum,m.directionType directionType,m.updated_at payTime
from
c_moneyjourney m left join v_order o
on m.sourceOrderNo = o.orderNo
where
m.channelUserId = :channelUserId and m.uapp_id = :uapp_id`
const searchWhere ={
channelUserId : userInfo.channel_userid,
uapp_id:pobj.appInfo.uapp_id
}
let seRet = await this.customQuery(sql,searchWhere);
return system.getResultSuccess(seRet)
}
} }
module.exports = OrderInfoService; module.exports = OrderInfoService;
\ No newline at end of file
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