|
|
@@ -147,7 +147,12 @@ public class OrderInvoiceServiceImpl extends BaseMybatisDao<TOrderInvoiceMapper>
|
|
|
if(o.getDeps()==null){
|
|
|
params.put("deps", aDep);
|
|
|
}else {
|
|
|
- params.put("deps", departmentService.comparePermissions(aDep,o.getDeps()));
|
|
|
+ aDep=departmentService.comparePermissions(aDep,o.getDeps());
|
|
|
+ if (aDep.isEmpty()){
|
|
|
+ return new Pagination<>(1,10,0);
|
|
|
+ }
|
|
|
+ params.put("deps", aDep);
|
|
|
+
|
|
|
}
|
|
|
if(o.getType()!=null)params.put("type", o.getType());
|
|
|
|