Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
0288bafe
Commit
0288bafe
authored
Apr 27, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新部门下不能新增岗位员工
parent
4b55c08b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/main/java/cn/timer/api/controller/zzgl/ZzglController.java
+6
-3
No files found.
src/main/java/cn/timer/api/controller/zzgl/ZzglController.java
View file @
0288bafe
...
@@ -354,8 +354,8 @@ public class ZzglController {
...
@@ -354,8 +354,8 @@ public class ZzglController {
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/job"
)
@PostMapping
(
value
=
"/job"
)
@ApiOperation
(
value
=
"添加/修改
部门
"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"添加/修改
岗位
"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@Log
(
title
=
"添加/修改-
部门
"
,
businessType
=
BusinessType
.
INSERT_UPDATE
)
@Log
(
title
=
"添加/修改-
岗位
"
,
businessType
=
BusinessType
.
INSERT_UPDATE
)
public
Result
<
ZzglBmgwM
>
addjob
public
Result
<
ZzglBmgwM
>
addjob
(
@CurrentUser
UserBean
userBean
,
@RequestBody
ZzglBmgwM
zzglBmgwM
)
{
(
@CurrentUser
UserBean
userBean
,
@RequestBody
ZzglBmgwM
zzglBmgwM
)
{
...
@@ -399,7 +399,6 @@ public class ZzglController {
...
@@ -399,7 +399,6 @@ public class ZzglController {
/**
/**
* 批量修改/删除员工部门
* 批量修改/删除员工部门
*
*
* @param 部门岗位id
* @return
* @return
*/
*/
@PostMapping
(
value
=
"/empdept"
)
@PostMapping
(
value
=
"/empdept"
)
...
@@ -407,6 +406,10 @@ public class ZzglController {
...
@@ -407,6 +406,10 @@ public class ZzglController {
public
Result
<
Void
>
updatelistempdept
(
@CurrentUser
UserBean
userBean
,
@RequestBody
UpEmpDeptDto
upEmpDeptDto
)
{
public
Result
<
Void
>
updatelistempdept
(
@CurrentUser
UserBean
userBean
,
@RequestBody
UpEmpDeptDto
upEmpDeptDto
)
{
Integer
dpetId
=
upEmpDeptDto
.
getDpetId
();
Integer
dpetId
=
upEmpDeptDto
.
getDpetId
();
List
<
Integer
>
empNums
=
upEmpDeptDto
.
getEmpNum
();
List
<
Integer
>
empNums
=
upEmpDeptDto
.
getEmpNum
();
ZzglBmgwM
bmgwM
=
zzglBmgwMMapper
.
selectById
(
dpetId
);
if
(
bmgwM
.
getType
()
!=
1
){
return
ResultUtil
.
error
(
"不能在公司或者部门下新增岗位成员"
);
}
YgglMainEmp
ygglMainEmp
=
YgglMainEmp
.
builder
().
build
();
YgglMainEmp
ygglMainEmp
=
YgglMainEmp
.
builder
().
build
();
zzglLogDgjlMapper
.
insertbyaddemp
(
empNums
,
userBean
.
getEmpNum
(),
dpetId
,
userBean
.
getOrgCode
(),
zzglLogDgjlMapper
.
insertbyaddemp
(
empNums
,
userBean
.
getEmpNum
(),
dpetId
,
userBean
.
getOrgCode
(),
dpetId
==
null
||
dpetId
==
0
?
"岗位删除员工"
:
upEmpDeptDto
.
getIsdg
()
==
null
?
"岗位添加员工"
:
"员工调岗"
);
dpetId
==
null
||
dpetId
==
0
?
"岗位删除员工"
:
upEmpDeptDto
.
getIsdg
()
==
null
?
"岗位添加员工"
:
"员工调岗"
);
...
...
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