Browse Source

部门接口BUG修复

anderx 3 years ago
parent
commit
cc476bfa0d

+ 6 - 1
src/main/java/com/goafanti/order/service/impl/OrderInvoiceServiceImpl.java

@@ -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());