Commit 02603962 authored by Hsinli's avatar Hsinli

add

parent 679a9a19
Pipeline #13773 passed with stage
in 11 seconds
......@@ -68,16 +68,15 @@ class PreferentialService extends Service {
callrisk: false
}
let filter = {
attributes: ['alias'],
attributes: ['type'],
where: {
valid: 1
}
}
let preferentialList = await ctx.prometheusModel.CreditOrderPreferential.findAll(filter);
ctx.logger.info({ preferentialList: JSON.stringify(preferentialList) });
if (preferentialList !== undefined) {
for (let i in preferentialList) {
if (TypeConfig.hasOwnProperty(preferentialList[i].alias)) {
if (TypeCretonfigFlip.hasOwnProperty(preferentialList[i].type)) {
ret[preferentialList[i].alias] = true;
}
}
......
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