Commit 68bbad97 by 孙亚楠

d

parent 25b35937
......@@ -17,7 +17,7 @@ class SsmUserDao extends Dao {
sql.push("WHERE deleted_at IS NULL");
this.setSingleCondition(sql, params);
let res = await this.customQuery(sql.join(" "), params);
return res.length==0?null:res[0];
return res.length==0?null:res;
}
/**
......
......@@ -101,7 +101,7 @@ class SsmuserService extends ServiceBase {
* @returns {Promise<void>}
*/
async querySsmUser(params){
if(!params){
if(!params || JSON.stringify(params) === '{}'){
return system.getResult(null, `参数错误 参数:【${JSON.stringify(params)}】`);
}
try{
......
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