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
5137a767
Commit
5137a767
authored
Mar 27, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
213b6f91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
GicMessageDTO.java
...ain/java/com/gic/haoban/manage/api/dto/GicMessageDTO.java
+12
-0
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+5
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/GicMessageDTO.java
View file @
5137a767
...
...
@@ -15,6 +15,8 @@ public class GicMessageDTO implements Serializable {
private
String
name
;
//1新增,2修改,3删除
private
Integer
changeType
;
private
GicClerkDTO
gicClerkDTO
;
public
String
getEnterpriseId
()
{
return
enterpriseId
;
...
...
@@ -71,4 +73,14 @@ public class GicMessageDTO implements Serializable {
public
void
setParentChain
(
String
parentChain
)
{
this
.
parentChain
=
parentChain
;
}
public
GicClerkDTO
getGicClerkDTO
()
{
return
gicClerkDTO
;
}
public
void
setGicClerkDTO
(
GicClerkDTO
gicClerkDTO
)
{
this
.
gicClerkDTO
=
gicClerkDTO
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
5137a767
...
...
@@ -6,6 +6,7 @@ import com.gic.commons.util.GICMQClientUtil;
import
com.gic.haoban.base.api.common.Constant
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.DepartmentDTO
;
import
com.gic.haoban.manage.api.dto.GicClerkDTO
;
import
com.gic.haoban.manage.api.dto.GicMessageDTO
;
import
com.gic.haoban.manage.api.dto.QywxCallBackDTO
;
import
com.gic.haoban.manage.api.dto.StaffDTO
;
...
...
@@ -106,6 +107,10 @@ public class MessageApiServiceImpl implements MessageApiService {
departmentDTO
.
setWxEnterpriseId
(
enterprise
.
getWxEnterpriseId
());
if
(
dto
.
getChangeType
()
==
GicEditType
.
ADD
.
getCode
()){
ServiceResponse
response
=
this
.
departmentApiService
.
add
(
departmentDTO
);
GicClerkDTO
gicClerkDTO
=
dto
.
getGicClerkDTO
();
if
(
gicClerkDTO
!=
null
){
staffApiService
.
addGicClerk
(
gicClerkDTO
);
}
log
.
info
(
"添加结果:{}"
,
JSON
.
toJSONString
(
response
));
}
else
if
(
dto
.
getChangeType
()
==
GicEditType
.
UPDATE
.
getCode
()){
TabHaobanDepartment
department
=
this
.
departmentService
.
selectByRelatedId
(
dto
.
getId
());
...
...
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