Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1212c621
authored
Mar 29, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
指定授权-允许提交空数据以清空用户授权数据
1 parent
eea15d47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
src/main/resources/mapper/VehiclePermitMapper.xml
src/main/resources/mapper/VehiclePermitMapper.xml
View file @
1212c62
...
@@ -74,9 +74,8 @@
...
@@ -74,9 +74,8 @@
</foreach>
</foreach>
</insert>
</insert>
<update
id=
"deleteExistedPermit"
>
<delete
id=
"deleteExistedPermit"
>
update t_vehicle_permit
delete from t_vehicle_permit
set del_flag = -1, updated_date = sysdate()
where del_flag = 0
where del_flag = 0
and content_type = #{contentType}
and content_type = #{contentType}
and receiver_id = #{receiverId}
and receiver_id = #{receiverId}
...
@@ -84,14 +83,12 @@
...
@@ -84,14 +83,12 @@
<foreach
collection=
"contentIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
<foreach
collection=
"contentIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
#{item}
#{item}
</foreach>
</foreach>
</
upda
te>
</
dele
te>
<update
id=
"deletePermitByReceiverId"
>
<delete
id=
"deletePermitByReceiverId"
>
update t_vehicle_permit
delete from t_vehicle_permit
set del_flag = -1,
updated_date = sysdate()
where del_flag = 0
where del_flag = 0
and content_type = #{contentType}
and content_type = #{contentType}
and receiver_id = #{receiverId}
and receiver_id = #{receiverId}
</
upda
te>
</
dele
te>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment