|
@@ -40,7 +40,7 @@
|
|
|
<select id="selectPostSeriesList" parameterType="PostSeries" resultMap="PostSeriesResult">
|
|
|
<include refid="selectPostSeriesVo"/>
|
|
|
<where>
|
|
|
- and del_flag = 0
|
|
|
+ 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>
|
|
@@ -107,16 +107,16 @@
|
|
|
where series_id = #{seriesId}
|
|
|
</update>
|
|
|
<!--删除套系ID-->
|
|
|
- <delete id="deletePostSeriesBySeriesId" parameterType="Long">
|
|
|
- delete
|
|
|
- from post_series
|
|
|
+ <update id="deletePostSeriesBySeriesId" parameterType="Long">
|
|
|
+ update post_series
|
|
|
+ set del_flag = '1'
|
|
|
where series_id = #{seriesId}
|
|
|
- </delete>
|
|
|
+ </update>
|
|
|
<!--批量删除-->
|
|
|
- <delete id="deletePostSeriesBySeriesIds" parameterType="String">
|
|
|
- delete from post_series where series_id in
|
|
|
+ <update id="deletePostSeriesBySeriesIds" parameterType="String">
|
|
|
+ update post_series set del_flag = '1' where series_id in
|
|
|
<foreach item="seriesId" collection="array" open="(" separator="," close=")">
|
|
|
#{seriesId}
|
|
|
</foreach>
|
|
|
- </delete>
|
|
|
+ </update>
|
|
|
</mapper>
|