Commit 602f87dd by 孙亚楠

d

parent b7591ff4
......@@ -38,7 +38,7 @@ class SaasMainDao extends Dao {
if (params.saas_id) {
sql.push("AND saas_id = :saas_id");
}
return await this.customQuery(sql, params);
return await this.customQuery(sql.join(" "), params);
}
}
module.exports = SaasMainDao;
......@@ -10,11 +10,11 @@ class SaasMainService extends ServiceBase {
async dics(params) {
let saas_id = Number(this.trim(params.saas_id) || 0);
if (!saas_id) {
return system.getResultSuccess([]);
return system.getResult([]);
}
params.attrs = "id, name";
let list = await this.dao.dics(params);
return system.getResultSuccess(list);
return system.getResult(list);
}
async info(params) {
......
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