Commit e3684963 authored by Hsinli's avatar Hsinli

addd

parent 49ad51d5
Pipeline #13461 passed with stage
in 4 seconds
...@@ -38,7 +38,8 @@ const DeviceConfig = { ...@@ -38,7 +38,8 @@ const DeviceConfig = {
class BlacklistService extends Service { class BlacklistService extends Service {
/** /**
* 黑名单报告 *
* @param {*} id 报告编号
*/ */
async getReport(id) { async getReport(id) {
const { ctx } = this; const { ctx } = this;
...@@ -239,7 +240,7 @@ class BlacklistService extends Service { ...@@ -239,7 +240,7 @@ class BlacklistService extends Service {
} }
//订单是否在有效期内 //订单是否在有效期内
ret.report_valid = await ctx.service.credit.order.getReportValid(id); ret.report_valid = await ctx.service.credit.order.getReportValid(1, id);
return ret; return ret;
} }
......
...@@ -53,14 +53,14 @@ class OrderService extends Service { ...@@ -53,14 +53,14 @@ class OrderService extends Service {
/** /**
* *
* @param {*} type 报告类型(黑名单1通话2) * @param {*} type 报告类型(黑名单1通话2)
* @param {*} orderId 订单编号 * @param {*} reportId 订单编号
*/ */
async getReportValid(type, orderId) { async getReportValid(type, reportId) {
const { ctx } = this; const { ctx } = this;
let valid = 0; let valid = 0;
let orderFilter = { let orderFilter = {
where: { where: {
report_id: orderId, report_id: reportId,
valid: 1 valid: 1
} }
}; };
......
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