buzhanyi hace 1 año
padre
commit
355a3a79c1

+ 1 - 2
purchase-admin/src/main/java/com/ozs/web/controller/plan/MonthlyReconciliationController.java

@@ -69,8 +69,7 @@ public class MonthlyReconciliationController extends BaseController {
         vo.setRoleFlay(false);
         // 添加数据权限
         List<String> roleKeys = getLoginUser().getUser().getRoles().stream().map(SysRole::getRoleKey).collect(Collectors.toList());
-        if (roleKeys.contains(Constants.PURCHASING_MANAGEMENT)
-                || roleKeys.contains(Constants.PURCHASE_SERVICES)) {
+        if (roleKeys.contains(Constants.PURCHASING_MANAGEMENT)) {
             vo.setRoleFlay(true);
         }
         // 分页查询

+ 1 - 3
purchase-system/src/main/java/com/ozs/plan/mapper/MonthlyReconciliationMapper.java

@@ -16,9 +16,7 @@ public interface MonthlyReconciliationMapper extends BaseMapper<MonthlyReconcili
     @Select("select p.* from " +
             " pm_demand p left join plan_practical pp on p.plan_id = pp.plan_practical_id" +
             " left join pm_audit_dept_ref r  on pp.plan_practical_id = r.ref_id   " +
-            " where ( #{isAdmin} " +
-            " or if(#{roleFlay},(r.dept_id = #{deptId} and  r.ref_type = 1), p.purchase_dept_id = #{deptId}  ) " +
-            " )" +
+            " where ( #{isAdmin} or p.purchase_dept_id = #{deptId} )" +
             " and (#{projectName} is null  or   p.project_name like concat('%',#{projectName},'%'))  " +
             " and (#{purchaseServices} is null  or   p.purchase_services = #{purchaseServices})  " +
             " and (#{projectStatus} is null  or   p.project_status = #{projectStatus})  " +