|
@@ -81,9 +81,9 @@
|
|
|
insert into post_collection
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="collectionName != null and collectionName != ''">collection_name,</if>
|
|
|
- <if test="collectionImage != null and collectionImage != ''">collection_image,</if>
|
|
|
+ <if test="collectionImage != null ">collection_image,</if>
|
|
|
<if test="collectionDetails != null">collection_details,</if>
|
|
|
- <if test="collection3dimage != null and collection3dimage != ''">collection_3dimage,</if>
|
|
|
+ <if test="collection3dimage != null ">collection_3dimage,</if>
|
|
|
<if test="publisherName != null">publisher_name,</if>
|
|
|
<if test="collectionPrice != null">collection_price,</if>
|
|
|
<if test="collectionCounts != null">collection_counts,</if>
|
|
@@ -93,17 +93,12 @@
|
|
|
<if test="endTime != null">end_time,</if>
|
|
|
<if test="seriesName != null">series_name,</if>
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
- <if test="createBy != null">create_by,</if>
|
|
|
- <if test="createTime != null">create_time,</if>
|
|
|
- <if test="updateBy != null">update_by,</if>
|
|
|
- <if test="updateTime != null">update_time,</if>
|
|
|
- <if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="collectionName != null and collectionName != ''">#{collectionName},</if>
|
|
|
- <if test="collectionImage != null and collectionImage != ''">#{collectionImage},</if>
|
|
|
+ <if test="collectionImage != null ">#{collectionImage},</if>
|
|
|
<if test="collectionDetails != null">#{collectionDetails},</if>
|
|
|
- <if test="collection3dimage != null and collection3dimage != ''">#{collection3dimage},</if>
|
|
|
+ <if test="collection3dimage != null ">#{collection3dimage},</if>
|
|
|
<if test="publisherName != null">#{publisherName},</if>
|
|
|
<if test="collectionPrice != null">#{collectionPrice},</if>
|
|
|
<if test="collectionCounts != null">#{collectionCounts},</if>
|
|
@@ -113,11 +108,6 @@
|
|
|
<if test="endTime != null">#{endTime},</if>
|
|
|
<if test="seriesName != null">#{seriesName},</if>
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
- <if test="createBy != null">#{createBy},</if>
|
|
|
- <if test="createTime != null">#{createTime},</if>
|
|
|
- <if test="updateBy != null">#{updateBy},</if>
|
|
|
- <if test="updateTime != null">#{updateTime},</if>
|
|
|
- <if test="remark != null">#{remark},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<!--修改藏品-->
|
|
@@ -125,9 +115,9 @@
|
|
|
update post_collection
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="collectionName != null and collectionName != ''">collection_name = #{collectionName},</if>
|
|
|
- <if test="collectionImage != null and collectionImage != ''">collection_image = #{collectionImage},</if>
|
|
|
+ <if test="collectionImage != null ">collection_image = #{collectionImage},</if>
|
|
|
<if test="collectionDetails != null">collection_details = #{collectionDetails},</if>
|
|
|
- <if test="collection3dimage != null and collection3dimage != ''">collection_3dimage = #{collection3dimage},</if>
|
|
|
+ <if test="collection3dimage != null ">collection_3dimage = #{collection3dimage},</if>
|
|
|
<if test="publisherName != null">publisher_name = #{publisherName},</if>
|
|
|
<if test="collectionPrice != null">collection_price = #{collectionPrice},</if>
|
|
|
<if test="collectionCounts != null">collection_counts = #{collectionCounts},</if>
|
|
@@ -137,11 +127,6 @@
|
|
|
<if test="endTime != null">end_time = #{endTime},</if>
|
|
|
<if test="seriesName != null">series_name = #{seriesName},</if>
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
- <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
- <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
- <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
- <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
- <if test="remark != null">remark = #{remark},</if>
|
|
|
</trim>
|
|
|
where collection_id = #{collectionId}
|
|
|
</update>
|