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
4fe7e741
Commit
4fe7e741
authored
Jan 29, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增窗口考核时写入窗口名称编号
parent
7c5b852a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowPerformServiceImpl.java
.../module/window/service/impl/WindowPerformServiceImpl.java
+10
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowWorkmanPerformServiceImpl.java
.../window/service/impl/WindowWorkmanPerformServiceImpl.java
+11
-4
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowPerformServiceImpl.java
View file @
4fe7e741
...
...
@@ -13,6 +13,7 @@ import com.mortals.xhx.module.staff.model.StaffEntity;
import
com.mortals.xhx.module.staff.service.StaffService
;
import
com.mortals.xhx.module.window.model.*
;
import
com.mortals.xhx.module.window.model.vo.WindowPerformAllVo
;
import
com.mortals.xhx.module.window.service.WindowOwnerDetailService
;
import
com.mortals.xhx.module.window.service.WindowWorkmanPerformService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -46,6 +47,8 @@ public class WindowPerformServiceImpl extends AbstractCRUDServiceImpl<WindowPerf
private
WindowWorkmanPerformService
windowWorkmanPerformService
;
@Autowired
private
StaffService
staffService
;
@Autowired
private
WindowOwnerDetailService
windowOwnerDetailService
;
@Override
...
...
@@ -58,6 +61,13 @@ public class WindowPerformServiceImpl extends AbstractCRUDServiceImpl<WindowPerf
entity
.
setSalaId
(
staff
.
getSalaId
());
entity
.
setSalaName
(
staff
.
getSalaName
());
}
if
(
entity
.
getWindowId
()!=
null
)
{
WindowOwnerDetailEntity
windowOwnerDetailEntity
=
windowOwnerDetailService
.
selectOne
(
new
WindowOwnerDetailQuery
().
windowId
(
entity
.
getWindowId
()));
if
(
windowOwnerDetailEntity
!=
null
){
entity
.
setWindowCode
(
windowOwnerDetailEntity
.
getWindowCode
());
entity
.
setWindowName
(
windowOwnerDetailEntity
.
getWindowName
());
}
}
deleteExistBill
(
entity
,
context
);
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowWorkmanPerformServiceImpl.java
View file @
4fe7e741
...
...
@@ -14,8 +14,8 @@ import com.mortals.xhx.module.check.service.CheckWindowPerformService;
import
com.mortals.xhx.module.check.service.CheckWindowWorkmanPerformService
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
com.mortals.xhx.module.staff.service.StaffService
;
import
com.mortals.xhx.module.window.model.
WindowWorkmanPerformDetailEntity
;
import
com.mortals.xhx.module.window.
model.WindowWorkmanPerformDetailQuery
;
import
com.mortals.xhx.module.window.model.
*
;
import
com.mortals.xhx.module.window.
service.WindowOwnerDetailService
;
import
com.mortals.xhx.module.window.service.WindowWorkmanPerformDetailService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -25,7 +25,6 @@ import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.xhx.module.window.dao.WindowWorkmanPerformDao
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformEntity
;
import
com.mortals.xhx.module.window.service.WindowWorkmanPerformService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.util.ObjectUtils
;
...
...
@@ -51,7 +50,8 @@ public class WindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImpl<Win
private
CheckWindowWorkmanPerformService
checkWindowWorkmanPerformService
;
@Autowired
private
StaffService
staffService
;
@Autowired
private
WindowOwnerDetailService
windowOwnerDetailService
;
@Autowired
private
IWindowFeign
windowFeign
;
...
...
@@ -67,6 +67,13 @@ public class WindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImpl<Win
entity
.
setSalaId
(
staff
.
getSalaId
());
entity
.
setSalaName
(
staff
.
getSalaName
());
}
if
(
entity
.
getWindowId
()!=
null
)
{
WindowOwnerDetailEntity
windowOwnerDetailEntity
=
windowOwnerDetailService
.
selectOne
(
new
WindowOwnerDetailQuery
().
windowId
(
entity
.
getWindowId
()));
if
(
windowOwnerDetailEntity
!=
null
){
entity
.
setWindowCode
(
windowOwnerDetailEntity
.
getWindowCode
());
entity
.
setWindowName
(
windowOwnerDetailEntity
.
getWindowName
());
}
}
super
.
saveBefore
(
entity
,
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