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
b0484e80
Commit
b0484e80
authored
Apr 02, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自评绩效工作人员汇总一张表;
绩效汇总算法修改,增加对自评维度和其他加分项的特殊处理
parent
02a2993e
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
1248 additions
and
333 deletions
+1248
-333
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/CheckTypeEnum.java
.../main/java/com/mortals/xhx/common/code/CheckTypeEnum.java
+1
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/common/pdu/WeightPdu.java
...r/src/main/java/com/mortals/xhx/common/pdu/WeightPdu.java
+2
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/common/utils/StaffPerformUtil.java
...n/java/com/mortals/xhx/common/utils/StaffPerformUtil.java
+59
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/StaffCheckSummaryService.java
...x/daemon/applicationservice/StaffCheckSummaryService.java
+7
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
...dule/check/service/impl/CheckAttendRecordServiceImpl.java
+11
-51
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
...le/check/service/impl/CheckComplainRecordServiceImpl.java
+17
-49
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
...dule/check/service/impl/CheckEffectRecordServiceImpl.java
+12
-50
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
...dule/check/service/impl/CheckGoworkRecordServiceImpl.java
+12
-50
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckOtherRecordServiceImpl.java
...odule/check/service/impl/CheckOtherRecordServiceImpl.java
+42
-14
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
...dule/check/service/impl/CheckReviewRecordServiceImpl.java
+18
-51
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckWindowWorkmanPerformServiceImpl.java
...ck/service/impl/CheckWindowWorkmanPerformServiceImpl.java
+16
-51
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffPerformSummaryEntity.java
...als/xhx/module/staff/model/StaffPerformSummaryEntity.java
+3
-3
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
...rtals/xhx/module/staff/service/impl/StaffServiceImpl.java
+5
-7
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/dao/WindowWorkmanPerformDetailDao.java
.../xhx/module/window/dao/WindowWorkmanPerformDetailDao.java
+3
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/dao/ibatis/WindowWorkmanPerformDetailDaoImpl.java
.../window/dao/ibatis/WindowWorkmanPerformDetailDaoImpl.java
+43
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/model/vo/WindowWorkmanPerformDetailVo.java
.../module/window/model/vo/WindowWorkmanPerformDetailVo.java
+8
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowWorkmanPerformDetailServiceImpl.java
...w/service/impl/WindowWorkmanPerformDetailServiceImpl.java
+10
-1
attendance-performance-manager/src/main/resources/sqlmap/module/window/WindowWorkmanPerformDetailMapperExt.xml
...map/module/window/WindowWorkmanPerformDetailMapperExt.xml
+979
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/common/code/CheckTypeEnum.java
View file @
b0484e80
...
@@ -12,7 +12,7 @@ public enum CheckTypeEnum {
...
@@ -12,7 +12,7 @@ public enum CheckTypeEnum {
办件绩效
(
3
,
"办件绩效"
),
办件绩效
(
3
,
"办件绩效"
),
效能绩效
(
4
,
"效能绩效"
),
效能绩效
(
4
,
"效能绩效"
),
其它绩效
(
5
,
"其它绩效"
),
其它绩效
(
5
,
"其它绩效"
),
投诉绩效
(
6
,
"投诉
绩效"
),
自评绩效
(
6
,
"自评
绩效"
),
;
;
private
Integer
value
;
private
Integer
value
;
private
String
desc
;
private
String
desc
;
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/common/pdu/WeightPdu.java
View file @
b0484e80
...
@@ -31,7 +31,7 @@ public class WeightPdu {
...
@@ -31,7 +31,7 @@ public class WeightPdu {
private
Integer
goworkWeight
=
20
;
private
Integer
goworkWeight
=
20
;
/**
/**
*
评价
权重
*
群众评议分数默认为20分,不计算
权重
*/
*/
private
Integer
reviewWeight
=
20
;
private
Integer
reviewWeight
=
20
;
...
@@ -49,7 +49,7 @@ public class WeightPdu {
...
@@ -49,7 +49,7 @@ public class WeightPdu {
return
new
BigDecimal
(
this
.
goworkWeight
).
divide
(
NUMBER_100
);
return
new
BigDecimal
(
this
.
goworkWeight
).
divide
(
NUMBER_100
);
}
}
public
BigDecimal
reviewWeight
(){
public
BigDecimal
reviewWeight
(){
return
new
BigDecimal
(
this
.
reviewWeight
)
.
divide
(
NUMBER_100
)
;
return
new
BigDecimal
(
this
.
reviewWeight
);
}
}
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/common/utils/StaffPerformUtil.java
0 → 100644
View file @
b0484e80
package
com.mortals.xhx.common.utils
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.module.staff.model.StaffEntity
;
import
com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity
;
import
java.math.BigDecimal
;
/**
* 员工绩效分数计算
*/
public
class
StaffPerformUtil
{
/** 群众评议总分 **/
public
static
BigDecimal
REVIEW_SCORE
=
new
BigDecimal
(
20
);
public
static
BigDecimal
SCORE100
=
new
BigDecimal
(
100
);
public
static
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
REVIEW_SCORE
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价分数默认20分扣完为止
if
(
reviewScore
.
compareTo
(
BigDecimal
.
ZERO
)<
0
){
reviewScore
=
BigDecimal
.
ZERO
;
}
BigDecimal
attendScore
=
total
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
//考勤
attendScore
=
attendScore
.
multiply
(
weightPdu
.
attendWeight
());
BigDecimal
otherScore
=
staffPerformSummaryEntity
.
getOtherScore
();
//其他绩效加分项
// if(otherScore.compareTo(BigDecimal.ZERO)==0){
// otherScore = new BigDecimal(100);
// }
// otherScore = otherScore.multiply(weightPdu.selfWeight());
BigDecimal
goworkScore
=
total
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
//办件
goworkScore
=
goworkScore
.
multiply
(
weightPdu
.
goworkWeight
());
BigDecimal
effectScore
=
total
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
//效能
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
BigDecimal
complainScore
=
staffPerformSummaryEntity
.
getComplainScore
();
//自评不用加100
complainScore
=
complainScore
.
multiply
(
weightPdu
.
selfWeight
());
BigDecimal
summary
=
new
BigDecimal
(
0
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
summary
=
summary
.
add
(
otherScore
);
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
if
(
staffEntity
.
getComplainCheck
()==
1
){
summary
=
summary
.
add
(
complainScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/StaffCheckSummaryService.java
View file @
b0484e80
...
@@ -39,6 +39,8 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
...
@@ -39,6 +39,8 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
private
CheckComplainRecordService
checkComplainRecordService
;
private
CheckComplainRecordService
checkComplainRecordService
;
@Autowired
@Autowired
private
CheckWindowWorkmanPerformService
checkWindowWorkmanPerformService
;
private
CheckWindowWorkmanPerformService
checkWindowWorkmanPerformService
;
@Autowired
private
CheckOtherRecordService
checkOtherRecordService
;
@Override
@Override
public
void
start
()
{
public
void
start
()
{
...
@@ -68,9 +70,12 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
...
@@ -68,9 +70,12 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
checkReviewRecordService
.
summaryCheck
(
query
);
checkReviewRecordService
.
summaryCheck
(
query
);
checkComplainRecordService
.
summaryCheck
(
query
);
checkComplainRecordService
.
summaryCheck
(
query
);
}
}
if
(
query
.
getCheckType
()
==
CheckTypeEnum
.
其它
绩效
.
getValue
()){
if
(
query
.
getCheckType
()
==
CheckTypeEnum
.
自评
绩效
.
getValue
()){
checkWindowWorkmanPerformService
.
summaryCheck
(
query
);
checkWindowWorkmanPerformService
.
summaryCheck
(
query
);
}
}
if
(
query
.
getCheckType
()
==
CheckTypeEnum
.
其它绩效
.
getValue
()){
checkOtherRecordService
.
summaryCheck
(
query
);
}
if
(
query
.
getCheckType
()==
null
){
if
(
query
.
getCheckType
()==
null
){
log
.
info
(
"绩效分数汇总开始"
);
log
.
info
(
"绩效分数汇总开始"
);
checkAttendRecordService
.
summaryCheck
(
query
);
checkAttendRecordService
.
summaryCheck
(
query
);
...
@@ -79,6 +84,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
...
@@ -79,6 +84,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
checkReviewRecordService
.
summaryCheck
(
query
);
checkReviewRecordService
.
summaryCheck
(
query
);
checkComplainRecordService
.
summaryCheck
(
query
);
checkComplainRecordService
.
summaryCheck
(
query
);
checkWindowWorkmanPerformService
.
summaryCheck
(
query
);
checkWindowWorkmanPerformService
.
summaryCheck
(
query
);
checkOtherRecordService
.
summaryCheck
(
query
);
log
.
info
(
"绩效分数汇总完成"
);
log
.
info
(
"绩效分数汇总完成"
);
}
}
}
}
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckAttendRecordServiceImpl.java
View file @
b0484e80
...
@@ -18,6 +18,7 @@ import com.mortals.xhx.common.pdu.WeightPdu;
...
@@ -18,6 +18,7 @@ import com.mortals.xhx.common.pdu.WeightPdu;
import
com.mortals.xhx.common.utils.AttendPostServiceThread
;
import
com.mortals.xhx.common.utils.AttendPostServiceThread
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.StaffPerformUtil
;
import
com.mortals.xhx.module.check.dao.CheckAttendRecordDao
;
import
com.mortals.xhx.module.check.dao.CheckAttendRecordDao
;
import
com.mortals.xhx.module.check.model.CheckAttendRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckAttendRecordEntity
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery
;
...
@@ -276,31 +277,25 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
...
@@ -276,31 +277,25 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
BigDecimal
erro
=
new
BigDecimal
(
0
);
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
if
(
staffPerformSummaryEntity
.
getOtherScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
if
(
staffPerformSummaryEntity
.
getComplainScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
BigDecimal
Score100
=
new
BigDecimal
(
100
);
BigDecimal
complainScoreErro
=
StaffPerformUtil
.
SCORE100
.
subtract
(
staffPerformSummaryEntity
.
getComplainScore
());
BigDecimal
otherScoreErro
=
Score100
.
subtract
(
staffPerformSummaryEntity
.
getOtherScore
());
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
complainScoreErro
));
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
otherScoreErro
));
}
}
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getComplainScore
());
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
// BigDecimal total = new BigDecimal(100);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
// staffPerformSummaryEntity.setTotalScore(total.add(erro));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
}
else
{
}
else
{
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setReviewScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setOtherScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setGoworkScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setEffectScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setComplainScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
// BigDecimal total = new BigDecimal(100);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
@@ -459,39 +454,4 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
...
@@ -459,39 +454,4 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
statEntity
.
setTotalScore
(
totalScore
);
statEntity
.
setTotalScore
(
totalScore
);
}
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
BigDecimal
attendScore
=
total
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
//考勤
attendScore
=
attendScore
.
multiply
(
weightPdu
.
attendWeight
());
BigDecimal
otherScore
=
staffPerformSummaryEntity
.
getOtherScore
();
//自评不用加100
if
(
otherScore
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
otherScore
=
new
BigDecimal
(
100
);
}
otherScore
=
otherScore
.
multiply
(
weightPdu
.
selfWeight
());
BigDecimal
goworkScore
=
total
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
//办件
goworkScore
=
goworkScore
.
multiply
(
weightPdu
.
goworkWeight
());
BigDecimal
effectScore
=
total
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
//效能
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckComplainRecordServiceImpl.java
View file @
b0484e80
...
@@ -16,6 +16,7 @@ import com.mortals.xhx.common.code.*;
...
@@ -16,6 +16,7 @@ import com.mortals.xhx.common.code.*;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.StaffPerformUtil
;
import
com.mortals.xhx.module.check.dao.CheckComplainRecordDao
;
import
com.mortals.xhx.module.check.dao.CheckComplainRecordDao
;
import
com.mortals.xhx.module.check.model.CheckAttendRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckAttendRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckComplainRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckComplainRecordEntity
;
...
@@ -246,7 +247,12 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
...
@@ -246,7 +247,12 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
staffPerformSummaryEntity
.
setReviewScore
(
vo
.
getSumScore
());
BigDecimal
reviewScore
=
StaffPerformUtil
.
REVIEW_SCORE
.
add
(
vo
.
getSumScore
());
if
(
reviewScore
.
compareTo
(
BigDecimal
.
ZERO
)<
0
){
staffPerformSummaryEntity
.
setReviewScore
(
StaffPerformUtil
.
REVIEW_SCORE
);
}
else
{
staffPerformSummaryEntity
.
setReviewScore
(
vo
.
getSumScore
());
}
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
summaryQuery
.
setStaffId
(
vo
.
getStaffId
());
summaryQuery
.
setStaffId
(
vo
.
getStaffId
());
summaryQuery
.
setYear
(
vo
.
getYear
());
summaryQuery
.
setYear
(
vo
.
getYear
());
...
@@ -271,31 +277,27 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
...
@@ -271,31 +277,27 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
BigDecimal
erro
=
new
BigDecimal
(
0
);
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
if
(
staffPerformSummaryEntity
.
getOtherScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
if
(
staffPerformSummaryEntity
.
getComplainScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
BigDecimal
Score100
=
new
BigDecimal
(
100
);
BigDecimal
complainScoreErro
=
StaffPerformUtil
.
SCORE100
.
subtract
(
staffPerformSummaryEntity
.
getComplainScore
());
BigDecimal
otherScoreErro
=
Score100
.
subtract
(
staffPerformSummaryEntity
.
getOtherScore
());
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
complainScoreErro
));
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
otherScoreErro
));
}
}
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getComplainScore
());
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
// BigDecimal total = new BigDecimal(100);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
// staffPerformSummaryEntity.setTotalScore(total.add(erro));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
}
else
{
}
else
{
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setAttendScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setOtherScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setGoworkScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setEffectScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
set
ReviewScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
set
ComplainScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
// BigDecimal total = new BigDecimal(100);
// BigDecimal total = new BigDecimal(100);
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
@@ -454,38 +456,4 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
...
@@ -454,38 +456,4 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
statEntity
.
setTotalScore
(
totalScore
);
statEntity
.
setTotalScore
(
totalScore
);
}
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
BigDecimal
attendScore
=
total
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
//考勤
attendScore
=
attendScore
.
multiply
(
weightPdu
.
attendWeight
());
BigDecimal
otherScore
=
staffPerformSummaryEntity
.
getOtherScore
();
//自评不用加100
if
(
otherScore
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
otherScore
=
new
BigDecimal
(
100
);
}
otherScore
=
otherScore
.
multiply
(
weightPdu
.
selfWeight
());
BigDecimal
goworkScore
=
total
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
//办件
goworkScore
=
goworkScore
.
multiply
(
weightPdu
.
goworkWeight
());
BigDecimal
effectScore
=
total
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
//效能
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckEffectRecordServiceImpl.java
View file @
b0484e80
...
@@ -16,6 +16,7 @@ import com.mortals.xhx.common.code.*;
...
@@ -16,6 +16,7 @@ import com.mortals.xhx.common.code.*;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.StaffPerformUtil
;
import
com.mortals.xhx.module.check.dao.CheckEffectRecordDao
;
import
com.mortals.xhx.module.check.dao.CheckEffectRecordDao
;
import
com.mortals.xhx.module.check.model.CheckComplainRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckComplainRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckEffectRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckEffectRecordEntity
;
...
@@ -268,31 +269,25 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
...
@@ -268,31 +269,25 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
BigDecimal
erro
=
new
BigDecimal
(
0
);
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
if
(
staffPerformSummaryEntity
.
getOtherScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
if
(
staffPerformSummaryEntity
.
getComplainScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
BigDecimal
Score100
=
new
BigDecimal
(
100
);
BigDecimal
complainScoreErro
=
StaffPerformUtil
.
SCORE100
.
subtract
(
staffPerformSummaryEntity
.
getComplainScore
());
BigDecimal
otherScoreErro
=
Score100
.
subtract
(
staffPerformSummaryEntity
.
getOtherScore
());
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
complainScoreErro
));
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
otherScoreErro
));
}
}
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getComplainScore
());
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
// BigDecimal total = new BigDecimal(100);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
// staffPerformSummaryEntity.setTotalScore(total.add(erro));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
}
else
{
}
else
{
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setAttendScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setReviewScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setOtherScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setGoworkScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setComplainScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
// BigDecimal total = new BigDecimal(100);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
@@ -451,38 +446,5 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
...
@@ -451,38 +446,5 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
statEntity
.
setTotalScore
(
totalScore
);
statEntity
.
setTotalScore
(
totalScore
);
}
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
BigDecimal
attendScore
=
total
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
//考勤
attendScore
=
attendScore
.
multiply
(
weightPdu
.
attendWeight
());
BigDecimal
otherScore
=
staffPerformSummaryEntity
.
getOtherScore
();
//自评不用加100
if
(
otherScore
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
otherScore
=
new
BigDecimal
(
100
);
}
otherScore
=
otherScore
.
multiply
(
weightPdu
.
selfWeight
());
BigDecimal
goworkScore
=
total
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
//办件
goworkScore
=
goworkScore
.
multiply
(
weightPdu
.
goworkWeight
());
BigDecimal
effectScore
=
total
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
//效能
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckGoworkRecordServiceImpl.java
View file @
b0484e80
...
@@ -16,6 +16,7 @@ import com.mortals.xhx.common.code.*;
...
@@ -16,6 +16,7 @@ import com.mortals.xhx.common.code.*;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.StaffPerformUtil
;
import
com.mortals.xhx.module.check.dao.CheckGoworkRecordDao
;
import
com.mortals.xhx.module.check.dao.CheckGoworkRecordDao
;
import
com.mortals.xhx.module.check.model.CheckEffectRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckEffectRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckGoworkRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckGoworkRecordEntity
;
...
@@ -265,31 +266,25 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
...
@@ -265,31 +266,25 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
BigDecimal
erro
=
new
BigDecimal
(
0
);
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
if
(
staffPerformSummaryEntity
.
getOtherScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
if
(
staffPerformSummaryEntity
.
getComplainScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
BigDecimal
Score100
=
new
BigDecimal
(
100
);
BigDecimal
complainScoreErro
=
StaffPerformUtil
.
SCORE100
.
subtract
(
staffPerformSummaryEntity
.
getComplainScore
());
BigDecimal
otherScoreErro
=
Score100
.
subtract
(
staffPerformSummaryEntity
.
getOtherScore
());
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
complainScoreErro
));
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
otherScoreErro
));
}
}
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getComplainScore
());
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
// BigDecimal total = new BigDecimal(100);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
// staffPerformSummaryEntity.setTotalScore(total.add(erro));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
}
else
{
}
else
{
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setAttendScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setReviewScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setOtherScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setEffectScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setComplainScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
// BigDecimal total = new BigDecimal(100);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
@@ -448,38 +443,5 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
...
@@ -448,38 +443,5 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
statEntity
.
setTotalScore
(
totalScore
);
statEntity
.
setTotalScore
(
totalScore
);
}
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
BigDecimal
attendScore
=
total
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
//考勤
attendScore
=
attendScore
.
multiply
(
weightPdu
.
attendWeight
());
BigDecimal
otherScore
=
staffPerformSummaryEntity
.
getOtherScore
();
//自评不用加100
if
(
otherScore
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
otherScore
=
new
BigDecimal
(
100
);
}
otherScore
=
otherScore
.
multiply
(
weightPdu
.
selfWeight
());
BigDecimal
goworkScore
=
total
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
//办件
goworkScore
=
goworkScore
.
multiply
(
weightPdu
.
goworkWeight
());
BigDecimal
effectScore
=
total
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
//效能
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckOtherRecordServiceImpl.java
View file @
b0484e80
package
com.mortals.xhx.module.check.service.impl
;
package
com.mortals.xhx.module.check.service.impl
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.service.ICacheService
;
import
com.mortals.framework.service.IUser
;
import
com.mortals.framework.service.IUser
;
import
com.mortals.framework.util.DateUtils
;
import
com.mortals.framework.util.DateUtils
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.framework.util.StringUtils
;
import
com.mortals.xhx.base.system.message.MessageService
;
import
com.mortals.xhx.base.system.message.MessageService
;
import
com.mortals.xhx.base.system.param.service.ParamService
;
import
com.mortals.xhx.common.code.*
;
import
com.mortals.xhx.common.code.*
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.StaffPerformUtil
;
import
com.mortals.xhx.module.check.model.CheckGoworkRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckGoworkRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckReviewRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckReviewRecordEntity
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery
;
...
@@ -49,6 +54,9 @@ import java.util.Calendar;
...
@@ -49,6 +54,9 @@ import java.util.Calendar;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
ParamKey
.
SYS_PARAM_WEIGHT
;
import
static
com
.
mortals
.
xhx
.
common
.
key
.
RedisKey
.
KEY_CHECK_SUMMARY_CACHE
;
/**
/**
* CheckOtherRecordService
* CheckOtherRecordService
* 其它绩效核查信息 service实现
* 其它绩效核查信息 service实现
...
@@ -80,6 +88,10 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
...
@@ -80,6 +88,10 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
@Autowired
@Autowired
private
PerformRulesService
rulesService
;
private
PerformRulesService
rulesService
;
@Autowired
private
ParamService
paramService
;
@Autowired
private
ICacheService
cacheService
;
@Override
@Override
protected
void
saveBefore
(
CheckOtherRecordEntity
entity
,
Context
context
)
throws
AppException
{
protected
void
saveBefore
(
CheckOtherRecordEntity
entity
,
Context
context
)
throws
AppException
{
...
@@ -111,7 +123,9 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
...
@@ -111,7 +123,9 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
query
.
setStaffId
(
entity
.
getStaffId
());
query
.
setStaffId
(
entity
.
getStaffId
());
query
.
setCheckTimeStart
(
DateUtils
.
getStrDate
(
entity
.
getCheckTime
()));
query
.
setCheckTimeStart
(
DateUtils
.
getStrDate
(
entity
.
getCheckTime
()));
query
.
setCheckTimeEnd
(
query
.
getCheckTimeStart
());
query
.
setCheckTimeEnd
(
query
.
getCheckTimeStart
());
summaryCheck
(
query
);
query
.
setCheckType
(
CheckTypeEnum
.
其它绩效
.
getValue
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
//summaryCheck(query);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
}
}
...
@@ -183,7 +197,11 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
...
@@ -183,7 +197,11 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
sendCheckDingTalk
(
temp
);
sendCheckDingTalk
(
temp
);
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
StaffCheckSummaryQuery
query
=
new
StaffCheckSummaryQuery
();
query
.
setStaffId
(
temp
.
getStaffId
());
query
.
setStaffId
(
temp
.
getStaffId
());
summaryCheck
(
query
);
query
.
setCheckTimeStart
(
DateUtils
.
getStrDate
(
entity
.
getCheckTime
()));
query
.
setCheckTimeEnd
(
query
.
getCheckTimeStart
());
query
.
setCheckType
(
CheckTypeEnum
.
其它绩效
.
getValue
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
//summaryCheck(query);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
log
.
error
(
"汇总已审核的核查记录出错"
,
e
);
...
@@ -205,6 +223,13 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
...
@@ -205,6 +223,13 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
}
}
List
<
StaffCheckSummaryVo
>
summaryVoList
=
dao
.
summaryCheck
(
query
);
List
<
StaffCheckSummaryVo
>
summaryVoList
=
dao
.
summaryCheck
(
query
);
if
(
CollectionUtils
.
isNotEmpty
(
summaryVoList
))
{
if
(
CollectionUtils
.
isNotEmpty
(
summaryVoList
))
{
String
value
=
paramService
.
getValueByKey
(
SYS_PARAM_WEIGHT
);
WeightPdu
weightPdu
;
if
(
ObjectUtils
.
isEmpty
(
value
)){
weightPdu
=
new
WeightPdu
();
}
else
{
weightPdu
=
JSONObject
.
parseObject
(
value
,
WeightPdu
.
class
);
}
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
for
(
StaffCheckSummaryVo
vo
:
summaryVoList
)
{
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
StaffEntity
staffEntity
=
staffService
.
get
(
vo
.
getStaffId
());
if
(
staffEntity
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
())
{
if
(
staffEntity
.
getStatus
()
==
StaffSatusEnum
.
离职
.
getValue
())
{
...
@@ -218,6 +243,9 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
...
@@ -218,6 +243,9 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
}
}
}
}
}
}
if
(
staffEntity
.
getAttendCheck
()==
0
&&
staffEntity
.
getEffectCheck
()==
0
&&
staffEntity
.
getGoworkCheck
()==
0
&&
staffEntity
.
getComplainCheck
()==
0
){
continue
;
}
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
...
@@ -246,25 +274,25 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
...
@@ -246,25 +274,25 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
BigDecimal
erro
=
new
BigDecimal
(
0
);
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getOtherScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getComplainScore
());
if
(
staffPerformSummaryEntity
.
getComplainScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
BigDecimal
complainScoreErro
=
StaffPerformUtil
.
SCORE100
.
subtract
(
staffPerformSummaryEntity
.
getComplainScore
());
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
complainScoreErro
));
}
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
BigDecimal
total
=
new
BigDecimal
(
100
);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setTotalScore
(
total
.
add
(
erro
));
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
}
else
{
}
else
{
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setAttendScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setReviewScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setGoworkScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setEffectScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setComplainScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
staffPerformSummaryEntity
.
setErrorScore
(
BigDecimal
.
ZERO
);
BigDecimal
total
=
new
BigDecimal
(
100
);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setTotalScore
(
total
.
add
(
vo
.
getSumScore
()));
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckReviewRecordServiceImpl.java
View file @
b0484e80
...
@@ -13,6 +13,7 @@ import com.mortals.xhx.common.code.*;
...
@@ -13,6 +13,7 @@ import com.mortals.xhx.common.code.*;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.AuditUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.StaffPerformUtil
;
import
com.mortals.xhx.module.check.model.CheckOtherRecordEntity
;
import
com.mortals.xhx.module.check.model.CheckOtherRecordEntity
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo
;
...
@@ -245,7 +246,12 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
...
@@ -245,7 +246,12 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
staffPerformSummaryEntity
.
setReviewScore
(
vo
.
getSumScore
());
BigDecimal
reviewScore
=
StaffPerformUtil
.
REVIEW_SCORE
.
add
(
vo
.
getSumScore
());
if
(
reviewScore
.
compareTo
(
BigDecimal
.
ZERO
)<
0
){
staffPerformSummaryEntity
.
setReviewScore
(
StaffPerformUtil
.
REVIEW_SCORE
);
}
else
{
staffPerformSummaryEntity
.
setReviewScore
(
vo
.
getSumScore
());
}
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
summaryQuery
.
setStaffId
(
vo
.
getStaffId
());
summaryQuery
.
setStaffId
(
vo
.
getStaffId
());
summaryQuery
.
setYear
(
vo
.
getYear
());
summaryQuery
.
setYear
(
vo
.
getYear
());
...
@@ -270,31 +276,25 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
...
@@ -270,31 +276,25 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
BigDecimal
erro
=
new
BigDecimal
(
0
);
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
if
(
staffPerformSummaryEntity
.
getOtherScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
if
(
staffPerformSummaryEntity
.
getComplainScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
BigDecimal
Score100
=
new
BigDecimal
(
100
);
BigDecimal
complainScoreErro
=
StaffPerformUtil
.
SCORE100
.
subtract
(
staffPerformSummaryEntity
.
getComplainScore
());
BigDecimal
otherScoreErro
=
Score100
.
subtract
(
staffPerformSummaryEntity
.
getOtherScore
());
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
complainScoreErro
));
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
otherScoreErro
));
}
}
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getComplainScore
());
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
// BigDecimal total = new BigDecimal(100);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
// staffPerformSummaryEntity.setTotalScore(total.add(erro));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
}
else
{
}
else
{
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setAttendScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setOtherScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setOtherScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setGoworkScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setEffectScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
)
);
staffPerformSummaryEntity
.
setComplainScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
staffPerformSummaryEntity
.
setErrorScore
(
vo
.
getSumScore
());
// BigDecimal total = new BigDecimal(100);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
// staffPerformSummaryEntity.setTotalScore(total.add(vo.getSumScore()));
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
@@ -453,38 +453,5 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
...
@@ -453,38 +453,5 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
statEntity
.
setTotalScore
(
totalScore
);
statEntity
.
setTotalScore
(
totalScore
);
}
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
BigDecimal
attendScore
=
total
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
//考勤
attendScore
=
attendScore
.
multiply
(
weightPdu
.
attendWeight
());
BigDecimal
otherScore
=
staffPerformSummaryEntity
.
getOtherScore
();
//自评不用加100
if
(
otherScore
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
otherScore
=
new
BigDecimal
(
100
);
}
otherScore
=
otherScore
.
multiply
(
weightPdu
.
selfWeight
());
BigDecimal
goworkScore
=
total
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
//办件
goworkScore
=
goworkScore
.
multiply
(
weightPdu
.
goworkWeight
());
BigDecimal
effectScore
=
total
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
//效能
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/service/impl/CheckWindowWorkmanPerformServiceImpl.java
View file @
b0484e80
...
@@ -10,6 +10,7 @@ import com.mortals.xhx.common.code.CheckTypeEnum;
...
@@ -10,6 +10,7 @@ import com.mortals.xhx.common.code.CheckTypeEnum;
import
com.mortals.xhx.common.code.StaffSatusEnum
;
import
com.mortals.xhx.common.code.StaffSatusEnum
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.pdu.WeightPdu
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.StaffPerformUtil
;
import
com.mortals.xhx.module.check.model.CheckWindowPerformEntity
;
import
com.mortals.xhx.module.check.model.CheckWindowPerformEntity
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo
;
import
com.mortals.xhx.module.check.model.vo.StaffCheckSummaryVo
;
...
@@ -84,7 +85,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
...
@@ -84,7 +85,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
query
.
setRecordId
(
temp
.
getRecordId
());
query
.
setRecordId
(
temp
.
getRecordId
());
query
.
setYear
(
temp
.
getYear
());
query
.
setYear
(
temp
.
getYear
());
query
.
setMonth
(
temp
.
getMonth
());
query
.
setMonth
(
temp
.
getMonth
());
query
.
setCheckType
(
CheckTypeEnum
.
其它
绩效
.
getValue
());
query
.
setCheckType
(
CheckTypeEnum
.
自评
绩效
.
getValue
());
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
cacheService
.
lpush
(
KEY_CHECK_SUMMARY_CACHE
,
query
);
//summaryCheck(query);
//summaryCheck(query);
}
}
...
@@ -124,7 +125,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
...
@@ -124,7 +125,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
StaffPerformSummaryEntity
staffPerformSummaryEntity
=
new
StaffPerformSummaryEntity
();
staffPerformSummaryEntity
.
initAttrValue
();
staffPerformSummaryEntity
.
initAttrValue
();
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
BeanUtils
.
copyProperties
(
vo
,
staffPerformSummaryEntity
,
BeanUtil
.
getNullPropertyNames
(
vo
));
staffPerformSummaryEntity
.
set
Other
Score
(
vo
.
getSumScore
());
staffPerformSummaryEntity
.
set
Complain
Score
(
vo
.
getSumScore
());
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
StaffPerformSummaryQuery
summaryQuery
=
new
StaffPerformSummaryQuery
();
summaryQuery
.
setStaffId
(
vo
.
getStaffId
());
summaryQuery
.
setStaffId
(
vo
.
getStaffId
());
summaryQuery
.
setYear
(
vo
.
getYear
());
summaryQuery
.
setYear
(
vo
.
getYear
());
...
@@ -143,22 +144,21 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
...
@@ -143,22 +144,21 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
if
(
temp
.
getEffectScore
()
!=
null
)
{
if
(
temp
.
getEffectScore
()
!=
null
)
{
staffPerformSummaryEntity
.
setEffectScore
(
temp
.
getEffectScore
());
staffPerformSummaryEntity
.
setEffectScore
(
temp
.
getEffectScore
());
}
}
if
(
temp
.
get
Complain
Score
()
!=
null
)
{
if
(
temp
.
get
Other
Score
()
!=
null
)
{
staffPerformSummaryEntity
.
set
ComplainScore
(
temp
.
getComplain
Score
());
staffPerformSummaryEntity
.
set
OtherScore
(
temp
.
getOther
Score
());
}
}
BigDecimal
erro
=
new
BigDecimal
(
0
);
BigDecimal
erro
=
new
BigDecimal
(
0
);
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
if
(
staffPerformSummaryEntity
.
getOtherScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
if
(
staffPerformSummaryEntity
.
getComplainScore
().
compareTo
(
BigDecimal
.
ZERO
)!=
0
){
BigDecimal
Score100
=
new
BigDecimal
(
100
);
BigDecimal
complainScoreErro
=
StaffPerformUtil
.
SCORE100
.
subtract
(
staffPerformSummaryEntity
.
getComplainScore
());
BigDecimal
otherScoreErro
=
Score100
.
subtract
(
staffPerformSummaryEntity
.
getOtherScore
());
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
complainScoreErro
));
erro
=
erro
.
add
(
BigDecimal
.
ZERO
.
subtract
(
otherScoreErro
));
}
}
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getComplainScore
());
erro
=
erro
.
add
(
staffPerformSummaryEntity
.
getComplainScore
());
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
staffPerformSummaryEntity
.
setErrorScore
(
erro
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setId
(
temp
.
getId
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
...
@@ -166,14 +166,13 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
...
@@ -166,14 +166,13 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryEntity
.
setUpdateTime
(
new
Date
());
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
update
(
staffPerformSummaryEntity
);
}
else
{
}
else
{
staffPerformSummaryEntity
.
setAttendScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setAttendScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setReviewScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setReviewScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setGoworkScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setGoworkScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setEffectScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setEffectScore
(
BigDecimal
.
ZERO
);
staffPerformSummaryEntity
.
setComplainScore
(
new
BigDecimal
(
0
));
staffPerformSummaryEntity
.
setComplainScore
(
BigDecimal
.
ZERO
);
BigDecimal
Score100
=
new
BigDecimal
(
100
);
staffPerformSummaryEntity
.
setErrorScore
(
StaffPerformUtil
.
SCORE100
.
subtract
(
vo
.
getSumScore
()));
staffPerformSummaryEntity
.
setErrorScore
(
Score100
.
subtract
(
vo
.
getSumScore
()));
StaffPerformUtil
.
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
computeSummary
(
staffPerformSummaryEntity
,
weightPdu
,
staffEntity
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateUserId
(
1
l
);
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryEntity
.
setCreateTime
(
new
Date
());
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
staffPerformSummaryService
.
save
(
staffPerformSummaryEntity
);
...
@@ -184,39 +183,5 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
...
@@ -184,39 +183,5 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
return
summaryVoList
;
return
summaryVoList
;
}
}
private
void
computeSummary
(
StaffPerformSummaryEntity
staffPerformSummaryEntity
,
WeightPdu
weightPdu
,
StaffEntity
staffEntity
){
BigDecimal
total
=
new
BigDecimal
(
100
);
BigDecimal
reviewScore
=
total
.
add
(
staffPerformSummaryEntity
.
getReviewScore
());
//评价
reviewScore
=
reviewScore
.
multiply
(
weightPdu
.
reviewWeight
());
BigDecimal
attendScore
=
total
.
add
(
staffPerformSummaryEntity
.
getAttendScore
());
//考勤
attendScore
=
attendScore
.
multiply
(
weightPdu
.
attendWeight
());
BigDecimal
otherScore
=
staffPerformSummaryEntity
.
getOtherScore
();
//自评不用加100
if
(
otherScore
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
otherScore
=
new
BigDecimal
(
100
);
}
otherScore
=
otherScore
.
multiply
(
weightPdu
.
selfWeight
());
BigDecimal
goworkScore
=
total
.
add
(
staffPerformSummaryEntity
.
getGoworkScore
());
//办件
goworkScore
=
goworkScore
.
multiply
(
weightPdu
.
goworkWeight
());
BigDecimal
effectScore
=
total
.
add
(
staffPerformSummaryEntity
.
getEffectScore
());
//效能
effectScore
=
effectScore
.
multiply
(
weightPdu
.
effectWeight
());
// BigDecimal complainScore = complainScore = total.add(staffPerformSummaryEntity.getComplainScore()); //投诉
BigDecimal
summary
=
new
BigDecimal
(
0
);
if
(
staffEntity
.
getReviewCheck
()==
1
)
{
summary
=
summary
.
add
(
reviewScore
);
}
if
(
staffEntity
.
getAttendCheck
()==
1
)
{
summary
=
summary
.
add
(
attendScore
);
}
if
(
staffEntity
.
getOtherCheck
()==
1
)
{
summary
=
summary
.
add
(
otherScore
);
}
if
(
staffEntity
.
getEffectCheck
()==
1
){
summary
=
summary
.
add
(
effectScore
);
}
if
(
staffEntity
.
getGoworkCheck
()==
1
)
{
summary
=
summary
.
add
(
goworkScore
);
}
staffPerformSummaryEntity
.
setTotalScore
(
summary
);
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/model/StaffPerformSummaryEntity.java
View file @
b0484e80
...
@@ -73,7 +73,7 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
...
@@ -73,7 +73,7 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
/**
/**
* 投诉绩效指标分数
* 投诉绩效指标分数
*/
*/
//@Excel(name = "投诉绩效指标
分数")
@Excel
(
name
=
"自评绩效
分数"
)
private
BigDecimal
complainScore
;
private
BigDecimal
complainScore
;
/**
/**
* 办件绩效分数
* 办件绩效分数
...
@@ -86,9 +86,9 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
...
@@ -86,9 +86,9 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
@Excel
(
name
=
"效能绩效分数"
)
@Excel
(
name
=
"效能绩效分数"
)
private
BigDecimal
effectScore
;
private
BigDecimal
effectScore
;
/**
/**
* 其它绩效分数
* 其它绩效分数
加分项
*/
*/
@Excel
(
name
=
"
自评
绩效分数"
)
@Excel
(
name
=
"
其它
绩效分数"
)
private
BigDecimal
otherScore
;
private
BigDecimal
otherScore
;
/**
/**
* 累计异常分数
* 累计异常分数
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/staff/service/impl/StaffServiceImpl.java
View file @
b0484e80
...
@@ -449,6 +449,11 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
...
@@ -449,6 +449,11 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
}
else
{
}
else
{
update
.
setComplainCheck
(
1
);
update
.
setComplainCheck
(
1
);
}
}
if
(
temp
.
getReviewCheck
()
==
1
)
{
update
.
setReviewCheck
(
0
);
}
else
{
update
.
setReviewCheck
(
1
);
}
break
;
break
;
case
办件绩效:
case
办件绩效:
if
(
temp
.
getGoworkCheck
()
==
1
)
{
if
(
temp
.
getGoworkCheck
()
==
1
)
{
...
@@ -471,13 +476,6 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
...
@@ -471,13 +476,6 @@ public class StaffServiceImpl extends AbstractCRUDCacheServiceImpl<StaffDao, Sta
update
.
setOtherCheck
(
1
);
update
.
setOtherCheck
(
1
);
}
}
break
;
break
;
case
投诉绩效:
if
(
temp
.
getReviewCheck
()
==
1
)
{
update
.
setReviewCheck
(
0
);
}
else
{
update
.
setReviewCheck
(
1
);
}
break
;
default
:
default
:
if
(
temp
.
getOtherCheck
()
==
1
)
{
if
(
temp
.
getOtherCheck
()
==
1
)
{
update
.
setOtherCheck
(
0
);
update
.
setOtherCheck
(
0
);
...
...
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/dao/WindowWorkmanPerformDetailDao.java
View file @
b0484e80
package
com.mortals.xhx.module.window.dao
;
package
com.mortals.xhx.module.window.dao
;
import
com.mortals.framework.dao.ICRUDDao
;
import
com.mortals.framework.dao.ICRUDDao
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.Result
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailEntity
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailEntity
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -13,5 +15,5 @@ import java.util.List;
...
@@ -13,5 +15,5 @@ import java.util.List;
public
interface
WindowWorkmanPerformDetailDao
extends
ICRUDDao
<
WindowWorkmanPerformDetailEntity
,
Long
>{
public
interface
WindowWorkmanPerformDetailDao
extends
ICRUDDao
<
WindowWorkmanPerformDetailEntity
,
Long
>{
Result
<
WindowWorkmanPerformDetailEntity
>
getListExt
(
WindowWorkmanPerformDetailEntity
params
,
PageInfo
pageInfo
);
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/dao/ibatis/WindowWorkmanPerformDetailDaoImpl.java
View file @
b0484e80
package
com.mortals.xhx.module.window.dao.ibatis
;
package
com.mortals.xhx.module.window.dao.ibatis
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.ParamDto
;
import
com.mortals.framework.model.Result
;
import
org.apache.ibatis.session.RowBounds
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
com.mortals.xhx.module.window.dao.WindowWorkmanPerformDetailDao
;
import
com.mortals.xhx.module.window.dao.WindowWorkmanPerformDetailDao
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailEntity
;
import
com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailEntity
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis
;
import
com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis
;
import
java.util.List
;
import
java.util.List
;
...
@@ -16,6 +22,43 @@ import java.util.List;
...
@@ -16,6 +22,43 @@ import java.util.List;
@Repository
(
"windowWorkmanPerformDetailDao"
)
@Repository
(
"windowWorkmanPerformDetailDao"
)
public
class
WindowWorkmanPerformDetailDaoImpl
extends
BaseCRUDDaoMybatis
<
WindowWorkmanPerformDetailEntity
,
Long
>
implements
WindowWorkmanPerformDetailDao
{
public
class
WindowWorkmanPerformDetailDaoImpl
extends
BaseCRUDDaoMybatis
<
WindowWorkmanPerformDetailEntity
,
Long
>
implements
WindowWorkmanPerformDetailDao
{
@Override
public
Result
<
WindowWorkmanPerformDetailEntity
>
getListExt
(
WindowWorkmanPerformDetailEntity
params
,
PageInfo
pageInfo
)
{
ParamDto
paramDto
=
this
.
getQueryParam
(
params
);
Result
result
=
new
Result
();
List
<
WindowWorkmanPerformDetailEntity
>
list
=
null
;
if
(
pageInfo
.
isCountPage
())
{
int
count
=
this
.
getCountExt
(
paramDto
);
if
(
count
==
0
)
{
list
=
new
ArrayList
();
}
else
if
(
pageInfo
.
getPrePageResult
()
==
-
1
)
{
list
=
this
.
getSqlSession
().
selectList
(
this
.
getSqlId
(
"getListExt"
),
paramDto
);
}
else
{
RowBounds
rowBounds
=
new
RowBounds
(
pageInfo
.
getBeginIndex
(),
pageInfo
.
getPrePageResult
());
list
=
this
.
getSqlSession
().
selectList
(
this
.
getSqlId
(
"getListExt"
),
this
.
cpyQueryParamDto
(
paramDto
),
rowBounds
);
}
pageInfo
.
setTotalResult
(
count
);
result
.
setPageInfo
(
pageInfo
);
result
.
setList
((
List
)
list
);
}
else
{
if
(
pageInfo
.
getPrePageResult
()
==
-
1
)
{
list
=
this
.
getSqlSession
().
selectList
(
this
.
getSqlId
(
"getListExt"
),
paramDto
);
}
else
{
RowBounds
rowBounds
=
new
RowBounds
(
pageInfo
.
getBeginIndex
(),
pageInfo
.
getPrePageResult
());
list
=
this
.
getSqlSession
().
selectList
(
this
.
getSqlId
(
"getListExt"
),
this
.
cpyQueryParamDto
(
paramDto
),
rowBounds
);
}
pageInfo
.
setTotalResult
(-
1
);
result
.
setPageInfo
(
pageInfo
);
result
.
setList
(
list
);
}
return
result
;
}
private
int
getCountExt
(
ParamDto
paramDto
)
{
return
(
Integer
)
this
.
getSqlSession
().
selectOne
(
this
.
getSqlId
(
"getListCountExt"
),
this
.
cpyQueryParamDto
(
paramDto
));
}
}
}
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/model/vo/WindowWorkmanPerformDetailVo.java
View file @
b0484e80
...
@@ -19,5 +19,12 @@ public class WindowWorkmanPerformDetailVo extends BaseEntityLong {
...
@@ -19,5 +19,12 @@ public class WindowWorkmanPerformDetailVo extends BaseEntityLong {
/** 序号,主键,自增长列表 */
/** 序号,主键,自增长列表 */
private
List
<
Long
>
idList
;
private
List
<
Long
>
idList
;
/**
* 考核年度
*/
private
Integer
year
;
/**
* 考核月份
*/
private
Integer
month
;
}
}
\ No newline at end of file
attendance-performance-manager/src/main/java/com/mortals/xhx/module/window/service/impl/WindowWorkmanPerformDetailServiceImpl.java
View file @
b0484e80
package
com.mortals.xhx.module.window.service.impl
;
package
com.mortals.xhx.module.window.service.impl
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.Result
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
...
@@ -17,5 +19,12 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -17,5 +19,12 @@ import lombok.extern.slf4j.Slf4j;
@Service
(
"windowWorkmanPerformDetailService"
)
@Service
(
"windowWorkmanPerformDetailService"
)
@Slf4j
@Slf4j
public
class
WindowWorkmanPerformDetailServiceImpl
extends
AbstractCRUDServiceImpl
<
WindowWorkmanPerformDetailDao
,
WindowWorkmanPerformDetailEntity
,
Long
>
implements
WindowWorkmanPerformDetailService
{
public
class
WindowWorkmanPerformDetailServiceImpl
extends
AbstractCRUDServiceImpl
<
WindowWorkmanPerformDetailDao
,
WindowWorkmanPerformDetailEntity
,
Long
>
implements
WindowWorkmanPerformDetailService
{
@Override
public
Result
<
WindowWorkmanPerformDetailEntity
>
find
(
WindowWorkmanPerformDetailEntity
entity
,
PageInfo
pageInfo
,
Context
context
)
throws
AppException
{
WindowWorkmanPerformDetailEntity
newParams
=
this
.
findBefore
(
entity
,
pageInfo
,
context
);
Result
<
WindowWorkmanPerformDetailEntity
>
result
=
this
.
dao
.
getListExt
(
newParams
,
pageInfo
);
this
.
findAfter
(
entity
,
pageInfo
,
context
,
result
.
getList
());
return
result
;
}
}
}
\ No newline at end of file
attendance-performance-manager/src/main/resources/sqlmap/module/window/WindowWorkmanPerformDetailMapperExt.xml
0 → 100644
View file @
b0484e80
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper
namespace=
"com.mortals.xhx.module.window.dao.ibatis.WindowWorkmanPerformDetailDaoImpl"
>
<select
id=
"getListExt"
parameterType=
"paramDto"
resultType=
"com.mortals.xhx.module.window.model.WindowWorkmanPerformDetailEntity"
>
SELECT * FROM
(
SELECT d.*,p.`year`,p.`month` FROM mortals_xhx_window_workman_perform p,mortals_xhx_window_workman_perform_detail d WHERE p.id = d.performId
) a
<trim
suffixOverrides=
"where"
suffix=
""
>
where
<trim
prefixOverrides=
"and"
prefix=
""
>
<include
refid=
"_condition_ext_"
/>
</trim>
</trim>
<include
refid=
"_orderCols_ext_"
/>
</select>
<select
id=
"getListCountExt"
parameterType=
"paramDto"
resultType=
"int"
>
SELECT count(1) FROM
(
SELECT d.*,p.`year`,p.`month` FROM mortals_xhx_window_workman_perform p,mortals_xhx_window_workman_perform_detail d WHERE p.id = d.performId
) a
<trim
suffixOverrides=
"where"
suffix=
""
>
where
<trim
prefixOverrides=
"and"
prefix=
""
>
<include
refid=
"_condition_ext_"
/>
</trim>
</trim>
</select>
<sql
id=
"_condition_ext_"
>
<if
test=
"condition != null and !condition.isEmpty()"
>
<!-- 条件映射-普通条件 -->
<include
refid=
"_condition_param_ext_"
>
<property
name=
"_conditionParam_"
value=
"condition"
/>
<property
name=
"_conditionType_"
value=
"and"
/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if
test=
"condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()"
>
and
<foreach
collection=
"condition.andConditionList"
open=
"("
close=
")"
index=
"index"
item=
"andCondition"
separator=
" and "
>
<trim
prefixOverrides=
"or"
prefix=
"("
suffix=
")"
>
<include
refid=
"_condition_param_"
>
<property
name=
"_conditionParam_"
value=
"andCondition"
/>
<property
name=
"_conditionType_"
value=
"or"
/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if
test=
"condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()"
>
and
<foreach
collection=
"condition.orConditionList"
open=
"("
close=
")"
index=
"index"
item=
"orCondition"
separator=
" or "
>
<trim
prefixOverrides=
"and"
prefix=
"("
suffix=
")"
>
<include
refid=
"_condition_param_"
>
<property
name=
"_conditionParam_"
value=
"orCondition"
/>
<property
name=
"_conditionType_"
value=
"and"
/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql
id=
"_condition_param_ext_"
>
<bind
name=
"conditionParamRef"
value=
"${_conditionParam_}"
/>
<if
test=
"conditionParamRef.containsKey('id')"
>
<if
test=
"conditionParamRef.id != null"
>
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if
test=
"conditionParamRef.containsKey('id')"
>
<if
test=
"conditionParamRef.id != null "
>
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if
test=
"conditionParamRef.id == null"
>
${_conditionType_} a.id is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0"
>
${_conditionType_} a.id in
<foreach
collection=
"conditionParamRef.idList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('idNotList') and conditionParamRef.idNotList.size() > 0"
>
${_conditionType_} a.id not in
<foreach
collection=
"conditionParamRef.idNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null"
>
${_conditionType_} a.id
<![CDATA[ >= ]]>
#{${_conditionParam_}.idStart}
</if>
<if
test=
"conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null"
>
${_conditionType_} a.id
<![CDATA[ <= ]]>
#{${_conditionParam_}.idEnd}
</if>
<if
test=
"conditionParamRef.containsKey('performId')"
>
<if
test=
"conditionParamRef.performId != null "
>
${_conditionType_} a.performId = #{${_conditionParam_}.performId}
</if>
<if
test=
"conditionParamRef.performId == null"
>
${_conditionType_} a.performId is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('performIdList') and conditionParamRef.performIdList.size() > 0"
>
${_conditionType_} a.performId in
<foreach
collection=
"conditionParamRef.performIdList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('performIdNotList') and conditionParamRef.performIdNotList.size() > 0"
>
${_conditionType_} a.performId not in
<foreach
collection=
"conditionParamRef.performIdNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('performIdStart') and conditionParamRef.performIdStart != null"
>
${_conditionType_} a.performId
<![CDATA[ >= ]]>
#{${_conditionParam_}.performIdStart}
</if>
<if
test=
"conditionParamRef.containsKey('performIdEnd') and conditionParamRef.performIdEnd != null"
>
${_conditionType_} a.performId
<![CDATA[ <= ]]>
#{${_conditionParam_}.performIdEnd}
</if>
<if
test=
"conditionParamRef.containsKey('staffId')"
>
<if
test=
"conditionParamRef.staffId != null "
>
${_conditionType_} a.staffId = #{${_conditionParam_}.staffId}
</if>
<if
test=
"conditionParamRef.staffId == null"
>
${_conditionType_} a.staffId is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('staffIdList') and conditionParamRef.staffIdList.size() > 0"
>
${_conditionType_} a.staffId in
<foreach
collection=
"conditionParamRef.staffIdList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('staffIdNotList') and conditionParamRef.staffIdNotList.size() > 0"
>
${_conditionType_} a.staffId not in
<foreach
collection=
"conditionParamRef.staffIdNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('staffIdStart') and conditionParamRef.staffIdStart != null"
>
${_conditionType_} a.staffId
<![CDATA[ >= ]]>
#{${_conditionParam_}.staffIdStart}
</if>
<if
test=
"conditionParamRef.containsKey('staffIdEnd') and conditionParamRef.staffIdEnd != null"
>
${_conditionType_} a.staffId
<![CDATA[ <= ]]>
#{${_conditionParam_}.staffIdEnd}
</if>
<if
test=
"conditionParamRef.containsKey('staffName')"
>
<if
test=
"conditionParamRef.staffName != null and conditionParamRef.staffName != ''"
>
${_conditionType_} a.staffName like #{${_conditionParam_}.staffName}
</if>
<if
test=
"conditionParamRef.staffName == null"
>
${_conditionType_} a.staffName is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('staffNameList') and conditionParamRef.staffNameList.size() > 0"
>
${_conditionType_} a.staffName in
<foreach
collection=
"conditionParamRef.staffNameList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('staffNameNotList') and conditionParamRef.staffNameNotList.size() > 0"
>
${_conditionType_} a.staffName not in
<foreach
collection=
"conditionParamRef.staffNameNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('discipline')"
>
<if
test=
"conditionParamRef.discipline != null "
>
${_conditionType_} a.discipline = #{${_conditionParam_}.discipline}
</if>
<if
test=
"conditionParamRef.discipline == null"
>
${_conditionType_} a.discipline is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('disciplineList') and conditionParamRef.disciplineList.size() > 0"
>
${_conditionType_} a.discipline in
<foreach
collection=
"conditionParamRef.disciplineList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('disciplineNotList') and conditionParamRef.disciplineNotList.size() > 0"
>
${_conditionType_} a.discipline not in
<foreach
collection=
"conditionParamRef.disciplineNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('disciplineStart') and conditionParamRef.disciplineStart != null"
>
${_conditionType_} a.discipline
<![CDATA[ >= ]]>
#{${_conditionParam_}.disciplineStart}
</if>
<if
test=
"conditionParamRef.containsKey('disciplineEnd') and conditionParamRef.disciplineEnd != null"
>
${_conditionType_} a.discipline
<![CDATA[ <= ]]>
#{${_conditionParam_}.disciplineEnd}
</if>
<if
test=
"conditionParamRef.containsKey('specification')"
>
<if
test=
"conditionParamRef.specification != null "
>
${_conditionType_} a.specification = #{${_conditionParam_}.specification}
</if>
<if
test=
"conditionParamRef.specification == null"
>
${_conditionType_} a.specification is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('specificationList') and conditionParamRef.specificationList.size() > 0"
>
${_conditionType_} a.specification in
<foreach
collection=
"conditionParamRef.specificationList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('specificationNotList') and conditionParamRef.specificationNotList.size() > 0"
>
${_conditionType_} a.specification not in
<foreach
collection=
"conditionParamRef.specificationNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('specificationStart') and conditionParamRef.specificationStart != null"
>
${_conditionType_} a.specification
<![CDATA[ >= ]]>
#{${_conditionParam_}.specificationStart}
</if>
<if
test=
"conditionParamRef.containsKey('specificationEnd') and conditionParamRef.specificationEnd != null"
>
${_conditionType_} a.specification
<![CDATA[ <= ]]>
#{${_conditionParam_}.specificationEnd}
</if>
<if
test=
"conditionParamRef.containsKey('management')"
>
<if
test=
"conditionParamRef.management != null "
>
${_conditionType_} a.management = #{${_conditionParam_}.management}
</if>
<if
test=
"conditionParamRef.management == null"
>
${_conditionType_} a.management is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('managementList') and conditionParamRef.managementList.size() > 0"
>
${_conditionType_} a.management in
<foreach
collection=
"conditionParamRef.managementList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('managementNotList') and conditionParamRef.managementNotList.size() > 0"
>
${_conditionType_} a.management not in
<foreach
collection=
"conditionParamRef.managementNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('managementStart') and conditionParamRef.managementStart != null"
>
${_conditionType_} a.management
<![CDATA[ >= ]]>
#{${_conditionParam_}.managementStart}
</if>
<if
test=
"conditionParamRef.containsKey('managementEnd') and conditionParamRef.managementEnd != null"
>
${_conditionType_} a.management
<![CDATA[ <= ]]>
#{${_conditionParam_}.managementEnd}
</if>
<if
test=
"conditionParamRef.containsKey('evaluation')"
>
<if
test=
"conditionParamRef.evaluation != null "
>
${_conditionType_} a.evaluation = #{${_conditionParam_}.evaluation}
</if>
<if
test=
"conditionParamRef.evaluation == null"
>
${_conditionType_} a.evaluation is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('evaluationList') and conditionParamRef.evaluationList.size() > 0"
>
${_conditionType_} a.evaluation in
<foreach
collection=
"conditionParamRef.evaluationList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('evaluationNotList') and conditionParamRef.evaluationNotList.size() > 0"
>
${_conditionType_} a.evaluation not in
<foreach
collection=
"conditionParamRef.evaluationNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('evaluationStart') and conditionParamRef.evaluationStart != null"
>
${_conditionType_} a.evaluation
<![CDATA[ >= ]]>
#{${_conditionParam_}.evaluationStart}
</if>
<if
test=
"conditionParamRef.containsKey('evaluationEnd') and conditionParamRef.evaluationEnd != null"
>
${_conditionType_} a.evaluation
<![CDATA[ <= ]]>
#{${_conditionParam_}.evaluationEnd}
</if>
<if
test=
"conditionParamRef.containsKey('efficiency')"
>
<if
test=
"conditionParamRef.efficiency != null "
>
${_conditionType_} a.efficiency = #{${_conditionParam_}.efficiency}
</if>
<if
test=
"conditionParamRef.efficiency == null"
>
${_conditionType_} a.efficiency is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('efficiencyList') and conditionParamRef.efficiencyList.size() > 0"
>
${_conditionType_} a.efficiency in
<foreach
collection=
"conditionParamRef.efficiencyList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('efficiencyNotList') and conditionParamRef.efficiencyNotList.size() > 0"
>
${_conditionType_} a.efficiency not in
<foreach
collection=
"conditionParamRef.efficiencyNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('efficiencyStart') and conditionParamRef.efficiencyStart != null"
>
${_conditionType_} a.efficiency
<![CDATA[ >= ]]>
#{${_conditionParam_}.efficiencyStart}
</if>
<if
test=
"conditionParamRef.containsKey('efficiencyEnd') and conditionParamRef.efficiencyEnd != null"
>
${_conditionType_} a.efficiency
<![CDATA[ <= ]]>
#{${_conditionParam_}.efficiencyEnd}
</if>
<if
test=
"conditionParamRef.containsKey('bonusScore')"
>
<if
test=
"conditionParamRef.bonusScore != null "
>
${_conditionType_} a.bonusScore = #{${_conditionParam_}.bonusScore}
</if>
<if
test=
"conditionParamRef.bonusScore == null"
>
${_conditionType_} a.bonusScore is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('bonusScoreList') and conditionParamRef.bonusScoreList.size() > 0"
>
${_conditionType_} a.bonusScore in
<foreach
collection=
"conditionParamRef.bonusScoreList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('bonusScoreNotList') and conditionParamRef.bonusScoreNotList.size() > 0"
>
${_conditionType_} a.bonusScore not in
<foreach
collection=
"conditionParamRef.bonusScoreNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('bonusScoreStart') and conditionParamRef.bonusScoreStart != null"
>
${_conditionType_} a.bonusScore
<![CDATA[ >= ]]>
#{${_conditionParam_}.bonusScoreStart}
</if>
<if
test=
"conditionParamRef.containsKey('bonusScoreEnd') and conditionParamRef.bonusScoreEnd != null"
>
${_conditionType_} a.bonusScore
<![CDATA[ <= ]]>
#{${_conditionParam_}.bonusScoreEnd}
</if>
<if
test=
"conditionParamRef.containsKey('sumScore')"
>
<if
test=
"conditionParamRef.sumScore != null "
>
${_conditionType_} a.sumScore = #{${_conditionParam_}.sumScore}
</if>
<if
test=
"conditionParamRef.sumScore == null"
>
${_conditionType_} a.sumScore is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('sumScoreList') and conditionParamRef.sumScoreList.size() > 0"
>
${_conditionType_} a.sumScore in
<foreach
collection=
"conditionParamRef.sumScoreList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('sumScoreNotList') and conditionParamRef.sumScoreNotList.size() > 0"
>
${_conditionType_} a.sumScore not in
<foreach
collection=
"conditionParamRef.sumScoreNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('sumScoreStart') and conditionParamRef.sumScoreStart != null"
>
${_conditionType_} a.sumScore
<![CDATA[ >= ]]>
#{${_conditionParam_}.sumScoreStart}
</if>
<if
test=
"conditionParamRef.containsKey('sumScoreEnd') and conditionParamRef.sumScoreEnd != null"
>
${_conditionType_} a.sumScore
<![CDATA[ <= ]]>
#{${_conditionParam_}.sumScoreEnd}
</if>
<if
test=
"conditionParamRef.containsKey('examineLevel')"
>
<if
test=
"conditionParamRef.examineLevel != null "
>
${_conditionType_} a.examineLevel = #{${_conditionParam_}.examineLevel}
</if>
<if
test=
"conditionParamRef.examineLevel == null"
>
${_conditionType_} a.examineLevel is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('examineLevelList') and conditionParamRef.examineLevelList.size() > 0"
>
${_conditionType_} a.examineLevel in
<foreach
collection=
"conditionParamRef.examineLevelList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('examineLevelNotList') and conditionParamRef.examineLevelNotList.size() > 0"
>
${_conditionType_} a.examineLevel not in
<foreach
collection=
"conditionParamRef.examineLevelNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('examineLevelStart') and conditionParamRef.examineLevelStart != null"
>
${_conditionType_} a.examineLevel
<![CDATA[ >= ]]>
#{${_conditionParam_}.examineLevelStart}
</if>
<if
test=
"conditionParamRef.containsKey('examineLevelEnd') and conditionParamRef.examineLevelEnd != null"
>
${_conditionType_} a.examineLevel
<![CDATA[ <= ]]>
#{${_conditionParam_}.examineLevelEnd}
</if>
<if
test=
"conditionParamRef.containsKey('remark')"
>
<if
test=
"conditionParamRef.remark != null and conditionParamRef.remark != ''"
>
${_conditionType_} a.remark like #{${_conditionParam_}.remark}
</if>
<if
test=
"conditionParamRef.remark == null"
>
${_conditionType_} a.remark is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('remarkList') and conditionParamRef.remarkList.size() > 0"
>
${_conditionType_} a.remark in
<foreach
collection=
"conditionParamRef.remarkList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('remarkNotList') and conditionParamRef.remarkNotList.size() > 0"
>
${_conditionType_} a.remark not in
<foreach
collection=
"conditionParamRef.remarkNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('createUserId')"
>
<if
test=
"conditionParamRef.createUserId != null "
>
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if
test=
"conditionParamRef.createUserId == null"
>
${_conditionType_} a.createUserId is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0"
>
${_conditionType_} a.createUserId in
<foreach
collection=
"conditionParamRef.createUserIdList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('createUserIdNotList') and conditionParamRef.createUserIdNotList.size() > 0"
>
${_conditionType_} a.createUserId not in
<foreach
collection=
"conditionParamRef.createUserIdNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null"
>
${_conditionType_} a.createUserId
<![CDATA[ >= ]]>
#{${_conditionParam_}.createUserIdStart}
</if>
<if
test=
"conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null"
>
${_conditionType_} a.createUserId
<![CDATA[ <= ]]>
#{${_conditionParam_}.createUserIdEnd}
</if>
<if
test=
"conditionParamRef.containsKey('createTime')"
>
<if
test=
"conditionParamRef.createTime != null "
>
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if
test=
"conditionParamRef.createTime == null"
>
${_conditionType_} a.createTime is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''"
>
${_conditionType_} a.createTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''"
>
${_conditionType_} a.createTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"conditionParamRef.containsKey('updateUserId')"
>
<if
test=
"conditionParamRef.updateUserId != null "
>
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if
test=
"conditionParamRef.updateUserId == null"
>
${_conditionType_} a.updateUserId is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0"
>
${_conditionType_} a.updateUserId in
<foreach
collection=
"conditionParamRef.updateUserIdList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('updateUserIdNotList') and conditionParamRef.updateUserIdNotList.size() > 0"
>
${_conditionType_} a.updateUserId not in
<foreach
collection=
"conditionParamRef.updateUserIdNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null"
>
${_conditionType_} a.updateUserId
<![CDATA[ >= ]]>
#{${_conditionParam_}.updateUserIdStart}
</if>
<if
test=
"conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null"
>
${_conditionType_} a.updateUserId
<![CDATA[ <= ]]>
#{${_conditionParam_}.updateUserIdEnd}
</if>
<if
test=
"conditionParamRef.containsKey('updateTime')"
>
<if
test=
"conditionParamRef.updateTime != null "
>
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if
test=
"conditionParamRef.updateTime == null"
>
${_conditionType_} a.updateTime is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''"
>
${_conditionType_} a.updateTime
<![CDATA[ >= ]]>
STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''"
>
${_conditionType_} a.updateTime
<![CDATA[ <= ]]>
STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if
test=
"conditionParamRef.containsKey('deptId')"
>
<if
test=
"conditionParamRef.deptId != null "
>
${_conditionType_} a.deptId = #{${_conditionParam_}.deptId}
</if>
<if
test=
"conditionParamRef.deptId == null"
>
${_conditionType_} a.deptId is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('deptIdList') and conditionParamRef.deptIdList.size() > 0"
>
${_conditionType_} a.deptId in
<foreach
collection=
"conditionParamRef.deptIdList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('deptIdNotList') and conditionParamRef.deptIdNotList.size() > 0"
>
${_conditionType_} a.deptId not in
<foreach
collection=
"conditionParamRef.deptIdNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('deptIdStart') and conditionParamRef.deptIdStart != null"
>
${_conditionType_} a.deptId
<![CDATA[ >= ]]>
#{${_conditionParam_}.deptIdStart}
</if>
<if
test=
"conditionParamRef.containsKey('deptIdEnd') and conditionParamRef.deptIdEnd != null"
>
${_conditionType_} a.deptId
<![CDATA[ <= ]]>
#{${_conditionParam_}.deptIdEnd}
</if>
<if
test=
"conditionParamRef.containsKey('deptName')"
>
<if
test=
"conditionParamRef.deptName != null and conditionParamRef.deptName != ''"
>
${_conditionType_} a.deptName like #{${_conditionParam_}.deptName}
</if>
<if
test=
"conditionParamRef.deptName == null"
>
${_conditionType_} a.deptName is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('deptNameList') and conditionParamRef.deptNameList.size() > 0"
>
${_conditionType_} a.deptName in
<foreach
collection=
"conditionParamRef.deptNameList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('deptNameNotList') and conditionParamRef.deptNameNotList.size() > 0"
>
${_conditionType_} a.deptName not in
<foreach
collection=
"conditionParamRef.deptNameNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('salaId')"
>
<if
test=
"conditionParamRef.salaId != null "
>
${_conditionType_} a.salaId = #{${_conditionParam_}.salaId}
</if>
<if
test=
"conditionParamRef.salaId == null"
>
${_conditionType_} a.salaId is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('salaIdList') and conditionParamRef.salaIdList.size() > 0"
>
${_conditionType_} a.salaId in
<foreach
collection=
"conditionParamRef.salaIdList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('salaIdNotList') and conditionParamRef.salaIdNotList.size() > 0"
>
${_conditionType_} a.salaId not in
<foreach
collection=
"conditionParamRef.salaIdNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('salaIdStart') and conditionParamRef.salaIdStart != null"
>
${_conditionType_} a.salaId
<![CDATA[ >= ]]>
#{${_conditionParam_}.salaIdStart}
</if>
<if
test=
"conditionParamRef.containsKey('salaIdEnd') and conditionParamRef.salaIdEnd != null"
>
${_conditionType_} a.salaId
<![CDATA[ <= ]]>
#{${_conditionParam_}.salaIdEnd}
</if>
<if
test=
"conditionParamRef.containsKey('salaName')"
>
<if
test=
"conditionParamRef.salaName != null and conditionParamRef.salaName != ''"
>
${_conditionType_} a.salaName like #{${_conditionParam_}.salaName}
</if>
<if
test=
"conditionParamRef.salaName == null"
>
${_conditionType_} a.salaName is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('salaNameList') and conditionParamRef.salaNameList.size() > 0"
>
${_conditionType_} a.salaName in
<foreach
collection=
"conditionParamRef.salaNameList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('salaNameNotList') and conditionParamRef.salaNameNotList.size() > 0"
>
${_conditionType_} a.salaName not in
<foreach
collection=
"conditionParamRef.salaNameNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('year')"
>
<if
test=
"conditionParamRef.year != null "
>
${_conditionType_} a.year = #{${_conditionParam_}.year}
</if>
<if
test=
"conditionParamRef.year == null"
>
${_conditionType_} a.year is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('yearList') and conditionParamRef.yearList.size() > 0"
>
${_conditionType_} a.year in
<foreach
collection=
"conditionParamRef.yearList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('yearNotList') and conditionParamRef.yearNotList.size() > 0"
>
${_conditionType_} a.year not in
<foreach
collection=
"conditionParamRef.yearNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('yearStart') and conditionParamRef.yearStart != null"
>
${_conditionType_} a.year
<![CDATA[ >= ]]>
#{${_conditionParam_}.yearStart}
</if>
<if
test=
"conditionParamRef.containsKey('yearEnd') and conditionParamRef.yearEnd != null"
>
${_conditionType_} a.year
<![CDATA[ <= ]]>
#{${_conditionParam_}.yearEnd}
</if>
<if
test=
"conditionParamRef.containsKey('month')"
>
<if
test=
"conditionParamRef.month != null "
>
${_conditionType_} a.month = #{${_conditionParam_}.month}
</if>
<if
test=
"conditionParamRef.month == null"
>
${_conditionType_} a.month is null
</if>
</if>
<if
test=
"conditionParamRef.containsKey('monthList') and conditionParamRef.monthList.size() > 0"
>
${_conditionType_} a.month in
<foreach
collection=
"conditionParamRef.monthList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('monthNotList') and conditionParamRef.monthNotList.size() > 0"
>
${_conditionType_} a.month not in
<foreach
collection=
"conditionParamRef.monthNotList"
open=
"("
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"conditionParamRef.containsKey('monthStart') and conditionParamRef.monthStart != null"
>
${_conditionType_} a.month
<![CDATA[ >= ]]>
#{${_conditionParam_}.monthStart}
</if>
<if
test=
"conditionParamRef.containsKey('monthEnd') and conditionParamRef.monthEnd != null"
>
${_conditionType_} a.month
<![CDATA[ <= ]]>
#{${_conditionParam_}.monthEnd}
</if>
</sql>
<sql
id=
"_orderCols_ext_"
>
<if
test=
"orderColList != null and !orderColList.isEmpty()"
>
order by
<if
test=
"conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0"
>
field(a.id,
<foreach
collection=
"conditionParamRef.idList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('performIdList') and conditionParamRef.performIdList.size() > 0"
>
field(a.performId,
<foreach
collection=
"conditionParamRef.performIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('staffIdList') and conditionParamRef.staffIdList.size() > 0"
>
field(a.staffId,
<foreach
collection=
"conditionParamRef.staffIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('disciplineList') and conditionParamRef.disciplineList.size() > 0"
>
field(a.discipline,
<foreach
collection=
"conditionParamRef.disciplineList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('specificationList') and conditionParamRef.specificationList.size() > 0"
>
field(a.specification,
<foreach
collection=
"conditionParamRef.specificationList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('managementList') and conditionParamRef.managementList.size() > 0"
>
field(a.management,
<foreach
collection=
"conditionParamRef.managementList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('evaluationList') and conditionParamRef.evaluationList.size() > 0"
>
field(a.evaluation,
<foreach
collection=
"conditionParamRef.evaluationList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('efficiencyList') and conditionParamRef.efficiencyList.size() > 0"
>
field(a.efficiency,
<foreach
collection=
"conditionParamRef.efficiencyList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('bonusScoreList') and conditionParamRef.bonusScoreList.size() > 0"
>
field(a.bonusScore,
<foreach
collection=
"conditionParamRef.bonusScoreList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('sumScoreList') and conditionParamRef.sumScoreList.size() > 0"
>
field(a.sumScore,
<foreach
collection=
"conditionParamRef.sumScoreList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('examineLevelList') and conditionParamRef.examineLevelList.size() > 0"
>
field(a.examineLevel,
<foreach
collection=
"conditionParamRef.examineLevelList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0"
>
field(a.createUserId,
<foreach
collection=
"conditionParamRef.createUserIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0"
>
field(a.updateUserId,
<foreach
collection=
"conditionParamRef.updateUserIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('deptIdList') and conditionParamRef.deptIdList.size() > 0"
>
field(a.deptId,
<foreach
collection=
"conditionParamRef.deptIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('salaIdList') and conditionParamRef.salaIdList.size() > 0"
>
field(a.salaId,
<foreach
collection=
"conditionParamRef.salaIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<trim
suffixOverrides=
","
suffix=
""
>
<foreach
collection=
"orderColList"
open=
""
close=
""
index=
"index"
item=
"item"
separator=
","
>
a.${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if
test=
"(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()"
>
order by
<if
test=
"conditionParamRef.containsKey('idList') and conditionParamRef.idList.size() > 0"
>
field(a.id,
<foreach
collection=
"conditionParamRef.idList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('performIdList') and conditionParamRef.performIdList.size() > 0"
>
field(a.performId,
<foreach
collection=
"conditionParamRef.performIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('staffIdList') and conditionParamRef.staffIdList.size() > 0"
>
field(a.staffId,
<foreach
collection=
"conditionParamRef.staffIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('disciplineList') and conditionParamRef.disciplineList.size() > 0"
>
field(a.discipline,
<foreach
collection=
"conditionParamRef.disciplineList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('specificationList') and conditionParamRef.specificationList.size() > 0"
>
field(a.specification,
<foreach
collection=
"conditionParamRef.specificationList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('managementList') and conditionParamRef.managementList.size() > 0"
>
field(a.management,
<foreach
collection=
"conditionParamRef.managementList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('evaluationList') and conditionParamRef.evaluationList.size() > 0"
>
field(a.evaluation,
<foreach
collection=
"conditionParamRef.evaluationList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('efficiencyList') and conditionParamRef.efficiencyList.size() > 0"
>
field(a.efficiency,
<foreach
collection=
"conditionParamRef.efficiencyList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('bonusScoreList') and conditionParamRef.bonusScoreList.size() > 0"
>
field(a.bonusScore,
<foreach
collection=
"conditionParamRef.bonusScoreList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('sumScoreList') and conditionParamRef.sumScoreList.size() > 0"
>
field(a.sumScore,
<foreach
collection=
"conditionParamRef.sumScoreList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('examineLevelList') and conditionParamRef.examineLevelList.size() > 0"
>
field(a.examineLevel,
<foreach
collection=
"conditionParamRef.examineLevelList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('createUserIdList') and conditionParamRef.createUserIdList.size() > 0"
>
field(a.createUserId,
<foreach
collection=
"conditionParamRef.createUserIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('updateUserIdList') and conditionParamRef.updateUserIdList.size() > 0"
>
field(a.updateUserId,
<foreach
collection=
"conditionParamRef.updateUserIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('deptIdList') and conditionParamRef.deptIdList.size() > 0"
>
field(a.deptId,
<foreach
collection=
"conditionParamRef.deptIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<if
test=
"conditionParamRef.containsKey('salaIdList') and conditionParamRef.salaIdList.size() > 0"
>
field(a.salaId,
<foreach
collection=
"conditionParamRef.salaIdList"
open=
""
close=
")"
index=
"index"
item=
"item"
separator=
","
>
#{item}
</foreach>
,
</if>
<trim
suffixOverrides=
","
suffix=
""
>
<if
test=
"orderCol.containsKey('id')"
>
a.id
<if
test=
'orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('performId')"
>
a.performId
<if
test=
'orderCol.performId != null and "DESC".equalsIgnoreCase(orderCol.performId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('staffId')"
>
a.staffId
<if
test=
'orderCol.staffId != null and "DESC".equalsIgnoreCase(orderCol.staffId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('staffName')"
>
a.staffName
<if
test=
'orderCol.staffName != null and "DESC".equalsIgnoreCase(orderCol.staffName)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('discipline')"
>
a.discipline
<if
test=
'orderCol.discipline != null and "DESC".equalsIgnoreCase(orderCol.discipline)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('specification')"
>
a.specification
<if
test=
'orderCol.specification != null and "DESC".equalsIgnoreCase(orderCol.specification)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('management')"
>
a.management
<if
test=
'orderCol.management != null and "DESC".equalsIgnoreCase(orderCol.management)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('evaluation')"
>
a.evaluation
<if
test=
'orderCol.evaluation != null and "DESC".equalsIgnoreCase(orderCol.evaluation)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('efficiency')"
>
a.efficiency
<if
test=
'orderCol.efficiency != null and "DESC".equalsIgnoreCase(orderCol.efficiency)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('bonusScore')"
>
a.bonusScore
<if
test=
'orderCol.bonusScore != null and "DESC".equalsIgnoreCase(orderCol.bonusScore)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('sumScore')"
>
a.sumScore
<if
test=
'orderCol.sumScore != null and "DESC".equalsIgnoreCase(orderCol.sumScore)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('examineLevel')"
>
a.examineLevel
<if
test=
'orderCol.examineLevel != null and "DESC".equalsIgnoreCase(orderCol.examineLevel)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('remark')"
>
a.remark
<if
test=
'orderCol.remark != null and "DESC".equalsIgnoreCase(orderCol.remark)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('createUserId')"
>
a.createUserId
<if
test=
'orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('createTime')"
>
a.createTime
<if
test=
'orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('updateUserId')"
>
a.updateUserId
<if
test=
'orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('updateTime')"
>
a.updateTime
<if
test=
'orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('deptId')"
>
a.deptId
<if
test=
'orderCol.deptId != null and "DESC".equalsIgnoreCase(orderCol.deptId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('deptName')"
>
a.deptName
<if
test=
'orderCol.deptName != null and "DESC".equalsIgnoreCase(orderCol.deptName)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('salaId')"
>
a.salaId
<if
test=
'orderCol.salaId != null and "DESC".equalsIgnoreCase(orderCol.salaId)'
>
DESC
</if>
,
</if>
<if
test=
"orderCol.containsKey('salaName')"
>
a.salaName
<if
test=
'orderCol.salaName != null and "DESC".equalsIgnoreCase(orderCol.salaName)'
>
DESC
</if>
,
</if>
</trim>
</if>
</sql>
</mapper>
\ 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