Commit f654d830 by zhaoxiqing

gsb

parent 810b1d6a
...@@ -6,7 +6,7 @@ class PlatformchannelDao extends Dao { ...@@ -6,7 +6,7 @@ class PlatformchannelDao extends Dao {
} }
async findByamong(params) { async findByamong(params) {
var sql = "SELECT pc.platform_id,pc.channel_id,cm.origin_merchant_id,cm.origin_id,cm.merchant_name from ch_platform_channel pc JOIN ch_channel_merchant cm ON pc.channel_id = cm.channel_id WHERE pc.created_at >='"+params.begin+"' AND pc.created_at <= '"+params.end+"'"; var sql = "SELECT pc.platform_id,pc.channel_id,cm.origin_merchant_id,cm.origin_id,cm.merchant_name,cm.id,cm.contact_mobile from ch_platform_channel pc JOIN ch_channel_merchant cm ON pc.channel_id = cm.channel_id WHERE pc.created_at >='"+params.begin+"' AND pc.created_at <= '"+params.end+"'";
return await this.customQuery(sql) || []; return await this.customQuery(sql) || [];
} }
......
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