huianan 2 years ago
parent
commit
4476c0b631

+ 5 - 10
ruoyi-post/src/main/resources/mapper/PostCollectionMapper.xml

@@ -32,19 +32,14 @@
                start_time,
                end_time,
                series_name,
-               del_flag,
-               create_by,
-               create_time,
-               update_by,
-               update_time,
-               remark
+               del_flag
         from post_collection
+        where del_flag = '0'
     </sql>
     <!--查询藏品列表-->
     <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>
@@ -63,7 +58,7 @@
     <!--    ID查询藏品-->
     <select id="selectPostCollectionByCollectionId" parameterType="Long" resultMap="PostCollectionResult">
         <include refid="selectPostCollectionVo"/>
-        where collection_id = #{collectionId}
+        and collection_id = #{collectionId}
     </select>
     <!--        添加藏品-->
     <insert id="insertPostCollection" parameterType="PostCollection" useGeneratedKeys="true" keyProperty="collectionId">
@@ -125,13 +120,13 @@
     <!--ID删除藏品-->
     <update id="deletePostCollectionByCollectionId" parameterType="Long">
         update
-        post_collection
+            post_collection
         set del_flag = '1'
         where collection_id = #{collectionId}
     </update>
     <!--批量删除-->
     <update id="deletePostCollectionByCollectionIds" parameterType="String">
-        update  post_collection  set del_flag = '1'  where collection_id in
+        update post_collection set del_flag = '1' where collection_id in
         <foreach item="collectionId" collection="array" open="(" separator="," close=")">
             #{collectionId}
         </foreach>

+ 4 - 9
ruoyi-post/src/main/resources/mapper/PostSeriesMapper.xml

@@ -28,19 +28,14 @@
                exchange_status,
                start_time,
                end_time,
-               del_flag,
-               create_by,
-               create_time,
-               update_by,
-               update_time,
-               remark
+               del_flag
         from post_series
+        where del_flag = '0'
     </sql>
     <!--查询套系列表-->
     <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>
@@ -53,7 +48,7 @@
     <!--套系ID查询-->
     <select id="selectPostSeriesBySeriesId" parameterType="Long" resultMap="PostSeriesResult">
         <include refid="selectPostSeriesVo"/>
-        where series_id = #{seriesId}
+        and series_id = #{seriesId}
     </select>
     <!--添加套系信息-->
     <insert id="insertPostSeries" parameterType="PostSeries" useGeneratedKeys="true" keyProperty="seriesId">
@@ -114,7 +109,7 @@
     </update>
     <!--批量删除-->
     <update id="deletePostSeriesBySeriesIds" parameterType="String">
-        update  post_series  set del_flag = '1'  where series_id in
+        update post_series set del_flag = '1' where series_id in
         <foreach item="seriesId" collection="array" open="(" separator="," close=")">
             #{seriesId}
         </foreach>