Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
6ecb8c19
Commit
6ecb8c19
authored
Mar 25, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql
parent
38c1a1c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
QwSendMsgMapper.xml
...ervice/src/main/resources/mapper/send/QwSendMsgMapper.xml
+7
-10
No files found.
haoban-manage3-service/src/main/resources/mapper/send/QwSendMsgMapper.xml
View file @
6ecb8c19
...
...
@@ -115,27 +115,27 @@
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into tab_qw_send_msg (
id,clerk_id, staff_id, msg_id, send_time, biz_type, wx_enterprise_id, enterprise_id
, delete_flag, create_time, update_time
id,clerk_id, staff_id, msg_id, send_time, biz_type, wx_enterprise_id, enterprise_id
) values (
#{id},#{clerkId}, #{staffId}, #{msgId}, #{sendTime}, #{bizType}, #{wxEnterpriseId}, #{enterpriseId}
, #{deleteFlag}, #{createTime}, #{updateTime}
#{id},#{clerkId}, #{staffId}, #{msgId}, #{sendTime}, #{bizType}, #{wxEnterpriseId}, #{enterpriseId}
)
</insert>
<insert
id=
"insertBatch"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into tab_qw_send_msg (
id,clerk_id, staff_id, msg_id, send_time, biz_type, wx_enterprise_id, enterprise_id
, delete_flag, create_time, update_time
id,clerk_id, staff_id, msg_id, send_time, biz_type, wx_enterprise_id, enterprise_id
) values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{id},#{entity.clerkId}, #{entity.staffId}, #{entity.msgId}, #{entity.sendTime}, #{entity.bizType}, #{entity.wxEnterpriseId}, #{entity.enterpriseId}
, #{entity.deleteFlag}, #{entity.createTime}, #{entity.updateTime}
)
(#{id},#{entity.clerkId}, #{entity.staffId}, #{entity.msgId}, #{entity.sendTime}, #{entity.bizType}, #{entity.wxEnterpriseId}, #{entity.enterpriseId})
</foreach>
</insert>
<insert
id=
"insertOrUpdateBatch"
keyProperty=
"id"
useGeneratedKeys=
"true"
>
insert into tab_qw_send_msg (
id,clerk_id, staff_id, msg_id, send_time, biz_type, wx_enterprise_id, enterprise_id
, delete_flag, create_time, update_time
id,clerk_id, staff_id, msg_id, send_time, biz_type, wx_enterprise_id, enterprise_id
) values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{id},#{entity.clerkId}, #{entity.staffId}, #{entity.msgId}, #{entity.sendTime}, #{entity.bizType}, #{entity.wxEnterpriseId}, #{entity.enterpriseId}
, #{entity.deleteFlag}, #{entity.createTime}, #{entity.updateTime}
)
(#{id},#{entity.clerkId}, #{entity.staffId}, #{entity.msgId}, #{entity.sendTime}, #{entity.bizType}, #{entity.wxEnterpriseId}, #{entity.enterpriseId})
</foreach>
on duplicate key update
id = values(id),
...
...
@@ -145,10 +145,7 @@
send_time = values(send_time),
biz_type = values(biz_type),
wx_enterprise_id = values(wx_enterprise_id),
enterprise_id = values(enterprise_id),
delete_flag = values(delete_flag),
create_time = values(create_time),
update_time = values(update_time)
enterprise_id = values(enterprise_id)
</insert>
<!--通过主键修改数据-->
...
...
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