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 208193b3
authored
Mar 28, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
指定授权bug修复
1 parent
804078c4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/modules/mapper/VehiclePermitMapper.java
src/main/java/cn/com/glsx/admin/modules/model/imports/VinWorkOrderNoImportListener.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/resources/mapper/VehiclePermitMapper.xml
src/main/java/cn/com/glsx/admin/modules/mapper/VehiclePermitMapper.java
View file @
208193b
...
@@ -38,9 +38,10 @@ public interface VehiclePermitMapper extends CommonBaseMapper<VehiclePermit> {
...
@@ -38,9 +38,10 @@ public interface VehiclePermitMapper extends CommonBaseMapper<VehiclePermit> {
* 删除授权数据
* 删除授权数据
*
*
* @param contentIds
* @param contentIds
* @param receiverId
* @param contentType
* @param contentType
* @return
* @return
*/
*/
int
deleteExistedPermit
(
@Param
(
"contentIds"
)
Collection
<
Long
>
contentIds
,
@Param
(
"contentType"
)
Integer
contentType
);
int
deleteExistedPermit
(
@Param
(
"contentIds"
)
Collection
<
Long
>
contentIds
,
@Param
(
"
receiverId"
)
Long
receiverId
,
@Param
(
"
contentType"
)
Integer
contentType
);
}
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/admin/modules/model/imports/VinWorkOrderNoImportListener.java
View file @
208193b
...
@@ -164,7 +164,7 @@ public class VinWorkOrderNoImportListener extends AnalysisEventListener<VinWorkO
...
@@ -164,7 +164,7 @@ public class VinWorkOrderNoImportListener extends AnalysisEventListener<VinWorkO
vwi
.
setVehicleId
(
vehicle
.
getId
());
vwi
.
setVehicleId
(
vehicle
.
getId
());
if
(
vehicleIds
.
contains
(
vehicle
.
getId
()))
{
if
(
vehicleIds
.
contains
(
vehicle
.
getId
()))
{
vwi
.
setImportFailReason
(
"
数据重复
"
);
vwi
.
setImportFailReason
(
"
重复导入数据
"
);
log
.
warn
(
vwi
.
toString
());
log
.
warn
(
vwi
.
toString
());
return
false
;
return
false
;
}
}
...
...
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
208193b
...
@@ -2092,7 +2092,7 @@ public class VehicleService {
...
@@ -2092,7 +2092,7 @@ public class VehicleService {
});
});
if
(
CollectionUtils
.
isNotEmpty
(
delIdList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
delIdList
))
{
int
delCnt
=
vehiclePermitMapper
.
deleteExistedPermit
(
delIdList
,
0
);
int
delCnt
=
vehiclePermitMapper
.
deleteExistedPermit
(
delIdList
,
assignBO
.
getReceiverId
(),
0
);
log
.
info
(
"{}剔除用户[{}] 车辆数据 {}"
,
ShieldContextHolder
.
getUsername
(),
assignBO
.
getReceiverId
(),
delIdList
);
log
.
info
(
"{}剔除用户[{}] 车辆数据 {}"
,
ShieldContextHolder
.
getUsername
(),
assignBO
.
getReceiverId
(),
delIdList
);
}
}
return
0
;
return
0
;
...
...
src/main/resources/mapper/VehiclePermitMapper.xml
View file @
208193b
...
@@ -79,6 +79,7 @@
...
@@ -79,6 +79,7 @@
set del_flag = -1, updated_date = sysdate()
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 content_id in
and content_id in
<foreach
collection=
"contentIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
<foreach
collection=
"contentIds"
separator=
","
open=
"("
close=
")"
item=
"item"
>
#{item}
#{item}
...
...
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