|
@@ -22,7 +22,7 @@
|
|
|
<result property="story" column="story"/>
|
|
|
<result property="grounding" column="grouding"/>
|
|
|
<result property="cochain" column="cochain"/>
|
|
|
- <result property="tetherId" column="tetherId"/>
|
|
|
+ <result property="tetherId" column="tether_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPoCollectionVo">
|
|
@@ -59,14 +59,13 @@
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
<if test="collectionType != null "> and collection_type = #{collectionType}</if>
|
|
|
<if test="total != null "> and total = #{total}</if>
|
|
|
- <if test="image != null and image != ''"> and image = #{image}</if>
|
|
|
<if test="formwork != null and formwork != ''"> and formwork = #{formwork}</if>
|
|
|
<if test="price != null "> and price = #{price}</if>
|
|
|
<if test="publisherName != null "> and publisher_name like concat('%', #{publisherName}, '%')</if>
|
|
|
- <if test="story != null and story != ''"> and story = #{story}</if>
|
|
|
<if test="grounding != null "> and grounding = #{grounding}</if>
|
|
|
<if test="cochain != null "> and cochain = #{cochain}</if>
|
|
|
<if test="tetherId != null "> and tether_id = #{tetherId}</if>
|
|
|
+ <if test="delFlag != null">and del_flag = #{delFlag}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -164,21 +163,24 @@
|
|
|
<if test="story != null and story != ''">story = #{story},</if>
|
|
|
<if test="grouding != null and grouding != ''">grouding = #{grounding},</if>
|
|
|
<if test="cochain != null and cochain != ''">cochain = #{cochain},</if>
|
|
|
- <if test="tetherId != null and tetherId != ''">tetherId = #{tetherId},</if>
|
|
|
+ <if test="tetherId != null and tetherId != ''">tether_id = #{tetherId},</if>
|
|
|
+ <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where collection_id = #{collectionId}
|
|
|
</update>
|
|
|
|
|
|
- <delete id="deletePoCollectionByCollectionId" parameterType="Long">
|
|
|
- delete from po_collection where collection_id = #{collectionId}
|
|
|
- </delete>
|
|
|
+ <update id="deletePoCollectionByCollectionId" parameterType="Long">
|
|
|
+ update po_collection
|
|
|
+ SET del_flag = #{1}
|
|
|
+ where collection_id = #{collectionId}
|
|
|
+ </update>
|
|
|
|
|
|
- <delete id="deletePoCollectionByCollectionIds" parameterType="String">
|
|
|
- delete from po_collection where collection_id in
|
|
|
+ <update id="deletePoCollectionByCollectionIds" parameterType="String">
|
|
|
+ update po_collection SET del_flag = #{1} where collection_id in
|
|
|
<foreach item="collectionId" collection="array" open="(" separator="," close=")">
|
|
|
#{collectionId}
|
|
|
</foreach>
|
|
|
- </delete>
|
|
|
+ </update>
|
|
|
|
|
|
</mapper>
|