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
1517838f
Commit
1517838f
authored
Apr 16, 2023
by
daijunxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
职位管理新增关联
parent
255d6fce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceVacationBalanceController.java
...e/attendance/web/AttendanceVacationBalanceController.java
+4
-3
attendance-performance-manager/src/main/java/com/mortals/xhx/module/job/web/JobController.java
...in/java/com/mortals/xhx/module/job/web/JobController.java
+6
-2
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceVacationBalanceController.java
View file @
1517838f
...
...
@@ -33,10 +33,11 @@ public class AttendanceVacationBalanceController extends BaseCRUDJsonBodyMapping
super
.
init
(
model
,
context
);
}
@Override
protected
int
infoAfter
(
Long
id
,
Map
<
String
,
Object
>
model
,
AttendanceVacationBalanceEntity
entity
,
Context
context
)
throws
AppException
{
AttendanceVacationBalanceEntity
attendanceVacationBalanceEntity
=
service
.
get
(
id
);
protected
int
doListAfter
(
AttendanceVacationBalanceEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
AttendanceVacationBalanceEntity
attendanceVacationBalanceEntity
=
service
.
get
(
query
.
getId
()
);
model
.
put
(
"allHoliday"
,
attendanceVacationBalanceEntity
);
return
super
.
infoAfter
(
id
,
model
,
entity
,
context
);
return
super
.
doListAfter
(
query
,
model
,
context
);
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/job/web/JobController.java
View file @
1517838f
...
...
@@ -4,6 +4,7 @@ import com.mortals.framework.model.Context;
import
com.mortals.framework.web.BaseCRUDJsonBodyMappingController
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.module.job.model.JobEntity
;
import
com.mortals.xhx.module.job.model.JobQuery
;
import
com.mortals.xhx.module.job.service.JobService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -11,6 +12,8 @@ import org.springframework.web.bind.annotation.RestController;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
*
* 职位信息
...
...
@@ -32,14 +35,15 @@ public class JobController extends BaseCRUDJsonBodyMappingController<JobService,
@Override
protected
void
init
(
Map
<
String
,
Object
>
model
,
Context
context
)
{
this
.
addDict
(
model
,
"type"
,
paramService
.
getParamBySecondOrganize
(
"Job"
,
"type"
));
this
.
addDict
(
model
,
"groupId"
,
service
.
find
(
new
JobQuery
()).
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getId
().
toString
(),
y
->
y
.
getGroupId
(),(
o
,
n
)->
n
)));
super
.
init
(
model
,
context
);
}
@Override
public
void
doImportDataBefore
(
List
<
JobEntity
>
list
,
boolean
updateSupport
,
Context
context
)
throws
AppException
{
super
.
doImportDataBefore
(
list
,
updateSupport
,
context
);
}
}
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