瀏覽代碼

接受人接受的新闻应该是流程走完的

phoenix 1 年之前
父節點
當前提交
b821bd493c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main/resources/mapper/oa/NewsMapper.xml

+ 4 - 1
src/main/resources/mapper/oa/NewsMapper.xml

@@ -15,7 +15,7 @@
             and t.type_id = #{dto.type}
         </if>
         <if test="dto.type != null and dto.type = 1">
-            and t.wf_status
+            and t.wf_status = 1
         </if>
         <if test="dto.authorName != null and dto.authorName != ''">
             and t.author_name LIKE CONCAT('%',#{dto.authorName},'%')
@@ -48,6 +48,9 @@
         <if test="dto.type != null and dto.type == 2 and dto.loginId != null and dto.loginId > 0">
             and (t1.user_id = #{dto.loginId} or t.send_range = 1)
         </if>
+        <if test="dto.type != null and dto.type = 1">
+            and t.wf_status = 1
+        </if>
         <if test="dto.type != null and dto.type > 0">
             and t.type_id = #{dto.type}
         </if>