Commit c76cce85 by 桂前礼

feat: [none] book,book_group,book_fund,book_adviser update_time字段检查

parent 228d136f
......@@ -1051,7 +1051,7 @@
update
book_adviser
set
is_send_mini_url = #{isSendMiniUrl}
is_send_mini_url = #{isSendMiniUrl}, LAST_MODIFIED_DATE = NOW()
where
BOOK_ID = #{bookId, jdbcType=BIGINT}
AND
......
......@@ -218,12 +218,12 @@
</select>
<delete id="deleteById" parameterType="java.lang.Long">
update book_group set is_delete = 1
update book_group set is_delete = 1, update_time = NOW()
where id = #{id,jdbcType=BIGINT} and is_delete = 0
</delete>
<update id="deleteByBookId" parameterType="map">
update book_group set is_delete = 1
update book_group set is_delete = 1, update_time = NOW()
where book_id = #{bookId,jdbcType=BIGINT}
and channel_id = #{channelId,jdbcType=BIGINT}
<if test="adviserId != null">
......@@ -233,7 +233,7 @@
</update>
<update id="recoverByBookId" parameterType="map">
update book_group set is_delete = 0
update book_group set is_delete = 0, update_time = NOW()
where book_id = #{bookId,jdbcType=BIGINT}
and channel_id = #{channelId,jdbcType=BIGINT}
<if test="adviserId != null">
......@@ -243,7 +243,7 @@
</update>
<update id="linkBookGroup" parameterType="com.pcloud.book.group.entity.BookGroup">
update book_group set book_id = #{bookId,jdbcType=BIGINT}
update book_group set book_id = #{bookId,jdbcType=BIGINT}, update_time = NOW()
where id = #{id,jdbcType=BIGINT} and is_delete = 0
</update>
......@@ -470,7 +470,7 @@
</select>
<update id="updatePersonQrcode" parameterType="map">
update book_group set personal_qrcode_url = #{newQrcodeUrl} where personal_qrcode_url = #{oldQrcodeUrl}
update book_group set personal_qrcode_url = #{newQrcodeUrl}, update_time = NOW() where personal_qrcode_url = #{oldQrcodeUrl}
</update>
<!--获取社群码基本信息(包括书籍信息,及BookClockInfoId)-->
......@@ -495,7 +495,7 @@
<!--更新是否显示书名-->
<update id="updateIsShowBookName" parameterType="map">
update book_group set
is_show_book_name=#{isShowBookName}
is_show_book_name=#{isShowBookName}, update_time = NOW()
where create_user=#{partyId}
</update>
......@@ -729,7 +729,7 @@
<!--更新出版社id-->
<update id="updateAgentIdByAdviserId" parameterType="map">
update book_group set
agent_id=#{agentId}
agent_id=#{agentId}, update_time = NOW()
where create_user=#{adviserId}
</update>
......@@ -983,7 +983,7 @@
</select>
<update id="updateSpecialState" parameterType="map">
UPDATE book_group SET belong_special_agent = #{belongSpecialAgent} WHERE id = #{id}
UPDATE book_group SET belong_special_agent = #{belongSpecialAgent}, update_time = NOW() WHERE id = #{id}
</update>
......@@ -1025,13 +1025,13 @@
<update id="updateSubjectByProLabel" parameterType="map">
UPDATE book_group g INNER JOIN book_adviser a ON g.book_id=a.BOOK_ID AND g.is_delete=0 AND a.IS_DELETE=0
SET a.SUB_LABEL_ID= #{subLabelId}
SET a.SUB_LABEL_ID= #{subLabelId}, a.LAST_MODIFIED_DATE = NOW()
WHERE g.pro_label_id= #{proLabelId}
</update>
<update id="updateGradeByDepLabel" parameterType="map">
UPDATE book_group g INNER JOIN book_adviser a ON g.book_id=a.BOOK_ID AND g.is_delete=0 AND a.IS_DELETE=0
SET a.GRA_LABEL_ID=#{graLabelId}
SET a.GRA_LABEL_ID=#{graLabelId} a.LAST_MODIFIED_DATE = NOW()
WHERE g.dep_label_id=#{depLabelId}
</update>
......@@ -1077,7 +1077,7 @@
<update id="updateRelatedBookGroup" parameterType="map">
update book_group
set related_book_group_id = #{relatedBookGroupId}
set related_book_group_id = #{relatedBookGroupId}, update_time = NOW()
where id = #{id}
</update>
......@@ -1112,7 +1112,7 @@
<update id="updateBookGroupOpenWeapp" parameterType="map">
UPDATE book_group
SET open_weapp = #{openWeapp}
SET open_weapp = #{openWeapp}, update_time = NOW()
WHERE
id = #{id}
</update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment