Commit 369ddb4c by 田超

Merge branch 'feature/updateTime' into 'master'

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

See merge request rays/pcloud-book!1210
parents 228d136f c76cce85
...@@ -1051,7 +1051,7 @@ ...@@ -1051,7 +1051,7 @@
update update
book_adviser book_adviser
set set
is_send_mini_url = #{isSendMiniUrl} is_send_mini_url = #{isSendMiniUrl}, LAST_MODIFIED_DATE = NOW()
where where
BOOK_ID = #{bookId, jdbcType=BIGINT} BOOK_ID = #{bookId, jdbcType=BIGINT}
AND AND
......
...@@ -218,12 +218,12 @@ ...@@ -218,12 +218,12 @@
</select> </select>
<delete id="deleteById" parameterType="java.lang.Long"> <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 where id = #{id,jdbcType=BIGINT} and is_delete = 0
</delete> </delete>
<update id="deleteByBookId" parameterType="map"> <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} where book_id = #{bookId,jdbcType=BIGINT}
and channel_id = #{channelId,jdbcType=BIGINT} and channel_id = #{channelId,jdbcType=BIGINT}
<if test="adviserId != null"> <if test="adviserId != null">
...@@ -233,7 +233,7 @@ ...@@ -233,7 +233,7 @@
</update> </update>
<update id="recoverByBookId" parameterType="map"> <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} where book_id = #{bookId,jdbcType=BIGINT}
and channel_id = #{channelId,jdbcType=BIGINT} and channel_id = #{channelId,jdbcType=BIGINT}
<if test="adviserId != null"> <if test="adviserId != null">
...@@ -243,7 +243,7 @@ ...@@ -243,7 +243,7 @@
</update> </update>
<update id="linkBookGroup" parameterType="com.pcloud.book.group.entity.BookGroup"> <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 where id = #{id,jdbcType=BIGINT} and is_delete = 0
</update> </update>
...@@ -470,7 +470,7 @@ ...@@ -470,7 +470,7 @@
</select> </select>
<update id="updatePersonQrcode" parameterType="map"> <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> </update>
<!--获取社群码基本信息(包括书籍信息,及BookClockInfoId)--> <!--获取社群码基本信息(包括书籍信息,及BookClockInfoId)-->
...@@ -495,7 +495,7 @@ ...@@ -495,7 +495,7 @@
<!--更新是否显示书名--> <!--更新是否显示书名-->
<update id="updateIsShowBookName" parameterType="map"> <update id="updateIsShowBookName" parameterType="map">
update book_group set update book_group set
is_show_book_name=#{isShowBookName} is_show_book_name=#{isShowBookName}, update_time = NOW()
where create_user=#{partyId} where create_user=#{partyId}
</update> </update>
...@@ -729,7 +729,7 @@ ...@@ -729,7 +729,7 @@
<!--更新出版社id--> <!--更新出版社id-->
<update id="updateAgentIdByAdviserId" parameterType="map"> <update id="updateAgentIdByAdviserId" parameterType="map">
update book_group set update book_group set
agent_id=#{agentId} agent_id=#{agentId}, update_time = NOW()
where create_user=#{adviserId} where create_user=#{adviserId}
</update> </update>
...@@ -983,7 +983,7 @@ ...@@ -983,7 +983,7 @@
</select> </select>
<update id="updateSpecialState" parameterType="map"> <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> </update>
...@@ -1025,13 +1025,13 @@ ...@@ -1025,13 +1025,13 @@
<update id="updateSubjectByProLabel" parameterType="map"> <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 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} WHERE g.pro_label_id= #{proLabelId}
</update> </update>
<update id="updateGradeByDepLabel" parameterType="map"> <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 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} WHERE g.dep_label_id=#{depLabelId}
</update> </update>
...@@ -1077,7 +1077,7 @@ ...@@ -1077,7 +1077,7 @@
<update id="updateRelatedBookGroup" parameterType="map"> <update id="updateRelatedBookGroup" parameterType="map">
update book_group update book_group
set related_book_group_id = #{relatedBookGroupId} set related_book_group_id = #{relatedBookGroupId}, update_time = NOW()
where id = #{id} where id = #{id}
</update> </update>
...@@ -1112,7 +1112,7 @@ ...@@ -1112,7 +1112,7 @@
<update id="updateBookGroupOpenWeapp" parameterType="map"> <update id="updateBookGroupOpenWeapp" parameterType="map">
UPDATE book_group UPDATE book_group
SET open_weapp = #{openWeapp} SET open_weapp = #{openWeapp}, update_time = NOW()
WHERE WHERE
id = #{id} id = #{id}
</update> </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