瀏覽代碼

通知公告: 查询时默认排除被逻辑删除的

Signed-off-by: hamjin <335908093@qq.com>
hamjin 2 年之前
父節點
當前提交
8991effb62
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ruoyi-system/src/main/resources/mapper/system/PoNoticeMapper.xml

+ 1 - 0
ruoyi-system/src/main/resources/mapper/system/PoNoticeMapper.xml

@@ -64,6 +64,7 @@
                 AND notice_type like concat('%', #{noticeType}, '%')
             </if>
             <if test="delFlag != null">and del_flag = #{delFlag}</if>
+            <if test="delFlag == null">and del_flag = #{0}</if>
         </where>
     </select>