Commit 8a1b8507 by 王昆

gsb

parent 32b53617
...@@ -67,7 +67,7 @@ class SaasMerchantDao extends Dao { ...@@ -67,7 +67,7 @@ class SaasMerchantDao extends Dao {
if (params.saas_id) { if (params.saas_id) {
sql.push("AND saas_id = :saas_id"); sql.push("AND saas_id = :saas_id");
} }
return await this.customQuery(sql, params); return await this.customQuery(sql.join(" "), params);
} }
async byChannelId(channelId, attrs) { async byChannelId(channelId, attrs) {
......
...@@ -34,10 +34,6 @@ class SaasMerchantService extends ServiceBase { ...@@ -34,10 +34,6 @@ class SaasMerchantService extends ServiceBase {
} }
async dics(params) { async dics(params) {
let saas_id = Number(this.trim(params.saas_id) || 0);
if (!saas_id) {
return system.getResultSuccess([]);
}
params.attrs = "id, name, short_name"; params.attrs = "id, name, short_name";
let list = await this.dao.dics(params); let list = await this.dao.dics(params);
return system.getResultSuccess(list); return system.getResultSuccess(list);
......
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