Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
c76cce85
Commit
c76cce85
authored
Feb 25, 2021
by
桂前礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [none] book,book_group,book_fund,book_adviser update_time字段检查
parent
228d136f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
BookAdviser.Mapper.xml
...ook/src/main/resources/mapper/book/BookAdviser.Mapper.xml
+1
-1
BookGroupMapper.xml
...-book/src/main/resources/mapper/group/BookGroupMapper.xml
+12
-12
No files found.
pcloud-service-book/src/main/resources/mapper/book/BookAdviser.Mapper.xml
View file @
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
...
...
pcloud-service-book/src/main/resources/mapper/group/BookGroupMapper.xml
View file @
c76cce85
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment