Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
da38b03d
Commit
da38b03d
authored
Mar 28, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改员工部门选择信息
parent
acdc81a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
9 deletions
+26
-9
attendance-performance-manager-ui/admin/src/views/staff/drawershow.vue
...rformance-manager-ui/admin/src/views/staff/drawershow.vue
+9
-9
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+17
-0
No files found.
attendance-performance-manager-ui/admin/src/views/staff/drawershow.vue
View file @
da38b03d
...
@@ -109,17 +109,17 @@
...
@@ -109,17 +109,17 @@
>
>
</el-switch>
</el-switch>
</div>
</div>
</div>
<Field
<Field
label=
"所属部门"
label=
"所属部门"
prop=
"deptId"
prop=
"deptId"
v-model=
"form.deptId"
v-model=
"form.deptId"
:enumData=
"dict.deptId"
:enumData=
"dict.deptId"
type=
"select"
type=
"select"
placeholder=
"请选择所属部门"
placeholder=
"请选择所属部门"
/>
/>
</div>
<form-buttons
<form-buttons
@
submit=
"submitForm"
@
submit=
"submitForm"
noCancelBtn
noCancelBtn
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
da38b03d
...
@@ -113,14 +113,31 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
...
@@ -113,14 +113,31 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
// return "1000"+data.getWorkNum();
// return "1000"+data.getWorkNum();
}
}
@Override
protected
void
updateBefore
(
StaffEntity
entity
,
Context
context
)
throws
AppException
{
super
.
updateBefore
(
entity
,
context
);
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getDeptId
())){
DeptEntity
deptEntity
=
deptService
.
get
(
entity
.
getDeptId
());
entity
.
setDeptName
(
deptEntity
==
null
?
""
:
deptEntity
.
getDeptName
());
}
}
@Override
@Override
protected
void
saveBefore
(
StaffEntity
entity
,
Context
context
)
throws
AppException
{
protected
void
saveBefore
(
StaffEntity
entity
,
Context
context
)
throws
AppException
{
int
count
=
this
.
count
(
new
StaffQuery
().
workNum
(
entity
.
getWorkNum
()),
context
);
int
count
=
this
.
count
(
new
StaffQuery
().
workNum
(
entity
.
getWorkNum
()),
context
);
if
(
count
>
0
)
{
if
(
count
>
0
)
{
throw
new
AppException
(
"工号重复!工号:"
+
entity
.
getWorkNum
());
throw
new
AppException
(
"工号重复!工号:"
+
entity
.
getWorkNum
());
}
}
if
(!
ObjectUtils
.
isEmpty
(
entity
.
getDeptId
())){
DeptEntity
deptEntity
=
deptService
.
get
(
entity
.
getDeptId
());
entity
.
setDeptName
(
deptEntity
==
null
?
""
:
deptEntity
.
getDeptName
());
}
}
}
@Override
@Override
public
StaffInfoVo
queryAll
(
Context
context
)
{
public
StaffInfoVo
queryAll
(
Context
context
)
{
StaffInfoVo
staffInfoVo
=
new
StaffInfoVo
();
StaffInfoVo
staffInfoVo
=
new
StaffInfoVo
();
...
...
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