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
dd83730b
Commit
dd83730b
authored
Apr 23, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面保存请假记录bug修改
parent
52d70cdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceLeaveRecordController.java
...odule/attendance/web/AttendanceLeaveRecordController.java
+21
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceLeaveRecordController.java
View file @
dd83730b
...
@@ -21,6 +21,8 @@ import com.mortals.xhx.module.attendance.model.AttendanceLeaveRecordQuery;
...
@@ -21,6 +21,8 @@ import com.mortals.xhx.module.attendance.model.AttendanceLeaveRecordQuery;
import
com.mortals.xhx.module.attendance.service.AttendanceLeaveRecordService
;
import
com.mortals.xhx.module.attendance.service.AttendanceLeaveRecordService
;
import
com.mortals.xhx.module.dept.model.DeptQuery
;
import
com.mortals.xhx.module.dept.model.DeptQuery
;
import
com.mortals.xhx.module.dept.service.DeptService
;
import
com.mortals.xhx.module.dept.service.DeptService
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
com.mortals.xhx.module.staff.service.StaffService
;
import
com.mortals.xhx.module.workman.model.WorkmanQuery
;
import
com.mortals.xhx.module.workman.model.WorkmanQuery
;
import
com.mortals.xhx.module.workman.service.WorkmanService
;
import
com.mortals.xhx.module.workman.service.WorkmanService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -56,6 +58,8 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont
...
@@ -56,6 +58,8 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont
private
WorkmanService
workmanService
;
private
WorkmanService
workmanService
;
@Autowired
@Autowired
private
UserService
userService
;
private
UserService
userService
;
@Autowired
private
StaffService
staffService
;
// @Autowired
// @Autowired
// private IUserFeign iUserFeign;
// private IUserFeign iUserFeign;
...
@@ -124,5 +128,22 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont
...
@@ -124,5 +128,22 @@ public class AttendanceLeaveRecordController extends BaseCRUDJsonBodyMappingCont
return
jsonObject
.
toJSONString
();
return
jsonObject
.
toJSONString
();
}
}
@Override
protected
void
saveBefore
(
AttendanceLeaveRecordEntity
entity
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(
entity
.
getStaffId
()!=
null
){
StaffEntity
staffEntity
=
staffService
.
getCache
(
entity
.
getLeavePersonId
().
toString
());
if
(
staffEntity
!=
null
){
entity
.
setLeavePerson
(
staffEntity
.
getName
());
entity
.
setDeptId
(
staffEntity
.
getDeptId
());
entity
.
setDeptName
(
staffEntity
.
getDeptName
());
entity
.
setSalaId
(
staffEntity
.
getSalaId
());
entity
.
setSalaName
(
staffEntity
.
getSalaName
());
}
else
{
throw
new
AppException
(
"人员id不正取"
);
}
}
else
{
throw
new
AppException
(
"人员id不能为空"
);
}
}
}
}
\ No newline at end of file
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