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 f4f5c1a3
authored
May 27, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
特约店、围栏
1 parent
6df6e67b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/service/ElectricFenceService.java
src/main/java/cn/com/glsx/admin/modules/service/ElectricFenceService.java
View file @
f4f5c1a
...
...
@@ -65,6 +65,9 @@ public class ElectricFenceService {
@Autowired
private
OrganizationService
organizationService
;
@Autowired
private
TrialDriveShopService
trialDriveShopService
;
public
PageInfo
<
ElectricFenceDTO
>
search
(
ElectricFenceSearch
search
)
{
Page
page
=
PageHelper
.
startPage
(
search
.
getPageNumber
(),
search
.
getPageSize
());
List
<
ElectricFenceDTO
>
list
=
electricFenceMapper
.
search
(
search
);
...
...
@@ -73,7 +76,7 @@ public class ElectricFenceService {
}.
getType
();
list
.
forEach
(
efd
->
{
R
<
List
<
Organization
>>
listR
=
organizationService
.
getTenantPathsByUserId
(
efd
.
get
Department
Id
());
R
<
List
<
Organization
>>
listR
=
organizationService
.
getTenantPathsByUserId
(
efd
.
get
Creator
Id
());
List
<
Organization
>
orgList
=
listR
.
getDataList
(
type
);
if
(
CollectionUtils
.
isNotEmpty
(
orgList
))
{
efd
.
setArea
(
orgList
.
get
(
1
).
getOrgName
());
...
...
@@ -176,9 +179,12 @@ public class ElectricFenceService {
// eFenceComponent.updateElectricFence(fence);
// }
// 2021/5/24 围栏审核 todo 特约店用户修改才提交
ApprovalBo
approvalBo
=
new
ApprovalBo
(
ConstantsApproval
.
VEL_FENCE_APPROVAL
,
fenceCopy
.
getFenceId
());
approvalService
.
saveApproval
(
approvalBo
);
// 2021/5/24 围栏审核 特约店用户修改才提交
List
<
Long
>
shopOrgIds
=
trialDriveShopService
.
getShopOrgIds
();
if
(
shopOrgIds
.
contains
(
ShieldContextHolder
.
getDepartmentId
()))
{
ApprovalBo
approvalBo
=
new
ApprovalBo
(
ConstantsApproval
.
VEL_FENCE_APPROVAL
,
fenceCopy
.
getFenceId
());
approvalService
.
saveApproval
(
approvalBo
);
}
}
public
List
<
ElectricFenceSns
>
linkDevice
(
ElectricFence
fence
,
List
<
ElectricFenceSnsModel
>
snList
)
{
...
...
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