Commit 871fa01a authored by Hsinli's avatar Hsinli

addd

parent 660260b4
...@@ -43,6 +43,8 @@ class ApplyService extends Service { ...@@ -43,6 +43,8 @@ class ApplyService extends Service {
let filter = { let filter = {
where: { where: {
user_id: ctx.userId, user_id: ctx.userId,
pay_status: 1,
state: '已支付',
type: 1, type: 1,
valid: 1, valid: 1,
}, },
...@@ -50,16 +52,8 @@ class ApplyService extends Service { ...@@ -50,16 +52,8 @@ class ApplyService extends Service {
} }
let orderInfo = await ctx.prometheusModel.CreditOrder.findOne(filter); let orderInfo = await ctx.prometheusModel.CreditOrder.findOne(filter);
if (orderInfo != null) { if (orderInfo != null) {
let applyFilter = { ret.placeholder.name = orderInfo.name;
where: { ret.placeholder.id_card = orderInfo.id_card;
id: orderInfo.apply_id
}
}
let applyInfo = await ctx.prometheusModel.CreditApply.findOne(applyFilter);
if (applyInfo != null) {
ret.placeholder.name = applyInfo.name;
ret.placeholder.id_card = applyInfo.id_card;
}
} }
return ret; return ret;
} }
......
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