Commit 4488eefa by 孙亚楠

dd

parent cc8ee25c
......@@ -61,11 +61,19 @@ class SaasorderbusinessmenService extends ServiceBase {
*/
async assorderBusinessmenInfo(params){
try {
let where = {};
if(params.merchant_app_user_id){
where.merchant_app_user_id = params.merchant_app_user_id;
}
if(params.merchant_id){
where.merchant_id = params.merchant_id;
}
if(params.name){
where.name = params.name;
}
let res = await this.dao.model.findAll({
where:{
merchant_app_user_id: this.trim(params.merchant_app_user_id),
merchant_id:this.trim(params.merchant_id)
},
where:where,
attributes:params.attrs
});
return system.getResult(res || []);
......
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