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
ae3551f4
Commit
ae3551f4
authored
Jan 19, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
窗口考核、窗口工作人员考核
parent
434a796d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
22 deletions
+110
-22
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/CheckWindowPerformEntity.java
...tals/xhx/module/check/model/CheckWindowPerformEntity.java
+2
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowOwnerDetailServiceImpl.java
...ule/window/service/impl/WindowOwnerDetailServiceImpl.java
+14
-19
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowPerformServiceImpl.java
.../module/window/service/impl/WindowPerformServiceImpl.java
+57
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowWorkmanPerformServiceImpl.java
.../window/service/impl/WindowWorkmanPerformServiceImpl.java
+32
-0
common-lib/src/main/java/com/mortals/xhx/common/pdu/window/WindowPdu.java
...ain/java/com/mortals/xhx/common/pdu/window/WindowPdu.java
+5
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/model/CheckWindowPerformEntity.java
View file @
ae3551f4
...
...
@@ -155,11 +155,11 @@ public class CheckWindowPerformEntity extends CheckWindowPerformVo {
this
.
sumScore
=
BigDecimal
.
ZERO
;
this
.
submitDate
=
new
Date
();
this
.
manageCheckPerson
=
""
;
this
.
manageCheckTime
=
n
ew
Date
()
;
this
.
manageCheckTime
=
n
ull
;
this
.
manageCheckDesc
=
""
;
this
.
manageCheckResult
=
""
;
this
.
leaderCheckPerson
=
""
;
this
.
leaderCheckTime
=
n
ew
Date
()
;
this
.
leaderCheckTime
=
n
ull
;
this
.
leaderCheckDesc
=
""
;
this
.
leaderCheckResult
=
""
;
this
.
checkStatus
=
1
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowOwnerDetailServiceImpl.java
View file @
ae3551f4
package
com.mortals.xhx.module.window.service.impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.common.pdu.RespData
;
...
...
@@ -15,10 +16,7 @@ import com.mortals.xhx.module.window.model.WindowOwnerDetailEntity;
import
com.mortals.xhx.module.window.service.WindowOwnerDetailService
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -38,21 +36,18 @@ public class WindowOwnerDetailServiceImpl extends AbstractCRUDServiceImpl<Window
@Override
public
List
<
WindowPdu
>
subWindowPduList
(
WindowPdu
pdu
)
{
List
<
WindowPdu
>
subList
=
new
ArrayList
<>();
List
<
WindowOwnerDetailEntity
>
ownerDetail
=
this
.
getAllList
();
if
(!
CollectionUtils
.
isEmpty
(
ownerDetail
)){
Long
[]
windows
=
ownerDetail
.
stream
().
map
(
WindowOwnerDetailEntity:
:
getWindowId
).
toArray
(
Long
[]::
new
);
pdu
.
setIdNotList
(
Arrays
.
asList
(
windows
));
if
(
pdu
.
getSiteId
()==
null
){
pdu
.
setSiteId
(
1
l
);
//默认只查宜宾市民中心
}
pdu
.
setSize
(-
1
);
Rest
<
RespData
<
List
<
WindowPdu
>>>
respDataRest
=
windowFeign
.
list
(
pdu
);
log
.
info
(
JSONObject
.
toJSONString
(
respDataRest
));
if
(
respDataRest
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
List
<
WindowOwnerDetailEntity
>
ownerDetail
=
this
.
getAllList
();
if
(!
CollectionUtils
.
isEmpty
(
ownerDetail
)){
Map
<
Long
,
List
<
WindowOwnerDetailEntity
>>
windowMap
=
ownerDetail
.
stream
().
collect
(
Collectors
.
groupingBy
(
WindowOwnerDetailEntity:
:
getWindowId
));
List
<
WindowPdu
>
allWindow
=
respDataRest
.
getData
().
getData
();
for
(
WindowPdu
item:
allWindow
){
if
(!
windowMap
.
containsKey
(
item
.
getId
())){
subList
.
add
(
item
);
}
}
subList
=
respDataRest
.
getData
().
getData
();
}
}
return
subList
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowPerformServiceImpl.java
View file @
ae3551f4
package
com.mortals.xhx.module.window.service.impl
;
import
com.mortals.xhx.common.code.FillStatusEnum
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.module.check.model.CheckWindowPerformEntity
;
import
com.mortals.xhx.module.check.model.CheckWindowPerformQuery
;
import
com.mortals.xhx.module.check.model.CheckWindowWorkmanPerformEntity
;
import
com.mortals.xhx.module.check.model.CheckWindowWorkmanPerformQuery
;
import
com.mortals.xhx.module.check.service.CheckWindowPerformService
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailEntity
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailQuery
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformEntity
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
...
...
@@ -7,6 +20,11 @@ import com.mortals.xhx.module.window.dao.WindowPerformDao;
import
com.mortals.xhx.module.window.model.WindowPerformEntity
;
import
com.mortals.xhx.module.window.service.WindowPerformService
;
import
lombok.extern.slf4j.Slf4j
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
/**
* WindowPerformService
* 大厅窗口信息 service实现
...
...
@@ -18,4 +36,42 @@ import lombok.extern.slf4j.Slf4j;
@Slf4j
public
class
WindowPerformServiceImpl
extends
AbstractCRUDServiceImpl
<
WindowPerformDao
,
WindowPerformEntity
,
Long
>
implements
WindowPerformService
{
@Autowired
private
CheckWindowPerformService
checkWindowPerformService
;
@Override
protected
void
saveAfter
(
WindowPerformEntity
entity
,
Context
context
)
throws
AppException
{
if
(
entity
.
getFillStatus
()==
FillStatusEnum
.
提交
.
getValue
()){
saveToCheck
(
entity
);
}
super
.
saveAfter
(
entity
,
context
);
}
@Override
protected
void
updateAfter
(
WindowPerformEntity
entity
,
Context
context
)
throws
AppException
{
if
(
entity
.
getFillStatus
()==
FillStatusEnum
.
提交
.
getValue
()){
saveToCheck
(
entity
);
}
super
.
updateAfter
(
entity
,
context
);
}
@Override
protected
void
removeAfter
(
Long
[]
ids
,
Context
context
,
int
result
)
throws
AppException
{
List
<
CheckWindowPerformEntity
>
performEntitys
=
checkWindowPerformService
.
find
(
new
CheckWindowPerformQuery
().
recordIdList
(
Arrays
.
asList
(
ids
)));
checkWindowPerformService
.
removeList
(
performEntitys
,
context
);
super
.
removeAfter
(
ids
,
context
,
result
);
}
private
void
saveToCheck
(
WindowPerformEntity
entity
){
CheckWindowPerformEntity
perform
=
new
CheckWindowPerformEntity
();
perform
.
initAttrValue
();
BeanUtils
.
copyProperties
(
entity
,
perform
,
BeanUtil
.
getNullPropertyNames
(
entity
));
perform
.
setId
(
null
);
perform
.
setRecordId
(
entity
.
getId
());
perform
.
setFromName
(
"市政务服务大厅窗口考核登记表"
);
perform
.
setSubmitDate
(
entity
.
getFillDate
());
perform
.
setUpdateTime
(
null
);
perform
.
setUpdateUserId
(
null
);
checkWindowPerformService
.
save
(
perform
);
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowWorkmanPerformServiceImpl.java
View file @
ae3551f4
package
com.mortals.xhx.module.window.service.impl
;
import
com.mortals.xhx.common.code.FillStatusEnum
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.module.check.model.CheckWindowPerformEntity
;
import
com.mortals.xhx.module.check.model.CheckWindowPerformQuery
;
import
com.mortals.xhx.module.check.model.CheckWindowWorkmanPerformEntity
;
import
com.mortals.xhx.module.check.model.CheckWindowWorkmanPerformQuery
;
import
com.mortals.xhx.module.check.service.CheckWindowPerformService
;
import
com.mortals.xhx.module.check.service.CheckWindowWorkmanPerformService
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailEntity
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailQuery
;
import
com.mortals.xhx.module.window.service.WindowWorkmanPerformDetailService
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
...
...
@@ -30,6 +39,8 @@ public class WindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImpl<Win
@Autowired
private
WindowWorkmanPerformDetailService
windowWorkmanPerformDetailService
;
@Autowired
private
CheckWindowWorkmanPerformService
checkWindowWorkmanPerformService
;
@Override
...
...
@@ -42,6 +53,9 @@ public class WindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImpl<Win
});
windowWorkmanPerformDetailService
.
save
(
entity
.
getWorkmanPerformDetailList
());
}
if
(
entity
.
getFillStatus
()==
FillStatusEnum
.
提交
.
getValue
()){
saveToCheck
(
entity
);
}
super
.
saveAfter
(
entity
,
context
);
}
...
...
@@ -59,6 +73,9 @@ public class WindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImpl<Win
});
windowWorkmanPerformDetailService
.
save
(
entity
.
getWorkmanPerformDetailList
());
}
if
(
entity
.
getFillStatus
()==
FillStatusEnum
.
提交
.
getValue
()){
saveToCheck
(
entity
);
}
super
.
updateAfter
(
entity
,
context
);
}
...
...
@@ -66,6 +83,21 @@ public class WindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImpl<Win
protected
void
removeAfter
(
Long
[]
ids
,
Context
context
,
int
result
)
throws
AppException
{
List
<
WindowWorkmanPerformDetailEntity
>
detailEntities
=
windowWorkmanPerformDetailService
.
find
(
new
WindowWorkmanPerformDetailQuery
().
performIdList
(
Arrays
.
asList
(
ids
)));
windowWorkmanPerformDetailService
.
removeList
(
detailEntities
,
context
);
List
<
CheckWindowWorkmanPerformEntity
>
performEntitys
=
checkWindowWorkmanPerformService
.
find
(
new
CheckWindowWorkmanPerformQuery
().
recordIdList
(
Arrays
.
asList
(
ids
)));
checkWindowWorkmanPerformService
.
removeList
(
performEntitys
,
context
);
super
.
removeAfter
(
ids
,
context
,
result
);
}
private
void
saveToCheck
(
WindowWorkmanPerformEntity
entity
){
CheckWindowWorkmanPerformEntity
perform
=
new
CheckWindowWorkmanPerformEntity
();
perform
.
initAttrValue
();
BeanUtils
.
copyProperties
(
entity
,
perform
,
BeanUtil
.
getNullPropertyNames
(
entity
));
perform
.
setId
(
null
);
perform
.
setRecordId
(
entity
.
getId
());
perform
.
setFromName
(
"市政务服务大厅窗口工作人员考核汇总表"
);
perform
.
setSubmitDate
(
entity
.
getFillDate
());
perform
.
setUpdateTime
(
null
);
perform
.
setUpdateUserId
(
null
);
checkWindowWorkmanPerformService
.
save
(
perform
);
}
}
\ No newline at end of file
common-lib/src/main/java/com/mortals/xhx/common/pdu/window/WindowPdu.java
View file @
ae3551f4
...
...
@@ -3,6 +3,8 @@ package com.mortals.xhx.common.pdu.window;
import
com.mortals.framework.model.BaseEntityLong
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
WindowPdu
extends
BaseEntityLong
{
/**
...
...
@@ -87,4 +89,7 @@ public class WindowPdu extends BaseEntityLong {
*/
private
String
hallName
;
/** 序号,主键,自增长排除列表 */
private
List
<
Long
>
idNotList
;
}
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