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 ab0ba12b
authored
May 27, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
组织接口修改
1 parent
cb59521e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
10 deletions
src/main/java/cn/com/glsx/admin/modules/entity/ElectricFence.java
src/main/java/cn/com/glsx/admin/modules/service/ApprovalService.java
src/main/java/cn/com/glsx/admin/modules/service/ElectricFenceService.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleDocService.java
src/main/java/cn/com/glsx/admin/modules/entity/ElectricFence.java
View file @
ab0ba12
...
...
@@ -16,11 +16,7 @@ public class ElectricFence extends BaseEntity {
*/
@Column
(
name
=
"fence_name"
)
private
String
fenceName
;
/**
* 围栏编号
*/
@Column
(
name
=
"fence_no"
)
private
String
fenceNo
;
/**
* 业务围栏类型 5警情围栏,12试驾围栏,13特约店围栏(12,13直接和大数据那边类型对应)
*/
...
...
src/main/java/cn/com/glsx/admin/modules/service/ApprovalService.java
View file @
ab0ba12
...
...
@@ -149,7 +149,7 @@ public class ApprovalService {
Type
type
=
new
TypeToken
<
List
<
Organization
>>()
{
}.
getType
();
vehicleDtoPageInfo
.
forEach
(
efd
->
{
R
<
List
<
Organization
>>
listR
=
organizationService
.
get
SuperiorsBySubId
(
ShieldContextHolder
.
getDepartment
Id
());
R
<
List
<
Organization
>>
listR
=
organizationService
.
get
TenantPathsByUserId
(
ShieldContextHolder
.
getUser
Id
());
List
<
Organization
>
orgList
=
listR
.
getDataList
(
type
);
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
efd
.
setArea
(
orgList
.
get
(
1
).
getOrgName
());
...
...
@@ -172,7 +172,7 @@ public class ApprovalService {
Type
type
=
new
TypeToken
<
List
<
Organization
>>()
{
}.
getType
();
fenceApproDtoList
.
forEach
(
efd
->
{
R
<
List
<
Organization
>>
listR
=
organizationService
.
get
SuperiorsBySubId
(
ShieldContextHolder
.
getDepartment
Id
());
R
<
List
<
Organization
>>
listR
=
organizationService
.
get
TenantPathsByUserId
(
ShieldContextHolder
.
getUser
Id
());
List
<
Organization
>
orgList
=
listR
.
getDataList
(
type
);
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
efd
.
setArea
(
orgList
.
get
(
1
).
getOrgName
());
...
...
src/main/java/cn/com/glsx/admin/modules/service/ElectricFenceService.java
View file @
ab0ba12
...
...
@@ -73,7 +73,7 @@ public class ElectricFenceService {
}.
getType
();
list
.
forEach
(
efd
->
{
R
<
List
<
Organization
>>
listR
=
organizationService
.
get
SuperiorsBySub
Id
(
efd
.
getDepartmentId
());
R
<
List
<
Organization
>>
listR
=
organizationService
.
get
TenantPathsByUser
Id
(
efd
.
getDepartmentId
());
List
<
Organization
>
orgList
=
listR
.
getDataList
(
type
);
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
efd
.
setArea
(
orgList
.
get
(
1
).
getOrgName
());
...
...
@@ -147,7 +147,6 @@ public class ElectricFenceService {
fenceCopy
.
setAreaText
(
fenceCopy
.
getAreaText
());
}
}
fenceCopy
.
setFenceNo
(
localFence
.
getFenceNo
());
//业务围栏类型 12试驾围栏,13特约店围栏(12,13直接和大数据那边类型对应)
fenceCopy
.
setBizFenceType
(
fenceBO
.
getBizFenceType
());
fenceCopy
.
setLocationType
(
1
);
...
...
src/main/java/cn/com/glsx/admin/modules/service/VehicleDocService.java
View file @
ab0ba12
...
...
@@ -109,7 +109,7 @@ public class VehicleDocService {
Type
type
=
new
TypeToken
<
List
<
Organization
>>()
{
}.
getType
();
vehicleDtoPageInfo
.
forEach
(
efd
->
{
R
<
List
<
Organization
>>
listR
=
organizationService
.
get
SuperiorsBySub
Id
(
ShieldContextHolder
.
getDepartmentId
());
R
<
List
<
Organization
>>
listR
=
organizationService
.
get
TenantPathsByUser
Id
(
ShieldContextHolder
.
getDepartmentId
());
List
<
Organization
>
orgList
=
listR
.
getDataList
(
type
);
if
(
org
.
apache
.
commons
.
collections4
.
CollectionUtils
.
isNotEmpty
(
orgList
))
{
efd
.
setArea
(
orgList
.
get
(
1
).
getOrgName
());
...
...
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