Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
35fcf927
Commit
35fcf927
authored
Jun 03, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-6-3' into developer
parents
7105393b
eabcf188
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
DepartmentApiServiceImpl.java
...ge/service/service/out/impl/DepartmentApiServiceImpl.java
+9
-10
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DepartmentApiServiceImpl.java
View file @
35fcf927
...
@@ -423,6 +423,7 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
...
@@ -423,6 +423,7 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
String
storeName
=
""
;
String
storeName
=
""
;
String
departmentId
=
""
;
String
departmentId
=
""
;
String
storeId
=
""
;
String
storeId
=
""
;
String
storeParentId
=
""
;
for
(
SyncJsonColumnDTO
syncJsonColumnDTO:
fieldList
){
for
(
SyncJsonColumnDTO
syncJsonColumnDTO:
fieldList
){
String
name
=
StringUtil
.
camelName
(
syncJsonColumnDTO
.
getName
());
String
name
=
StringUtil
.
camelName
(
syncJsonColumnDTO
.
getName
());
String
value
=
syncJsonColumnDTO
.
getValue
();
String
value
=
syncJsonColumnDTO
.
getValue
();
...
@@ -435,19 +436,17 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
...
@@ -435,19 +436,17 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
if
(
"departmentId"
.
equals
(
name
))
{
if
(
"departmentId"
.
equals
(
name
))
{
departmentId
=
value
;
departmentId
=
value
;
}
}
if
(
"storeId"
.
equals
(
name
))
{
if
(
"store
Group
Id"
.
equals
(
name
))
{
store
Id
=
value
;
storeParent
Id
=
value
;
}
}
}
}
DepartmentDTO
department
=
departmentService
.
getByRelatedId
(
storeId
);
DepartmentDTO
department
=
departmentService
.
getByRelatedId
(
storeId
);
if
(
department
==
null
)
{
DepartmentDTO
parent
=
departmentService
.
getByRelatedId
(
storeParentId
);
if
(
status
!=
null
&&
status
==
2
)
{
if
(
department
!=
null
&&
parent
!=
null
&&(!
department
.
getParentDepartmentId
().
equals
(
parent
.
getDepartmentId
())))
{
DepartmentDTO
parent
=
getParent
(
departmentId
);
logger
.
info
(
"更新部门!"
);
if
(
parent
==
null
)
{
department
.
setDepartmentName
(
storeName
);
TabHaobanWxEnterpriseRelated
tab
=
null
;
department
.
setParentDepartmentId
(
parent
.
getDepartmentId
());
//parent = getRootByEnterpriseId(wxEnterpriseId);
this
.
edit
(
department
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment