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