Pārlūkot izejas kodu

藏品和系列的逻辑删除

zhangxin 2 gadi atpakaļ
vecāks
revīzija
a6053c3e41

+ 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>