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 a2687147
authored
Oct 21, 2024
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
过滤已结清数据 bug修复
1 parent
f7f76624
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
a268714
...
@@ -2166,7 +2166,13 @@ public class VehicleService extends AbstractCommonService {
...
@@ -2166,7 +2166,13 @@ public class VehicleService extends AbstractCommonService {
//模糊搜索业务数据,反向生成组织+车辆树结构
//模糊搜索业务数据,反向生成组织+车辆树结构
if
(
search
.
getTermType
()
!=
null
&&
StringUtils
.
isNotBlank
(
search
.
getTerm
()))
{
if
(
search
.
getTermType
()
!=
null
&&
StringUtils
.
isNotBlank
(
search
.
getTerm
()))
{
sw
.
start
(
"task1"
);
sw
.
start
(
"task1"
);
//搜索车辆或设备
//搜索车辆或设备 非超管账号需要过滤已结清车辆数据
Integer
excludeSettleFlag
=
null
;
List
<
Long
>
roleIds
=
ShieldContextHolder
.
getRoleIds
();
if
(!
roleIds
.
contains
(
ShieldContextHolder
.
ADMIN_ROLE_ID
))
{
excludeSettleFlag
=
VehicleSettleFlagEnum
.
SETTLED
.
getCode
();
}
search
.
setExcludeSettleFlag
(
excludeSettleFlag
);
List
<
OrgVehicleModel
>
modelList
=
vehicleMapper
.
selectOrgVehicle
(
search
);
List
<
OrgVehicleModel
>
modelList
=
vehicleMapper
.
selectOrgVehicle
(
search
);
if
(
CollectionUtils
.
isEmpty
(
modelList
))
{
if
(
CollectionUtils
.
isEmpty
(
modelList
))
{
...
...
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