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
0e89a909
Commit
0e89a909
authored
Mar 05, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fc400953
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
StaffServiceImpl.java
.../haoban/manage/service/service/impl/StaffServiceImpl.java
+3
-1
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+3
-1
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+3
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffServiceImpl.java
View file @
0e89a909
...
...
@@ -35,7 +35,9 @@ public class StaffServiceImpl implements StaffService {
Date
now
=
new
Date
();
tab
.
setCreateTime
(
now
);
tab
.
setUpdateTime
(
now
);
tab
.
setStaffId
(
StringUtil
.
randomUUID
());
if
(
StringUtils
.
isBlank
(
tab
.
getStaffId
())){
tab
.
setStaffId
(
StringUtil
.
randomUUID
());
}
tab
.
setStatusFlag
(
1
);
if
(
StringUtils
.
isBlank
(
tab
.
getWxUserId
())){
tab
.
setWxUserId
(
tab
.
getStaffId
());
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
0e89a909
...
...
@@ -101,7 +101,8 @@ public class StaffApiServiceImpl implements StaffApiService {
staff
.
setExtendPostion
(
staff
.
getPostion
());
}
TabHaobanStaff
tab
=
EntityUtil
.
changeEntityByJSON
(
TabHaobanStaff
.
class
,
staff
);
String
staffId
=
staffService
.
add
(
tab
);
String
staffId
=
StringUtil
.
randomUUID
();
tab
.
setStaffId
(
staffId
);
//调接口获取
String
wxUserId
=
""
;
WxEnterpriseDTO
enterpriseDTO
=
wxEnterpriseService
.
selectById
(
staff
.
getWxEnterpriseId
());
...
...
@@ -137,6 +138,7 @@ public class StaffApiServiceImpl implements StaffApiService {
hr
.
setDetailError
(
"微信新增失败"
);
return
hr
;
}
staffService
.
add
(
tab
);
wxUserId
=
staffId
;
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
0e89a909
...
...
@@ -65,7 +65,9 @@ public class StaffController extends WebBaseController{
return
resultResponse
(
HaoBanErrCode
.
ERR_10005
);
}
HaobanResponse
hr
=
staffApiService
.
add
(
staffDTO
,
departmentIds
);
if
(
hr
.
getErrorCode
()
==
0
){
return
resultResponse
(
HaoBanErrCode
.
ERR_DEFINE
,
hr
.
getDetailError
(),
null
,
hr
.
getDetailError
());
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
...
...
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