소스 검색

藏品和系列的逻辑删除

zhangxin 2 년 전
부모
커밋
a6053c3e41
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ruoyi-post/src/main/resources/mapper/PostCollectionMapper.xml
  2. 1 0
      ruoyi-post/src/main/resources/mapper/PostSeriesMapper.xml

+ 1 - 0
ruoyi-post/src/main/resources/mapper/PostCollectionMapper.xml

@@ -44,6 +44,7 @@
     <select id="selectPostCollectionList" parameterType="PostCollection" resultMap="PostCollectionResult">
         <include refid="selectPostCollectionVo"/>
         <where>
+            and del_flag = 0
             <if test="collectionName != null  and collectionName != ''">and collection_name like concat('%',
                 #{collectionName}, '%')
             </if>

+ 1 - 0
ruoyi-post/src/main/resources/mapper/PostSeriesMapper.xml

@@ -40,6 +40,7 @@
     <select id="selectPostSeriesList" parameterType="PostSeries" resultMap="PostSeriesResult">
         <include refid="selectPostSeriesVo"/>
         <where>
+            and del_flag = 0
             <if test="seriesName != null  and seriesName != ''">and series_name like concat('%', #{seriesName}, '%')
             </if>
             <if test="collectionCounts != null ">and collection_counts = #{collectionCounts}</if>