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
3301838e
Commit
3301838e
authored
Feb 23, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0
into developer
parents
fbe90090
0edebaa1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+21
-0
StaffEditJsonQO.java
...in/java/com/gic/haoban/manage/web/qo/StaffEditJsonQO.java
+29
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
3301838e
...
...
@@ -23,7 +23,10 @@ import com.gic.haoban.manage.api.service.StaffApiService;
import
com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService
;
import
com.gic.haoban.manage.web.auth.AuthRequestUtil
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.qo.StaffEditJsonQO
;
import
com.gic.haoban.manage.web.vo.LoginVO
;
import
com.google.gson.JsonArray
;
import
com.squareup.moshi.Json
;
@RestController
...
...
@@ -34,6 +37,8 @@ public class StaffController extends WebBaseController{
private
StaffApiService
staffApiService
;
@Autowired
private
DepartmentApiService
departmentApiService
;
@Autowired
private
StaffDepartmentRelatedApiService
staffDepartmentRelatedApiService
;
@RequestMapping
(
"staff-add"
)
public
HaobanResponse
staffAdd
(
StaffDTO
staffDTO
,
String
departmentIds
){
...
...
@@ -123,5 +128,21 @@ public class StaffController extends WebBaseController{
}
@RequestMapping
(
"staff-batch-edit-department"
)
public
HaobanResponse
staffBatchEditDepartment
(
String
params
){
List
<
StaffEditJsonQO
>
list
=
JSON
.
parseArray
(
params
,
StaffEditJsonQO
.
class
);
for
(
StaffEditJsonQO
staffEditJsonQO
:
list
)
{
String
staffDepartmentRelatedId
=
staffEditJsonQO
.
getStaffDepartmentRelatedId
();
String
departmentIds
=
staffEditJsonQO
.
getCurrDepartmentIds
();
StaffDepartmentRelatedDTO
related
=
staffDepartmentRelatedApiService
.
getByStaffDepartmentRelatedId
(
staffDepartmentRelatedId
);
if
(
related
!=
null
)
{
StaffDTO
staff
=
staffApiService
.
selectById
(
related
.
getStaffId
());
if
(
staff
!=
null
)
{
staffApiService
.
staffEdit
(
staff
,
departmentIds
);
}
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/StaffEditJsonQO.java
0 → 100644
View file @
3301838e
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
;
import
java.io.Serializable
;
public
class
StaffEditJsonQO
implements
Serializable
{
private
String
staffDepartmentRelatedId
;
private
String
currDepartmentIds
;
public
String
getStaffDepartmentRelatedId
()
{
return
staffDepartmentRelatedId
;
}
public
void
setStaffDepartmentRelatedId
(
String
staffDepartmentRelatedId
)
{
this
.
staffDepartmentRelatedId
=
staffDepartmentRelatedId
;
}
public
String
getCurrDepartmentIds
()
{
return
currDepartmentIds
;
}
public
void
setCurrDepartmentIds
(
String
currDepartmentIds
)
{
this
.
currDepartmentIds
=
currDepartmentIds
;
}
}
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