buzhanyi 2 years ago
parent
commit
3b7e76c805

+ 2 - 2
purchase-admin/src/main/java/com/ozs/web/controller/home/HomeNoticeController.java

@@ -95,7 +95,7 @@ public class HomeNoticeController extends BaseController {
         if (!SysUser.isAdmin(SecurityUtils.getUserId())) {
             //查出不在季度计划表中的id
             List<Integer> ids = planYearsService.idNotInQuarter();
-            if (ObjectUtils.isEmpty(ids)) {
+            if (!ObjectUtils.isEmpty(ids)) {
                 lw.in(PlanYears::getPlanYearId, ids);
             }
             lw.eq(PlanYears::getPurchaseDeptId, SecurityUtils.getDeptId());
@@ -109,7 +109,7 @@ public class HomeNoticeController extends BaseController {
         if (!SysUser.isAdmin(SecurityUtils.getUserId())) {
             //查出不在项目表中的季度、临时id
             List<Integer> ids = planQuarterService.idNotDemand();
-            if (ObjectUtils.isEmpty(ids)) {
+            if (!ObjectUtils.isEmpty(ids)) {
                 ls.in(PlanQuarter::getPlanPracticalId, ids);
             }
             ls.eq(PlanQuarter::getPurchaseDeptId, SecurityUtils.getDeptId());