|
@@ -122,21 +122,6 @@
|
|
|
SELECT COUNt(system_id) FROM post_collections where system_id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <select id="selectPostCollectionsSystemId" parameterType="PostCollectionsSystem" resultType="Long">
|
|
|
- select id from post_collections_system
|
|
|
- <where>
|
|
|
- <if test="type != null "> and type = #{type}</if>
|
|
|
- <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
- <if test="startTime != null "> and start_time = #{startTime}</if>
|
|
|
- <if test="endTime != null "> and end_time = #{endTime}</if>
|
|
|
- <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
- <if test="image != null and image != ''"> and image = #{image}</if>
|
|
|
- <if test="giftExchange != null "> and gift_exchange = #{giftExchange}</if>
|
|
|
- <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
|
|
|
- <if test="updateBy != null and updateBy != ''"> and update_by = #{updateBy}</if>
|
|
|
- and del_flag = '0'
|
|
|
- </where>
|
|
|
- </select>
|
|
|
|
|
|
<!--用藏品名称进行查询数量-->
|
|
|
<select id="selectPostCollectionsSystemByName" parameterType="PostCollectionsSystem" resultType="int">
|