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
01c972d8
Commit
01c972d8
authored
Feb 27, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
c58fc31b
2ea64963
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
DepartmentMapper.java
...ic/haoban/manage/service/dao/mapper/DepartmentMapper.java
+1
-1
DepartmentServiceImpl.java
...an/manage/service/service/impl/DepartmentServiceImpl.java
+5
-1
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+2
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/DepartmentMapper.java
View file @
01c972d8
...
...
@@ -25,7 +25,7 @@ public interface DepartmentMapper {
int
selectMaxSort
(
@Param
(
"parentDepartmentId"
)
String
parentDepartmentId
);
TabHaobanDepartment
selectByRelatedId
(
@Param
(
"relatedId"
)
String
relatedId
);
List
<
TabHaobanDepartment
>
selectByRelatedId
(
@Param
(
"relatedId"
)
String
relatedId
);
List
<
TabHaobanDepartment
>
getByWxId
(
@Param
(
"wxDepartmentId"
)
String
wxDepartmentId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/DepartmentServiceImpl.java
View file @
01c972d8
...
...
@@ -79,7 +79,11 @@ public class DepartmentServiceImpl implements DepartmentService {
@Override
public
TabHaobanDepartment
selectByRelatedId
(
String
relatedId
)
{
return
mapper
.
selectByRelatedId
(
relatedId
);
List
<
TabHaobanDepartment
>
list
=
mapper
.
selectByRelatedId
(
relatedId
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
return
list
.
get
(
0
);
}
return
null
;
}
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
01c972d8
...
...
@@ -81,10 +81,10 @@ public class MessageApiServiceImpl implements MessageApiService {
departmentDTO
.
setChainName
(
parentDepartment
.
getChainName
()
+
Constant
.
NAME_SEPARATOR
+
parentDepartment
.
getChainName
());
departmentDTO
.
setLevel
(
parentDepartment
.
getLevel
()
+
1
);
departmentDTO
.
setWxEnterpriseId
(
enterprise
.
getWxEnterpriseId
());
if
(
dto
.
getType
()
==
GicEditType
.
ADD
.
getCode
()){
if
(
dto
.
get
Change
Type
()
==
GicEditType
.
ADD
.
getCode
()){
HaobanResponse
response
=
this
.
departmentApiService
.
add
(
departmentDTO
);
log
.
info
(
"添加结果:{}"
,
JSON
.
toJSONString
(
response
));
}
else
if
(
dto
.
getType
()
==
GicEditType
.
UPDATE
.
getCode
()){
}
else
if
(
dto
.
get
Change
Type
()
==
GicEditType
.
UPDATE
.
getCode
()){
TabHaobanDepartment
department
=
this
.
departmentService
.
selectByRelatedId
(
dto
.
getId
());
if
(
department
==
null
){
HaobanResponse
response
=
this
.
departmentApiService
.
add
(
departmentDTO
);
...
...
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