Commit afb554ea by 孙亚楠

d

parent b7830e60
...@@ -8,7 +8,16 @@ class DeliverSchemeService extends ServiceBase { ...@@ -8,7 +8,16 @@ class DeliverSchemeService extends ServiceBase {
} }
async dics(params) { async dics(params) {
let list = await this.dao.dics({deliver_id: params.deliver_id, attrs: params.attrs}); let list = [];
if(params.general){
list = await this.dao.findAll({
where:{
deliver_id:null
}
});
}else{
list = await this.dao.dics({deliver_id: params.deliver_id, attrs: params.attrs});
}
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