فهرست منبع

新闻查询调整

dzx 8 ماه پیش
والد
کامیت
23bf4cd430
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      src/main/java/com/xjrsoft/module/oa/controller/NewsController.java

+ 3 - 0
src/main/java/com/xjrsoft/module/oa/controller/NewsController.java

@@ -13,6 +13,7 @@ import com.github.yulichang.wrapper.MPJLambdaWrapper;
 import com.xjrsoft.common.annotation.XjrLog;
 import com.xjrsoft.common.constant.GlobalConstant;
 import com.xjrsoft.common.enums.DeleteMark;
+import com.xjrsoft.common.enums.EnabledMark;
 import com.xjrsoft.common.model.result.RT;
 import com.xjrsoft.common.page.ConventPage;
 import com.xjrsoft.common.page.PageOutput;
@@ -375,6 +376,8 @@ public class NewsController {
                         .eq(News::getTypeId, typeId)
                         .eq(News::getStatus, 2)
                         .gt(News::getSendEndDate, LocalDateTime.now())
+                        .eq(News::getDeleteMark, DeleteMark.NODELETE.getCode())
+                        .eq(News::getEnabledMark, EnabledMark.ENABLED.getCode())
                         .eq(News::getWfStatus, 1)
                         //.notInSql(News::getId, "select distinct news_id from xjr_oa_news_relation where read_mark = 1 and user_id = " + StpUtil.getLoginIdAsLong())
                         .orderByDesc(News::getReleaseTime)