Commit 618e0a0a authored by 王启林's avatar 王启林
parents a971cad8 068186e1
...@@ -47,5 +47,6 @@ public class AppealReq extends BaseReq { ...@@ -47,5 +47,6 @@ public class AppealReq extends BaseReq {
private List<PerformAttendAppealFilesEntity> performAttendAppealFilesList = new ArrayList<>(); private List<PerformAttendAppealFilesEntity> performAttendAppealFilesList = new ArrayList<>();
; ;
private Long checkRecordId;
} }
...@@ -153,6 +153,5 @@ public class InspectSaveReq extends BaseReq { ...@@ -153,6 +153,5 @@ public class InspectSaveReq extends BaseReq {
private Long checkRecordId;
} }
...@@ -121,8 +121,8 @@ public class AppealApiController extends AbstractBaseController<PerformReq> { ...@@ -121,8 +121,8 @@ public class AppealApiController extends AbstractBaseController<PerformReq> {
} }
PageInfo pageInfo = buildPageInfo(appealReq); PageInfo pageInfo = buildPageInfo(appealReq);
PerformAttendAppealQuery query = new PerformAttendAppealQuery(); PerformAttendAppealQuery query = new PerformAttendAppealQuery();
query.setAppealTimeStart(appealReq.getApperalStartDate()); query.setCreateTimeStart(appealReq.getApperalStartDate());
query.setAppealTimeEnd(appealReq.getAppealEndDate()); query.setCreateTimeEnd(appealReq.getAppealEndDate());
query.setStaffId(context.getUser().getCustomerId()); query.setStaffId(context.getUser().getCustomerId());
Result<PerformAttendAppealEntity> result = appealService.find(query, pageInfo, context); Result<PerformAttendAppealEntity> result = appealService.find(query, pageInfo, context);
...@@ -223,6 +223,7 @@ public class AppealApiController extends AbstractBaseController<PerformReq> { ...@@ -223,6 +223,7 @@ public class AppealApiController extends AbstractBaseController<PerformReq> {
entity.setAppealDesc(req.getAppealDesc()); entity.setAppealDesc(req.getAppealDesc());
entity.setStaffId(context.getUser().getCustomerId()); entity.setStaffId(context.getUser().getCustomerId());
entity.setCreateUserId(context.getUser().getId()); entity.setCreateUserId(context.getUser().getId());
entity.setCheckRecordId(req.getId());
PerformAttendAppealEntity saveEntity = appealService.save(entity, context); PerformAttendAppealEntity saveEntity = appealService.save(entity, context);
rest.setData(saveEntity); rest.setData(saveEntity);
......
...@@ -105,23 +105,23 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA ...@@ -105,23 +105,23 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if(temp!=null){ if(temp!=null){
if(temp.getAssessScore()==null){ if(temp.getReviewScore()==null){
staffPerformSummaryEntity.setAssessScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(new BigDecimal(0));
} }
if(temp.getOtherScore()==null){ if(temp.getOtherScore()==null){
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
} }
if(temp.getWorkScore()==null){ if(temp.getGoworkScore()==null){
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
} }
if(temp.getEffectScore()==null){ if(temp.getEffectScore()==null){
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro.add(staffPerformSummaryEntity.getAssessScore()); erro.add(staffPerformSummaryEntity.getReviewScore());
erro.add(staffPerformSummaryEntity.getAttendScore()); erro.add(staffPerformSummaryEntity.getAttendScore());
erro.add(staffPerformSummaryEntity.getOtherScore()); erro.add(staffPerformSummaryEntity.getOtherScore());
erro.add(staffPerformSummaryEntity.getWorkScore()); erro.add(staffPerformSummaryEntity.getGoworkScore());
erro.add(staffPerformSummaryEntity.getEffectScore()); erro.add(staffPerformSummaryEntity.getEffectScore());
staffPerformSummaryEntity.setErrorScore(erro); staffPerformSummaryEntity.setErrorScore(erro);
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
...@@ -130,9 +130,9 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA ...@@ -130,9 +130,9 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
staffPerformSummaryEntity.setUpdateTime(new Date()); staffPerformSummaryEntity.setUpdateTime(new Date());
staffPerformSummaryService.update(staffPerformSummaryEntity); staffPerformSummaryService.update(staffPerformSummaryEntity);
}else { }else {
staffPerformSummaryEntity.setAssessScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(new BigDecimal(0));
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
staffPerformSummaryEntity.setErrorScore(vo.getSumScore()); staffPerformSummaryEntity.setErrorScore(vo.getSumScore());
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
......
...@@ -98,7 +98,7 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec ...@@ -98,7 +98,7 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
for(StaffCheckSummaryVo vo:summaryVoList){ for(StaffCheckSummaryVo vo:summaryVoList){
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
staffPerformSummaryEntity.setAssessScore(vo.getSumScore()); 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());
...@@ -111,17 +111,17 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec ...@@ -111,17 +111,17 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
if(temp.getOtherScore()==null){ if(temp.getOtherScore()==null){
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
} }
if(temp.getWorkScore()==null){ if(temp.getGoworkScore()==null){
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
} }
if(temp.getEffectScore()==null){ if(temp.getEffectScore()==null){
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro.add(staffPerformSummaryEntity.getAssessScore()); erro.add(staffPerformSummaryEntity.getReviewScore());
erro.add(staffPerformSummaryEntity.getAttendScore()); erro.add(staffPerformSummaryEntity.getAttendScore());
erro.add(staffPerformSummaryEntity.getOtherScore()); erro.add(staffPerformSummaryEntity.getOtherScore());
erro.add(staffPerformSummaryEntity.getWorkScore()); erro.add(staffPerformSummaryEntity.getGoworkScore());
erro.add(staffPerformSummaryEntity.getEffectScore()); erro.add(staffPerformSummaryEntity.getEffectScore());
staffPerformSummaryEntity.setErrorScore(erro); staffPerformSummaryEntity.setErrorScore(erro);
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
...@@ -135,7 +135,7 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec ...@@ -135,7 +135,7 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
}else { }else {
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(new BigDecimal(0));
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
staffPerformSummaryEntity.setErrorScore(vo.getSumScore()); staffPerformSummaryEntity.setErrorScore(vo.getSumScore());
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
......
...@@ -105,23 +105,23 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE ...@@ -105,23 +105,23 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if(temp!=null){ if(temp!=null){
if(temp.getAssessScore()==null){ if(temp.getReviewScore()==null){
staffPerformSummaryEntity.setAssessScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(new BigDecimal(0));
} }
if(temp.getOtherScore()==null){ if(temp.getOtherScore()==null){
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
} }
if(temp.getWorkScore()==null){ if(temp.getGoworkScore()==null){
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
} }
if(temp.getAttendScore()==null){ if(temp.getAttendScore()==null){
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(new BigDecimal(0));
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro.add(staffPerformSummaryEntity.getAssessScore()); erro.add(staffPerformSummaryEntity.getReviewScore());
erro.add(staffPerformSummaryEntity.getAttendScore()); erro.add(staffPerformSummaryEntity.getAttendScore());
erro.add(staffPerformSummaryEntity.getOtherScore()); erro.add(staffPerformSummaryEntity.getOtherScore());
erro.add(staffPerformSummaryEntity.getWorkScore()); erro.add(staffPerformSummaryEntity.getGoworkScore());
erro.add(staffPerformSummaryEntity.getEffectScore()); erro.add(staffPerformSummaryEntity.getEffectScore());
staffPerformSummaryEntity.setErrorScore(erro); staffPerformSummaryEntity.setErrorScore(erro);
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
...@@ -134,9 +134,9 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE ...@@ -134,9 +134,9 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
staffPerformSummaryService.update(staffPerformSummaryEntity); staffPerformSummaryService.update(staffPerformSummaryEntity);
}else { }else {
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(new BigDecimal(0));
staffPerformSummaryEntity.setAssessScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(new BigDecimal(0));
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
staffPerformSummaryEntity.setErrorScore(vo.getSumScore()); staffPerformSummaryEntity.setErrorScore(vo.getSumScore());
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
staffPerformSummaryEntity.setTotalScore(total.subtract(vo.getSumScore())); staffPerformSummaryEntity.setTotalScore(total.subtract(vo.getSumScore()));
......
...@@ -98,15 +98,15 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG ...@@ -98,15 +98,15 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
for(StaffCheckSummaryVo vo:summaryVoList){ for(StaffCheckSummaryVo vo:summaryVoList){
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
staffPerformSummaryEntity.setWorkScore(vo.getSumScore()); staffPerformSummaryEntity.setGoworkScore(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());
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if(temp!=null){ if(temp!=null){
if(temp.getAssessScore()==null){ if(temp.getReviewScore()==null){
staffPerformSummaryEntity.setAssessScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(new BigDecimal(0));
} }
if(temp.getOtherScore()==null){ if(temp.getOtherScore()==null){
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
...@@ -118,10 +118,10 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG ...@@ -118,10 +118,10 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro.add(staffPerformSummaryEntity.getAssessScore()); erro.add(staffPerformSummaryEntity.getReviewScore());
erro.add(staffPerformSummaryEntity.getAttendScore()); erro.add(staffPerformSummaryEntity.getAttendScore());
erro.add(staffPerformSummaryEntity.getOtherScore()); erro.add(staffPerformSummaryEntity.getOtherScore());
erro.add(staffPerformSummaryEntity.getWorkScore()); erro.add(staffPerformSummaryEntity.getGoworkScore());
erro.add(staffPerformSummaryEntity.getEffectScore()); erro.add(staffPerformSummaryEntity.getEffectScore());
staffPerformSummaryEntity.setErrorScore(erro); staffPerformSummaryEntity.setErrorScore(erro);
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
...@@ -134,7 +134,7 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG ...@@ -134,7 +134,7 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
staffPerformSummaryService.update(staffPerformSummaryEntity); staffPerformSummaryService.update(staffPerformSummaryEntity);
}else { }else {
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(new BigDecimal(0));
staffPerformSummaryEntity.setAssessScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(new BigDecimal(0));
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
staffPerformSummaryEntity.setErrorScore(vo.getSumScore()); staffPerformSummaryEntity.setErrorScore(vo.getSumScore());
......
...@@ -104,23 +104,23 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt ...@@ -104,23 +104,23 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
summaryQuery.setMonth(vo.getMonth()); summaryQuery.setMonth(vo.getMonth());
StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery); StaffPerformSummaryEntity temp = staffPerformSummaryService.selectOne(summaryQuery);
if(temp!=null){ if(temp!=null){
if(temp.getAssessScore()==null){ if(temp.getReviewScore()==null){
staffPerformSummaryEntity.setAssessScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(new BigDecimal(0));
} }
if(temp.getAttendScore()==null){ if(temp.getAttendScore()==null){
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(new BigDecimal(0));
} }
if(temp.getWorkScore()==null){ if(temp.getGoworkScore()==null){
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
} }
if(temp.getEffectScore()==null){ if(temp.getEffectScore()==null){
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro.add(staffPerformSummaryEntity.getAssessScore()); erro.add(staffPerformSummaryEntity.getReviewScore());
erro.add(staffPerformSummaryEntity.getAttendScore()); erro.add(staffPerformSummaryEntity.getAttendScore());
erro.add(staffPerformSummaryEntity.getOtherScore()); erro.add(staffPerformSummaryEntity.getOtherScore());
erro.add(staffPerformSummaryEntity.getWorkScore()); erro.add(staffPerformSummaryEntity.getGoworkScore());
erro.add(staffPerformSummaryEntity.getEffectScore()); erro.add(staffPerformSummaryEntity.getEffectScore());
staffPerformSummaryEntity.setErrorScore(erro); staffPerformSummaryEntity.setErrorScore(erro);
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
...@@ -133,8 +133,8 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt ...@@ -133,8 +133,8 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
staffPerformSummaryService.update(staffPerformSummaryEntity); staffPerformSummaryService.update(staffPerformSummaryEntity);
}else { }else {
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(new BigDecimal(0));
staffPerformSummaryEntity.setAssessScore(new BigDecimal(0)); staffPerformSummaryEntity.setReviewScore(new BigDecimal(0));
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
staffPerformSummaryEntity.setErrorScore(vo.getSumScore()); staffPerformSummaryEntity.setErrorScore(vo.getSumScore());
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
......
...@@ -97,7 +97,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR ...@@ -97,7 +97,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
for(StaffCheckSummaryVo vo:summaryVoList){ for(StaffCheckSummaryVo vo:summaryVoList){
StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo)); BeanUtils.copyProperties(vo,staffPerformSummaryEntity, BeanUtil.getNullPropertyNames(vo));
staffPerformSummaryEntity.setAssessScore(vo.getSumScore()); 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());
...@@ -110,17 +110,17 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR ...@@ -110,17 +110,17 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
if(temp.getOtherScore()==null){ if(temp.getOtherScore()==null){
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
} }
if(temp.getWorkScore()==null){ if(temp.getGoworkScore()==null){
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
} }
if(temp.getEffectScore()==null){ if(temp.getEffectScore()==null){
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
} }
BigDecimal erro = new BigDecimal(0); BigDecimal erro = new BigDecimal(0);
erro.add(staffPerformSummaryEntity.getAssessScore()); erro.add(staffPerformSummaryEntity.getReviewScore());
erro.add(staffPerformSummaryEntity.getAttendScore()); erro.add(staffPerformSummaryEntity.getAttendScore());
erro.add(staffPerformSummaryEntity.getOtherScore()); erro.add(staffPerformSummaryEntity.getOtherScore());
erro.add(staffPerformSummaryEntity.getWorkScore()); erro.add(staffPerformSummaryEntity.getGoworkScore());
erro.add(staffPerformSummaryEntity.getEffectScore()); erro.add(staffPerformSummaryEntity.getEffectScore());
staffPerformSummaryEntity.setErrorScore(erro); staffPerformSummaryEntity.setErrorScore(erro);
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
...@@ -134,7 +134,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR ...@@ -134,7 +134,7 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
}else { }else {
staffPerformSummaryEntity.setAttendScore(new BigDecimal(0)); staffPerformSummaryEntity.setAttendScore(new BigDecimal(0));
staffPerformSummaryEntity.setOtherScore(new BigDecimal(0)); staffPerformSummaryEntity.setOtherScore(new BigDecimal(0));
staffPerformSummaryEntity.setWorkScore(new BigDecimal(0)); staffPerformSummaryEntity.setGoworkScore(new BigDecimal(0));
staffPerformSummaryEntity.setEffectScore(new BigDecimal(0)); staffPerformSummaryEntity.setEffectScore(new BigDecimal(0));
staffPerformSummaryEntity.setErrorScore(vo.getSumScore()); staffPerformSummaryEntity.setErrorScore(vo.getSumScore());
BigDecimal total = new BigDecimal(100); BigDecimal total = new BigDecimal(100);
......
...@@ -11,7 +11,7 @@ import lombok.Data; ...@@ -11,7 +11,7 @@ import lombok.Data;
* 部门绩效分数统计实体对象 * 部门绩效分数统计实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-11 * @date 2023-07-14
*/ */
@Data @Data
public class DeptPerformStatEntity extends DeptPerformStatVo { public class DeptPerformStatEntity extends DeptPerformStatVo {
...@@ -31,6 +31,16 @@ public class DeptPerformStatEntity extends DeptPerformStatVo { ...@@ -31,6 +31,16 @@ public class DeptPerformStatEntity extends DeptPerformStatVo {
@Excel(name = "部门绩效总分数") @Excel(name = "部门绩效总分数")
private BigDecimal totalScore; private BigDecimal totalScore;
/** /**
* 部门绩效加分总分数汇总
*/
@Excel(name = "部门绩效加分总分数汇总")
private BigDecimal totalAddScore;
/**
* 部门绩效减分总分数汇总
*/
@Excel(name = "部门绩效减分总分数汇总")
private BigDecimal totalSubScore;
/**
* 考勤绩效指标增加分数 * 考勤绩效指标增加分数
*/ */
private BigDecimal attendScoreAdd; private BigDecimal attendScoreAdd;
...@@ -41,19 +51,27 @@ public class DeptPerformStatEntity extends DeptPerformStatVo { ...@@ -41,19 +51,27 @@ public class DeptPerformStatEntity extends DeptPerformStatVo {
/** /**
* 评价绩效指标增加分数 * 评价绩效指标增加分数
*/ */
private BigDecimal assessScoreAdd; private BigDecimal reviewScoreAdd;
/** /**
* 评价绩效指标扣减分数 * 评价绩效指标扣减分数
*/ */
private BigDecimal assessScoreSub; private BigDecimal reviewScoreSub;
/**
* 投诉绩效指标增加分数
*/
private BigDecimal complainScoreAdd;
/**
* 投诉绩效指标扣减分数
*/
private BigDecimal complainScoreSub;
/** /**
* 办件绩效指标增加分数 * 办件绩效指标增加分数
*/ */
private BigDecimal workScoreAdd; private BigDecimal goworkScoreAdd;
/** /**
* 办件绩效指标扣减分数 * 办件绩效指标扣减分数
*/ */
private BigDecimal workScoreSub; private BigDecimal goworkScoreSub;
/** /**
* 效能绩效指标增加分数 * 效能绩效指标增加分数
*/ */
...@@ -71,6 +89,11 @@ public class DeptPerformStatEntity extends DeptPerformStatVo { ...@@ -71,6 +89,11 @@ public class DeptPerformStatEntity extends DeptPerformStatVo {
*/ */
private BigDecimal otherScoreSub; private BigDecimal otherScoreSub;
/** /**
* 部门绩效平均分数,根据部门所属人数平均
*/
@Excel(name = "部门绩效平均分数,根据部门所属人数平均")
private BigDecimal averageScore;
/**
* 备注 * 备注
*/ */
private String remark; private String remark;
...@@ -86,29 +109,6 @@ public class DeptPerformStatEntity extends DeptPerformStatVo { ...@@ -86,29 +109,6 @@ public class DeptPerformStatEntity extends DeptPerformStatVo {
* 日 * 日
*/ */
private Integer day; private Integer day;
/**
* 部门绩效加分总分数汇总
*/
@Excel(name = "部门绩效加分总分数汇总")
private BigDecimal totalAddScore;
/**
* 部门绩效减分总分数汇总
*/
@Excel(name = "部门绩效减分总分数汇总")
private BigDecimal totalSubScore;
/**
* 投诉绩效指标增加分数
*/
private BigDecimal complainScoreAdd;
/**
* 投诉绩效指标扣减分数
*/
private BigDecimal complainScoreSub;
/**
* 部门绩效平均分数,根据部门所属人数平均
*/
@Excel(name = "部门绩效平均分数,根据部门所属人数平均")
private BigDecimal averageScore;
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
...@@ -133,17 +133,25 @@ public class DeptPerformStatEntity extends DeptPerformStatVo { ...@@ -133,17 +133,25 @@ public class DeptPerformStatEntity extends DeptPerformStatVo {
this.totalScore = new BigDecimal(0); this.totalScore = new BigDecimal(0);
this.totalAddScore = new BigDecimal(0);
this.totalSubScore = new BigDecimal(0);
this.attendScoreAdd = new BigDecimal(0); this.attendScoreAdd = new BigDecimal(0);
this.attendScoreSub = new BigDecimal(0); this.attendScoreSub = new BigDecimal(0);
this.assessScoreAdd = new BigDecimal(0); this.reviewScoreAdd = new BigDecimal(0);
this.assessScoreSub = new BigDecimal(0); this.reviewScoreSub = new BigDecimal(0);
this.workScoreAdd = new BigDecimal(0); this.complainScoreAdd = new BigDecimal(0);
this.complainScoreSub = new BigDecimal(0);
this.goworkScoreAdd = new BigDecimal(0);
this.workScoreSub = new BigDecimal(0); this.goworkScoreSub = new BigDecimal(0);
this.effectScoreAdd = new BigDecimal(0); this.effectScoreAdd = new BigDecimal(0);
...@@ -153,6 +161,8 @@ public class DeptPerformStatEntity extends DeptPerformStatVo { ...@@ -153,6 +161,8 @@ public class DeptPerformStatEntity extends DeptPerformStatVo {
this.otherScoreSub = new BigDecimal(0); this.otherScoreSub = new BigDecimal(0);
this.averageScore = new BigDecimal(0);
this.remark = ""; this.remark = "";
this.year = -1; this.year = -1;
...@@ -160,15 +170,5 @@ public class DeptPerformStatEntity extends DeptPerformStatVo { ...@@ -160,15 +170,5 @@ public class DeptPerformStatEntity extends DeptPerformStatVo {
this.month = -1; this.month = -1;
this.day = -1; this.day = -1;
this.totalAddScore = new BigDecimal(0);
this.totalSubScore = new BigDecimal(0);
this.complainScoreAdd = new BigDecimal(0);
this.complainScoreSub = new BigDecimal(0);
this.averageScore = new BigDecimal(0);
} }
} }
\ No newline at end of file
...@@ -11,7 +11,7 @@ import java.util.Date; ...@@ -11,7 +11,7 @@ import java.util.Date;
* 部门绩效分数统计视图对象 * 部门绩效分数统计视图对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-11 * @date 2023-07-14
*/ */
@Data @Data
public class DeptPerformStatVo extends BaseEntityLong { public class DeptPerformStatVo extends BaseEntityLong {
......
package com.mortals.xhx.module.dept.model.vo;
import lombok.Data;
/**
* 部门绩效总分排名统计查询条件
*/
@Data
public class DeptSummaryTopQuery {
}
...@@ -12,7 +12,7 @@ import lombok.Data; ...@@ -12,7 +12,7 @@ import lombok.Data;
*/ */
@Data @Data
public class PerformRulesVo extends BaseEntityLong { public class PerformRulesVo extends BaseEntityLong {
/** 类型名称 **/
private String typeName;
} }
\ No newline at end of file
package com.mortals.xhx.module.perform.service; package com.mortals.xhx.module.perform.service;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.service.ICRUDCacheService; import com.mortals.framework.service.ICRUDCacheService;
import com.mortals.framework.service.ICRUDService; import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.perform.model.PerformRulesEntity; import com.mortals.xhx.module.perform.model.PerformRulesEntity;
import com.mortals.xhx.module.perform.dao.PerformRulesDao; import com.mortals.xhx.module.perform.dao.PerformRulesDao;
import java.util.List;
import java.util.Map;
/** /**
* PerformRulesService * PerformRulesService
* *
...@@ -14,4 +19,11 @@ import com.mortals.xhx.module.perform.dao.PerformRulesDao; ...@@ -14,4 +19,11 @@ import com.mortals.xhx.module.perform.dao.PerformRulesDao;
public interface PerformRulesService extends ICRUDCacheService<PerformRulesEntity,Long> { public interface PerformRulesService extends ICRUDCacheService<PerformRulesEntity,Long> {
PerformRulesDao getDao(); PerformRulesDao getDao();
/**
* 规则分数统计
* @return
* @throws AppException
*/
Map<String,Object> summaryRules() throws AppException;
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil; ...@@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil;
import cn.hutool.extra.pinyin.PinyinUtil; import cn.hutool.extra.pinyin.PinyinUtil;
import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl; import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import com.mortals.xhx.base.system.idgenerator.service.IdgeneratorService; import com.mortals.xhx.base.system.idgenerator.service.IdgeneratorService;
import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.common.code.CommentTypeEnum; import com.mortals.xhx.common.code.CommentTypeEnum;
import com.mortals.xhx.common.code.PerformRulesTypeEnum; import com.mortals.xhx.common.code.PerformRulesTypeEnum;
import com.mortals.xhx.common.code.PerformTypeEnum; import com.mortals.xhx.common.code.PerformTypeEnum;
...@@ -19,6 +20,13 @@ import com.mortals.xhx.module.perform.service.PerformRulesService; ...@@ -19,6 +20,13 @@ import com.mortals.xhx.module.perform.service.PerformRulesService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import static com.mortals.xhx.base.system.idgenerator.service.impl.IdgeneratorServiceImpl.IdGeneratorKey.*; import static com.mortals.xhx.base.system.idgenerator.service.impl.IdgeneratorServiceImpl.IdGeneratorKey.*;
/** /**
...@@ -93,4 +101,31 @@ public class PerformRulesServiceImpl extends AbstractCRUDCacheServiceImpl<Perfor ...@@ -93,4 +101,31 @@ public class PerformRulesServiceImpl extends AbstractCRUDCacheServiceImpl<Perfor
System.out.println(PinyinUtil.getFirstLetter(str, "")); System.out.println(PinyinUtil.getFirstLetter(str, ""));
} }
@Override
public Map<String,Object> summaryRules() throws AppException {
Map<String,Object> resultMap = new HashMap<>();
List<PerformRulesEntity> all = this.getAllList();
List<PerformRulesEntity> resultList = new ArrayList<>();
BigDecimal totalScore = new BigDecimal(0);
Map<Integer,List<PerformRulesEntity>> groupMap = all.stream().collect(Collectors.groupingBy(PerformRulesEntity::getType));
for (Map.Entry<Integer, List<PerformRulesEntity>> entry:groupMap.entrySet()){
BigDecimal sum = new BigDecimal(0);
for(PerformRulesEntity item:entry.getValue()){
sum = sum.add(item.getScore());
}
PerformRulesEntity entity = new PerformRulesEntity();
entity.setType(entry.getKey());
CheckTypeEnum type = CheckTypeEnum.getByValue(entry.getKey());
if(type!=null){
entity.setTypeName(type.getDesc());
}
entity.setScore(sum);
totalScore = totalScore.add(sum);
resultList.add(entity);
}
resultMap.put("totalScore",totalScore);
resultMap.put("list",resultList);
return resultMap;
}
} }
\ No newline at end of file
...@@ -41,6 +41,7 @@ public class PerformStaffConfServiceImpl extends AbstractCRUDServiceImpl<Perform ...@@ -41,6 +41,7 @@ public class PerformStaffConfServiceImpl extends AbstractCRUDServiceImpl<Perform
private PerformRulesCategoryService performRulesCategoryService; private PerformRulesCategoryService performRulesCategoryService;
@Override @Override
protected void saveBefore(PerformStaffConfEntity entity, Context context) throws AppException { protected void saveBefore(PerformStaffConfEntity entity, Context context) throws AppException {
super.saveBefore(entity,context); super.saveBefore(entity,context);
......
package com.mortals.xhx.module.perform.web; package com.mortals.xhx.module.perform.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.base.system.user.model.UserQuery;
import com.mortals.xhx.base.system.user.service.UserService;
import com.mortals.xhx.common.code.CheckTypeEnum; import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.common.code.EnableEnum; import com.mortals.xhx.common.code.EnableEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
...@@ -37,6 +42,8 @@ public class PerformDeptConfController extends BaseCRUDJsonBodyMappingController ...@@ -37,6 +42,8 @@ public class PerformDeptConfController extends BaseCRUDJsonBodyMappingController
@Autowired @Autowired
private ParamService paramService; private ParamService paramService;
@Autowired
private UserService userService;
public PerformDeptConfController(){ public PerformDeptConfController(){
super.setModuleDesc( "部门自动考核信息"); super.setModuleDesc( "部门自动考核信息");
...@@ -46,8 +53,20 @@ public class PerformDeptConfController extends BaseCRUDJsonBodyMappingController ...@@ -46,8 +53,20 @@ public class PerformDeptConfController extends BaseCRUDJsonBodyMappingController
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "type", CheckTypeEnum.getEnumMap()); this.addDict(model, "type", CheckTypeEnum.getEnumMap());
this.addDict(model, "enable", EnableEnum.getEnumMap()); this.addDict(model, "enable", EnableEnum.getEnumMap());
Map<String, String> collect = userService.find(new UserQuery(), getContext()).stream()
.collect(Collectors.toMap(x -> x.getId().toString(), y -> y.getRealName(), (o, n) -> n));
this.addDict(model, "updateUserId", collect);
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(PerformDeptConfEntity query, Map<String, Object> model, Context context) throws AppException {
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
} }
\ No newline at end of file
package com.mortals.xhx.module.perform.web; package com.mortals.xhx.module.perform.web;
import com.mortals.framework.annotation.UnAuth;
import com.mortals.framework.common.Rest;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import com.mortals.framework.model.OrderCol; import com.mortals.framework.model.OrderCol;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.Result;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.base.system.user.model.UserQuery; import com.mortals.xhx.base.system.user.model.UserQuery;
import com.mortals.xhx.base.system.user.service.UserService; import com.mortals.xhx.base.system.user.service.UserService;
import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.module.perform.model.PerformRulesCategoryQuery; import com.mortals.xhx.module.perform.model.PerformRulesCategoryQuery;
import com.mortals.xhx.module.perform.model.PerformRulesEntity; import com.mortals.xhx.module.perform.model.PerformRulesEntity;
import com.mortals.xhx.module.perform.service.PerformRulesCategoryService; import com.mortals.xhx.module.perform.service.PerformRulesCategoryService;
import com.mortals.xhx.module.perform.service.PerformRulesService; import com.mortals.xhx.module.perform.service.PerformRulesService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap;
import java.util.Map; import java.util.Map;
import static java.util.stream.Collectors.toMap; import static java.util.stream.Collectors.toMap;
...@@ -47,7 +56,7 @@ public class PerformRulesController extends BaseCRUDJsonBodyMappingController<Pe ...@@ -47,7 +56,7 @@ public class PerformRulesController extends BaseCRUDJsonBodyMappingController<Pe
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformRules", "subAddType")); this.addDict(model, "subAddType", paramService.getParamBySecondOrganize("PerformRules", "subAddType"));
this.addDict(model, "assoOwner", paramService.getParamBySecondOrganize("PerformRules", "assoOwner")); this.addDict(model, "assoOwner", paramService.getParamBySecondOrganize("PerformRules", "assoOwner"));
this.addDict(model, "type", paramService.getParamBySecondOrganize("PerformRules", "type")); this.addDict(model, "type", CheckTypeEnum.getEnumMap());
this.addDict(model, "categoryId", categoryService.find(new PerformRulesCategoryQuery()).stream().collect(toMap(x -> x.getId().toString(), y -> y.getName(), (o, n) -> n))); this.addDict(model, "categoryId", categoryService.find(new PerformRulesCategoryQuery()).stream().collect(toMap(x -> x.getId().toString(), y -> y.getName(), (o, n) -> n)));
this.addDict(model, "createUserId", userService.find(new UserQuery()).stream().collect(toMap(x -> x.getId().toString(), y -> y.getRealName(), (o, n) -> n))); this.addDict(model, "createUserId", userService.find(new UserQuery()).stream().collect(toMap(x -> x.getId().toString(), y -> y.getRealName(), (o, n) -> n)));
super.init(model, context); super.init(model, context);
...@@ -58,4 +67,33 @@ public class PerformRulesController extends BaseCRUDJsonBodyMappingController<Pe ...@@ -58,4 +67,33 @@ public class PerformRulesController extends BaseCRUDJsonBodyMappingController<Pe
super.doListBefore(query, model, context); super.doListBefore(query, model, context);
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING))); query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} }
@PostMapping({"summary"})
@UnAuth
public Rest<Object> summary() {
Rest<Object> ret = new Rest();
Map<String, Object> model = new HashMap();
Context context = this.getContext();
String busiDesc = "查询规则分数统计";
int code = 1;
try {
Map<String,Object> result = this.getService().summaryRules();
model.put("data", result);
model.put("message_info", busiDesc + "成功");
if (!ObjectUtils.isEmpty(context) && !ObjectUtils.isEmpty(context.getUser())) {
this.recordSysLog(this.request, busiDesc + " 【成功】");
}
} catch (Exception var9) {
code = -1;
this.doException(this.request, busiDesc, model, var9);
}
this.init(model, context);
ret.setCode(code);
ret.setData(model.get("data"));
ret.setDict(model.get("dict"));
ret.setMsg(model.get("message_info") == null ? "" : model.remove("message_info").toString());
return ret;
}
} }
\ No newline at end of file
package com.mortals.xhx.module.perform.web; package com.mortals.xhx.module.perform.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.system.param.service.ParamService; import com.mortals.xhx.base.system.param.service.ParamService;
import com.mortals.xhx.base.system.user.model.UserQuery;
import com.mortals.xhx.base.system.user.service.UserService;
import com.mortals.xhx.common.code.CheckTypeEnum; import com.mortals.xhx.common.code.CheckTypeEnum;
import com.mortals.xhx.common.code.EnableEnum; import com.mortals.xhx.common.code.EnableEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import com.mortals.framework.model.Context; import com.mortals.framework.model.Context;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController; import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.perform.model.PerformStaffConfEntity; import com.mortals.xhx.module.perform.model.PerformStaffConfEntity;
import com.mortals.xhx.module.perform.service.PerformStaffConfService; import com.mortals.xhx.module.perform.service.PerformStaffConfService;
import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.ArrayUtils;
import com.mortals.framework.util.StringUtils; import com.mortals.framework.util.StringUtils;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import java.util.Arrays; import java.util.Arrays;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import static com.mortals.framework.ap.SysConstains.*; import static com.mortals.framework.ap.SysConstains.*;
/** /**
* * 人员自动考核信息
* 人员自动考核信息 *
* * @author zxfei
* @author zxfei * @date 2023-05-16
* @date 2023-05-16 */
*/
@RestController @RestController
@RequestMapping("perform/staff/conf") @RequestMapping("perform/staff/conf")
public class PerformStaffConfController extends BaseCRUDJsonBodyMappingController<PerformStaffConfService,PerformStaffConfEntity,Long> { public class PerformStaffConfController extends BaseCRUDJsonBodyMappingController<PerformStaffConfService, PerformStaffConfEntity, Long> {
@Autowired @Autowired
private ParamService paramService; private ParamService paramService;
@Autowired
private UserService userService;
public PerformStaffConfController(){ public PerformStaffConfController() {
super.setModuleDesc( "人员自动考核信息"); super.setModuleDesc("人员自动考核信息");
} }
@Override @Override
protected void init(Map<String, Object> model, Context context) { protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "type", CheckTypeEnum.getEnumMap()); this.addDict(model, "type", CheckTypeEnum.getEnumMap());
this.addDict(model, "enable", EnableEnum.getEnumMap()); this.addDict(model, "enable", EnableEnum.getEnumMap());
Map<String, String> collect = userService.find(new UserQuery(), getContext()).stream()
.collect(Collectors.toMap(x -> x.getId().toString(), y -> y.getRealName(), (o, n) -> n));
this.addDict(model, "updateUserId", collect);
super.init(model, context); super.init(model, context);
} }
@Override
protected void doListBefore(PerformStaffConfEntity query, Map<String, Object> model, Context context) throws AppException {
if (ObjectUtils.isEmpty(query.getOrderColList())) {
query.setOrderColList(Arrays.asList(new OrderCol("createTime", OrderCol.DESCENDING)));
} else {
query.getOrderColList().add(new OrderCol("createTime", OrderCol.DESCENDING));
}
}
} }
\ No newline at end of file
package com.mortals.xhx.module.staff.model; package com.mortals.xhx.module.staff.model;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date;
import java.util.List; import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import cn.hutool.core.date.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel; import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.staff.model.vo.StaffPerformStatVo; import com.mortals.xhx.module.staff.model.vo.StaffPerformStatVo;
import lombok.Data; import lombok.Data;
/** /**
* 员工绩效统计实体对象 * 员工绩效统计实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-13 * @date 2023-07-14
*/ */
@Data @Data
public class StaffPerformStatEntity extends StaffPerformStatVo { public class StaffPerformStatEntity extends StaffPerformStatVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -56,11 +51,11 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -56,11 +51,11 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
/** /**
* 评价绩效指标增加分数 * 评价绩效指标增加分数
*/ */
private BigDecimal assessScoreAdd; private BigDecimal reviewScoreAdd;
/** /**
* 评价绩效指标扣减分数 * 评价绩效指标扣减分数
*/ */
private BigDecimal assessScoreSub; private BigDecimal reviewScoreSub;
/** /**
* 投诉绩效指标增加分数 * 投诉绩效指标增加分数
*/ */
...@@ -72,11 +67,11 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -72,11 +67,11 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
/** /**
* 办件绩效指标增加分数 * 办件绩效指标增加分数
*/ */
private BigDecimal workScoreAdd; private BigDecimal goworkScoreAdd;
/** /**
* 办件绩效指标扣减分数 * 办件绩效指标扣减分数
*/ */
private BigDecimal workScoreSub; private BigDecimal goworkScoreSub;
/** /**
* 效能绩效指标增加分数 * 效能绩效指标增加分数
*/ */
...@@ -109,12 +104,10 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -109,12 +104,10 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
* 日 * 日
*/ */
private Integer day; private Integer day;
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
} }
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj == null) return false; if (obj == null) return false;
...@@ -127,7 +120,7 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -127,7 +120,7 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
return false; return false;
} }
public void initAttrValue() { public void initAttrValue(){
this.staffId = 0L; this.staffId = 0L;
...@@ -143,17 +136,17 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -143,17 +136,17 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
this.attendScoreSub = new BigDecimal(0); this.attendScoreSub = new BigDecimal(0);
this.assessScoreAdd = new BigDecimal(0); this.reviewScoreAdd = new BigDecimal(0);
this.assessScoreSub = new BigDecimal(0); this.reviewScoreSub = new BigDecimal(0);
this.complainScoreAdd = new BigDecimal(0); this.complainScoreAdd = new BigDecimal(0);
this.complainScoreSub = new BigDecimal(0); this.complainScoreSub = new BigDecimal(0);
this.workScoreAdd = new BigDecimal(0); this.goworkScoreAdd = new BigDecimal(0);
this.workScoreSub = new BigDecimal(0); this.goworkScoreSub = new BigDecimal(0);
this.effectScoreAdd = new BigDecimal(0); this.effectScoreAdd = new BigDecimal(0);
...@@ -165,10 +158,10 @@ public class StaffPerformStatEntity extends StaffPerformStatVo { ...@@ -165,10 +158,10 @@ public class StaffPerformStatEntity extends StaffPerformStatVo {
this.remark = ""; this.remark = "";
this.year = DateUtil.year(new Date()); this.year = -1;
this.month = DateUtil.month(new Date()) + 1; this.month = -1;
this.day = DateUtil.dayOfMonth(new Date()); this.day = -1;
} }
} }
\ No newline at end of file
...@@ -4,11 +4,11 @@ import java.math.BigDecimal; ...@@ -4,11 +4,11 @@ import java.math.BigDecimal;
import java.util.List; import java.util.List;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity; import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
/** /**
* 员工绩效统计查询对象 * 员工绩效统计查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-13 * @date 2023-07-14
*/ */
public class StaffPerformStatQuery extends StaffPerformStatEntity { public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** 开始 主键ID,主键,自增长 */ /** 开始 主键ID,主键,自增长 */
private Long idStart; private Long idStart;
...@@ -121,34 +121,34 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -121,34 +121,34 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
private List <BigDecimal> attendScoreSubNotList; private List <BigDecimal> attendScoreSubNotList;
/** 开始 评价绩效指标增加分数 */ /** 开始 评价绩效指标增加分数 */
private BigDecimal assessScoreAddStart; private BigDecimal reviewScoreAddStart;
/** 结束 评价绩效指标增加分数 */ /** 结束 评价绩效指标增加分数 */
private BigDecimal assessScoreAddEnd; private BigDecimal reviewScoreAddEnd;
/** 增加 评价绩效指标增加分数 */ /** 增加 评价绩效指标增加分数 */
private BigDecimal assessScoreAddIncrement; private BigDecimal reviewScoreAddIncrement;
/** 评价绩效指标增加分数列表 */ /** 评价绩效指标增加分数列表 */
private List <BigDecimal> assessScoreAddList; private List <BigDecimal> reviewScoreAddList;
/** 评价绩效指标增加分数排除列表 */ /** 评价绩效指标增加分数排除列表 */
private List <BigDecimal> assessScoreAddNotList; private List <BigDecimal> reviewScoreAddNotList;
/** 开始 评价绩效指标扣减分数 */ /** 开始 评价绩效指标扣减分数 */
private BigDecimal assessScoreSubStart; private BigDecimal reviewScoreSubStart;
/** 结束 评价绩效指标扣减分数 */ /** 结束 评价绩效指标扣减分数 */
private BigDecimal assessScoreSubEnd; private BigDecimal reviewScoreSubEnd;
/** 增加 评价绩效指标扣减分数 */ /** 增加 评价绩效指标扣减分数 */
private BigDecimal assessScoreSubIncrement; private BigDecimal reviewScoreSubIncrement;
/** 评价绩效指标扣减分数列表 */ /** 评价绩效指标扣减分数列表 */
private List <BigDecimal> assessScoreSubList; private List <BigDecimal> reviewScoreSubList;
/** 评价绩效指标扣减分数排除列表 */ /** 评价绩效指标扣减分数排除列表 */
private List <BigDecimal> assessScoreSubNotList; private List <BigDecimal> reviewScoreSubNotList;
/** 开始 投诉绩效指标增加分数 */ /** 开始 投诉绩效指标增加分数 */
private BigDecimal complainScoreAddStart; private BigDecimal complainScoreAddStart;
...@@ -181,34 +181,34 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -181,34 +181,34 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
private List <BigDecimal> complainScoreSubNotList; private List <BigDecimal> complainScoreSubNotList;
/** 开始 办件绩效指标增加分数 */ /** 开始 办件绩效指标增加分数 */
private BigDecimal workScoreAddStart; private BigDecimal goworkScoreAddStart;
/** 结束 办件绩效指标增加分数 */ /** 结束 办件绩效指标增加分数 */
private BigDecimal workScoreAddEnd; private BigDecimal goworkScoreAddEnd;
/** 增加 办件绩效指标增加分数 */ /** 增加 办件绩效指标增加分数 */
private BigDecimal workScoreAddIncrement; private BigDecimal goworkScoreAddIncrement;
/** 办件绩效指标增加分数列表 */ /** 办件绩效指标增加分数列表 */
private List <BigDecimal> workScoreAddList; private List <BigDecimal> goworkScoreAddList;
/** 办件绩效指标增加分数排除列表 */ /** 办件绩效指标增加分数排除列表 */
private List <BigDecimal> workScoreAddNotList; private List <BigDecimal> goworkScoreAddNotList;
/** 开始 办件绩效指标扣减分数 */ /** 开始 办件绩效指标扣减分数 */
private BigDecimal workScoreSubStart; private BigDecimal goworkScoreSubStart;
/** 结束 办件绩效指标扣减分数 */ /** 结束 办件绩效指标扣减分数 */
private BigDecimal workScoreSubEnd; private BigDecimal goworkScoreSubEnd;
/** 增加 办件绩效指标扣减分数 */ /** 增加 办件绩效指标扣减分数 */
private BigDecimal workScoreSubIncrement; private BigDecimal goworkScoreSubIncrement;
/** 办件绩效指标扣减分数列表 */ /** 办件绩效指标扣减分数列表 */
private List <BigDecimal> workScoreSubList; private List <BigDecimal> goworkScoreSubList;
/** 办件绩效指标扣减分数排除列表 */ /** 办件绩效指标扣减分数排除列表 */
private List <BigDecimal> workScoreSubNotList; private List <BigDecimal> goworkScoreSubNotList;
/** 开始 效能绩效指标增加分数 */ /** 开始 效能绩效指标增加分数 */
private BigDecimal effectScoreAddStart; private BigDecimal effectScoreAddStart;
...@@ -971,163 +971,163 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -971,163 +971,163 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** /**
* 获取 开始 评价绩效指标增加分数 * 获取 开始 评价绩效指标增加分数
* @return assessScoreAddStart * @return reviewScoreAddStart
*/ */
public BigDecimal getAssessScoreAddStart(){ public BigDecimal getReviewScoreAddStart(){
return this.assessScoreAddStart; return this.reviewScoreAddStart;
} }
/** /**
* 设置 开始 评价绩效指标增加分数 * 设置 开始 评价绩效指标增加分数
* @param assessScoreAddStart * @param reviewScoreAddStart
*/ */
public void setAssessScoreAddStart(BigDecimal assessScoreAddStart){ public void setReviewScoreAddStart(BigDecimal reviewScoreAddStart){
this.assessScoreAddStart = assessScoreAddStart; this.reviewScoreAddStart = reviewScoreAddStart;
} }
/** /**
* 获取 结束 评价绩效指标增加分数 * 获取 结束 评价绩效指标增加分数
* @return $assessScoreAddEnd * @return $reviewScoreAddEnd
*/ */
public BigDecimal getAssessScoreAddEnd(){ public BigDecimal getReviewScoreAddEnd(){
return this.assessScoreAddEnd; return this.reviewScoreAddEnd;
} }
/** /**
* 设置 结束 评价绩效指标增加分数 * 设置 结束 评价绩效指标增加分数
* @param assessScoreAddEnd * @param reviewScoreAddEnd
*/ */
public void setAssessScoreAddEnd(BigDecimal assessScoreAddEnd){ public void setReviewScoreAddEnd(BigDecimal reviewScoreAddEnd){
this.assessScoreAddEnd = assessScoreAddEnd; this.reviewScoreAddEnd = reviewScoreAddEnd;
} }
/** /**
* 获取 增加 评价绩效指标增加分数 * 获取 增加 评价绩效指标增加分数
* @return assessScoreAddIncrement * @return reviewScoreAddIncrement
*/ */
public BigDecimal getAssessScoreAddIncrement(){ public BigDecimal getReviewScoreAddIncrement(){
return this.assessScoreAddIncrement; return this.reviewScoreAddIncrement;
} }
/** /**
* 设置 增加 评价绩效指标增加分数 * 设置 增加 评价绩效指标增加分数
* @param assessScoreAddIncrement * @param reviewScoreAddIncrement
*/ */
public void setAssessScoreAddIncrement(BigDecimal assessScoreAddIncrement){ public void setReviewScoreAddIncrement(BigDecimal reviewScoreAddIncrement){
this.assessScoreAddIncrement = assessScoreAddIncrement; this.reviewScoreAddIncrement = reviewScoreAddIncrement;
} }
/** /**
* 获取 评价绩效指标增加分数 * 获取 评价绩效指标增加分数
* @return assessScoreAddList * @return reviewScoreAddList
*/ */
public List<BigDecimal> getAssessScoreAddList(){ public List<BigDecimal> getReviewScoreAddList(){
return this.assessScoreAddList; return this.reviewScoreAddList;
} }
/** /**
* 设置 评价绩效指标增加分数 * 设置 评价绩效指标增加分数
* @param assessScoreAddList * @param reviewScoreAddList
*/ */
public void setAssessScoreAddList(List<BigDecimal> assessScoreAddList){ public void setReviewScoreAddList(List<BigDecimal> reviewScoreAddList){
this.assessScoreAddList = assessScoreAddList; this.reviewScoreAddList = reviewScoreAddList;
} }
/** /**
* 获取 评价绩效指标增加分数 * 获取 评价绩效指标增加分数
* @return assessScoreAddNotList * @return reviewScoreAddNotList
*/ */
public List<BigDecimal> getAssessScoreAddNotList(){ public List<BigDecimal> getReviewScoreAddNotList(){
return this.assessScoreAddNotList; return this.reviewScoreAddNotList;
} }
/** /**
* 设置 评价绩效指标增加分数 * 设置 评价绩效指标增加分数
* @param assessScoreAddNotList * @param reviewScoreAddNotList
*/ */
public void setAssessScoreAddNotList(List<BigDecimal> assessScoreAddNotList){ public void setReviewScoreAddNotList(List<BigDecimal> reviewScoreAddNotList){
this.assessScoreAddNotList = assessScoreAddNotList; this.reviewScoreAddNotList = reviewScoreAddNotList;
} }
/** /**
* 获取 开始 评价绩效指标扣减分数 * 获取 开始 评价绩效指标扣减分数
* @return assessScoreSubStart * @return reviewScoreSubStart
*/ */
public BigDecimal getAssessScoreSubStart(){ public BigDecimal getReviewScoreSubStart(){
return this.assessScoreSubStart; return this.reviewScoreSubStart;
} }
/** /**
* 设置 开始 评价绩效指标扣减分数 * 设置 开始 评价绩效指标扣减分数
* @param assessScoreSubStart * @param reviewScoreSubStart
*/ */
public void setAssessScoreSubStart(BigDecimal assessScoreSubStart){ public void setReviewScoreSubStart(BigDecimal reviewScoreSubStart){
this.assessScoreSubStart = assessScoreSubStart; this.reviewScoreSubStart = reviewScoreSubStart;
} }
/** /**
* 获取 结束 评价绩效指标扣减分数 * 获取 结束 评价绩效指标扣减分数
* @return $assessScoreSubEnd * @return $reviewScoreSubEnd
*/ */
public BigDecimal getAssessScoreSubEnd(){ public BigDecimal getReviewScoreSubEnd(){
return this.assessScoreSubEnd; return this.reviewScoreSubEnd;
} }
/** /**
* 设置 结束 评价绩效指标扣减分数 * 设置 结束 评价绩效指标扣减分数
* @param assessScoreSubEnd * @param reviewScoreSubEnd
*/ */
public void setAssessScoreSubEnd(BigDecimal assessScoreSubEnd){ public void setReviewScoreSubEnd(BigDecimal reviewScoreSubEnd){
this.assessScoreSubEnd = assessScoreSubEnd; this.reviewScoreSubEnd = reviewScoreSubEnd;
} }
/** /**
* 获取 增加 评价绩效指标扣减分数 * 获取 增加 评价绩效指标扣减分数
* @return assessScoreSubIncrement * @return reviewScoreSubIncrement
*/ */
public BigDecimal getAssessScoreSubIncrement(){ public BigDecimal getReviewScoreSubIncrement(){
return this.assessScoreSubIncrement; return this.reviewScoreSubIncrement;
} }
/** /**
* 设置 增加 评价绩效指标扣减分数 * 设置 增加 评价绩效指标扣减分数
* @param assessScoreSubIncrement * @param reviewScoreSubIncrement
*/ */
public void setAssessScoreSubIncrement(BigDecimal assessScoreSubIncrement){ public void setReviewScoreSubIncrement(BigDecimal reviewScoreSubIncrement){
this.assessScoreSubIncrement = assessScoreSubIncrement; this.reviewScoreSubIncrement = reviewScoreSubIncrement;
} }
/** /**
* 获取 评价绩效指标扣减分数 * 获取 评价绩效指标扣减分数
* @return assessScoreSubList * @return reviewScoreSubList
*/ */
public List<BigDecimal> getAssessScoreSubList(){ public List<BigDecimal> getReviewScoreSubList(){
return this.assessScoreSubList; return this.reviewScoreSubList;
} }
/** /**
* 设置 评价绩效指标扣减分数 * 设置 评价绩效指标扣减分数
* @param assessScoreSubList * @param reviewScoreSubList
*/ */
public void setAssessScoreSubList(List<BigDecimal> assessScoreSubList){ public void setReviewScoreSubList(List<BigDecimal> reviewScoreSubList){
this.assessScoreSubList = assessScoreSubList; this.reviewScoreSubList = reviewScoreSubList;
} }
/** /**
* 获取 评价绩效指标扣减分数 * 获取 评价绩效指标扣减分数
* @return assessScoreSubNotList * @return reviewScoreSubNotList
*/ */
public List<BigDecimal> getAssessScoreSubNotList(){ public List<BigDecimal> getReviewScoreSubNotList(){
return this.assessScoreSubNotList; return this.reviewScoreSubNotList;
} }
/** /**
* 设置 评价绩效指标扣减分数 * 设置 评价绩效指标扣减分数
* @param assessScoreSubNotList * @param reviewScoreSubNotList
*/ */
public void setAssessScoreSubNotList(List<BigDecimal> assessScoreSubNotList){ public void setReviewScoreSubNotList(List<BigDecimal> reviewScoreSubNotList){
this.assessScoreSubNotList = assessScoreSubNotList; this.reviewScoreSubNotList = reviewScoreSubNotList;
} }
...@@ -1295,163 +1295,163 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -1295,163 +1295,163 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** /**
* 获取 开始 办件绩效指标增加分数 * 获取 开始 办件绩效指标增加分数
* @return workScoreAddStart * @return goworkScoreAddStart
*/ */
public BigDecimal getWorkScoreAddStart(){ public BigDecimal getGoworkScoreAddStart(){
return this.workScoreAddStart; return this.goworkScoreAddStart;
} }
/** /**
* 设置 开始 办件绩效指标增加分数 * 设置 开始 办件绩效指标增加分数
* @param workScoreAddStart * @param goworkScoreAddStart
*/ */
public void setWorkScoreAddStart(BigDecimal workScoreAddStart){ public void setGoworkScoreAddStart(BigDecimal goworkScoreAddStart){
this.workScoreAddStart = workScoreAddStart; this.goworkScoreAddStart = goworkScoreAddStart;
} }
/** /**
* 获取 结束 办件绩效指标增加分数 * 获取 结束 办件绩效指标增加分数
* @return $workScoreAddEnd * @return $goworkScoreAddEnd
*/ */
public BigDecimal getWorkScoreAddEnd(){ public BigDecimal getGoworkScoreAddEnd(){
return this.workScoreAddEnd; return this.goworkScoreAddEnd;
} }
/** /**
* 设置 结束 办件绩效指标增加分数 * 设置 结束 办件绩效指标增加分数
* @param workScoreAddEnd * @param goworkScoreAddEnd
*/ */
public void setWorkScoreAddEnd(BigDecimal workScoreAddEnd){ public void setGoworkScoreAddEnd(BigDecimal goworkScoreAddEnd){
this.workScoreAddEnd = workScoreAddEnd; this.goworkScoreAddEnd = goworkScoreAddEnd;
} }
/** /**
* 获取 增加 办件绩效指标增加分数 * 获取 增加 办件绩效指标增加分数
* @return workScoreAddIncrement * @return goworkScoreAddIncrement
*/ */
public BigDecimal getWorkScoreAddIncrement(){ public BigDecimal getGoworkScoreAddIncrement(){
return this.workScoreAddIncrement; return this.goworkScoreAddIncrement;
} }
/** /**
* 设置 增加 办件绩效指标增加分数 * 设置 增加 办件绩效指标增加分数
* @param workScoreAddIncrement * @param goworkScoreAddIncrement
*/ */
public void setWorkScoreAddIncrement(BigDecimal workScoreAddIncrement){ public void setGoworkScoreAddIncrement(BigDecimal goworkScoreAddIncrement){
this.workScoreAddIncrement = workScoreAddIncrement; this.goworkScoreAddIncrement = goworkScoreAddIncrement;
} }
/** /**
* 获取 办件绩效指标增加分数 * 获取 办件绩效指标增加分数
* @return workScoreAddList * @return goworkScoreAddList
*/ */
public List<BigDecimal> getWorkScoreAddList(){ public List<BigDecimal> getGoworkScoreAddList(){
return this.workScoreAddList; return this.goworkScoreAddList;
} }
/** /**
* 设置 办件绩效指标增加分数 * 设置 办件绩效指标增加分数
* @param workScoreAddList * @param goworkScoreAddList
*/ */
public void setWorkScoreAddList(List<BigDecimal> workScoreAddList){ public void setGoworkScoreAddList(List<BigDecimal> goworkScoreAddList){
this.workScoreAddList = workScoreAddList; this.goworkScoreAddList = goworkScoreAddList;
} }
/** /**
* 获取 办件绩效指标增加分数 * 获取 办件绩效指标增加分数
* @return workScoreAddNotList * @return goworkScoreAddNotList
*/ */
public List<BigDecimal> getWorkScoreAddNotList(){ public List<BigDecimal> getGoworkScoreAddNotList(){
return this.workScoreAddNotList; return this.goworkScoreAddNotList;
} }
/** /**
* 设置 办件绩效指标增加分数 * 设置 办件绩效指标增加分数
* @param workScoreAddNotList * @param goworkScoreAddNotList
*/ */
public void setWorkScoreAddNotList(List<BigDecimal> workScoreAddNotList){ public void setGoworkScoreAddNotList(List<BigDecimal> goworkScoreAddNotList){
this.workScoreAddNotList = workScoreAddNotList; this.goworkScoreAddNotList = goworkScoreAddNotList;
} }
/** /**
* 获取 开始 办件绩效指标扣减分数 * 获取 开始 办件绩效指标扣减分数
* @return workScoreSubStart * @return goworkScoreSubStart
*/ */
public BigDecimal getWorkScoreSubStart(){ public BigDecimal getGoworkScoreSubStart(){
return this.workScoreSubStart; return this.goworkScoreSubStart;
} }
/** /**
* 设置 开始 办件绩效指标扣减分数 * 设置 开始 办件绩效指标扣减分数
* @param workScoreSubStart * @param goworkScoreSubStart
*/ */
public void setWorkScoreSubStart(BigDecimal workScoreSubStart){ public void setGoworkScoreSubStart(BigDecimal goworkScoreSubStart){
this.workScoreSubStart = workScoreSubStart; this.goworkScoreSubStart = goworkScoreSubStart;
} }
/** /**
* 获取 结束 办件绩效指标扣减分数 * 获取 结束 办件绩效指标扣减分数
* @return $workScoreSubEnd * @return $goworkScoreSubEnd
*/ */
public BigDecimal getWorkScoreSubEnd(){ public BigDecimal getGoworkScoreSubEnd(){
return this.workScoreSubEnd; return this.goworkScoreSubEnd;
} }
/** /**
* 设置 结束 办件绩效指标扣减分数 * 设置 结束 办件绩效指标扣减分数
* @param workScoreSubEnd * @param goworkScoreSubEnd
*/ */
public void setWorkScoreSubEnd(BigDecimal workScoreSubEnd){ public void setGoworkScoreSubEnd(BigDecimal goworkScoreSubEnd){
this.workScoreSubEnd = workScoreSubEnd; this.goworkScoreSubEnd = goworkScoreSubEnd;
} }
/** /**
* 获取 增加 办件绩效指标扣减分数 * 获取 增加 办件绩效指标扣减分数
* @return workScoreSubIncrement * @return goworkScoreSubIncrement
*/ */
public BigDecimal getWorkScoreSubIncrement(){ public BigDecimal getGoworkScoreSubIncrement(){
return this.workScoreSubIncrement; return this.goworkScoreSubIncrement;
} }
/** /**
* 设置 增加 办件绩效指标扣减分数 * 设置 增加 办件绩效指标扣减分数
* @param workScoreSubIncrement * @param goworkScoreSubIncrement
*/ */
public void setWorkScoreSubIncrement(BigDecimal workScoreSubIncrement){ public void setGoworkScoreSubIncrement(BigDecimal goworkScoreSubIncrement){
this.workScoreSubIncrement = workScoreSubIncrement; this.goworkScoreSubIncrement = goworkScoreSubIncrement;
} }
/** /**
* 获取 办件绩效指标扣减分数 * 获取 办件绩效指标扣减分数
* @return workScoreSubList * @return goworkScoreSubList
*/ */
public List<BigDecimal> getWorkScoreSubList(){ public List<BigDecimal> getGoworkScoreSubList(){
return this.workScoreSubList; return this.goworkScoreSubList;
} }
/** /**
* 设置 办件绩效指标扣减分数 * 设置 办件绩效指标扣减分数
* @param workScoreSubList * @param goworkScoreSubList
*/ */
public void setWorkScoreSubList(List<BigDecimal> workScoreSubList){ public void setGoworkScoreSubList(List<BigDecimal> goworkScoreSubList){
this.workScoreSubList = workScoreSubList; this.goworkScoreSubList = goworkScoreSubList;
} }
/** /**
* 获取 办件绩效指标扣减分数 * 获取 办件绩效指标扣减分数
* @return workScoreSubNotList * @return goworkScoreSubNotList
*/ */
public List<BigDecimal> getWorkScoreSubNotList(){ public List<BigDecimal> getGoworkScoreSubNotList(){
return this.workScoreSubNotList; return this.goworkScoreSubNotList;
} }
/** /**
* 设置 办件绩效指标扣减分数 * 设置 办件绩效指标扣减分数
* @param workScoreSubNotList * @param goworkScoreSubNotList
*/ */
public void setWorkScoreSubNotList(List<BigDecimal> workScoreSubNotList){ public void setGoworkScoreSubNotList(List<BigDecimal> goworkScoreSubNotList){
this.workScoreSubNotList = workScoreSubNotList; this.goworkScoreSubNotList = goworkScoreSubNotList;
} }
...@@ -2679,109 +2679,109 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -2679,109 +2679,109 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** /**
* 设置 评价绩效指标增加分数 * 设置 评价绩效指标增加分数
* @param assessScoreAdd * @param reviewScoreAdd
*/ */
public StaffPerformStatQuery assessScoreAdd(BigDecimal assessScoreAdd){ public StaffPerformStatQuery reviewScoreAdd(BigDecimal reviewScoreAdd){
setAssessScoreAdd(assessScoreAdd); setReviewScoreAdd(reviewScoreAdd);
return this; return this;
} }
/** /**
* 设置 开始 评价绩效指标增加分数 * 设置 开始 评价绩效指标增加分数
* @param assessScoreAddStart * @param reviewScoreAddStart
*/ */
public StaffPerformStatQuery assessScoreAddStart(BigDecimal assessScoreAddStart){ public StaffPerformStatQuery reviewScoreAddStart(BigDecimal reviewScoreAddStart){
this.assessScoreAddStart = assessScoreAddStart; this.reviewScoreAddStart = reviewScoreAddStart;
return this; return this;
} }
/** /**
* 设置 结束 评价绩效指标增加分数 * 设置 结束 评价绩效指标增加分数
* @param assessScoreAddEnd * @param reviewScoreAddEnd
*/ */
public StaffPerformStatQuery assessScoreAddEnd(BigDecimal assessScoreAddEnd){ public StaffPerformStatQuery reviewScoreAddEnd(BigDecimal reviewScoreAddEnd){
this.assessScoreAddEnd = assessScoreAddEnd; this.reviewScoreAddEnd = reviewScoreAddEnd;
return this; return this;
} }
/** /**
* 设置 增加 评价绩效指标增加分数 * 设置 增加 评价绩效指标增加分数
* @param assessScoreAddIncrement * @param reviewScoreAddIncrement
*/ */
public StaffPerformStatQuery assessScoreAddIncrement(BigDecimal assessScoreAddIncrement){ public StaffPerformStatQuery reviewScoreAddIncrement(BigDecimal reviewScoreAddIncrement){
this.assessScoreAddIncrement = assessScoreAddIncrement; this.reviewScoreAddIncrement = reviewScoreAddIncrement;
return this; return this;
} }
/** /**
* 设置 评价绩效指标增加分数 * 设置 评价绩效指标增加分数
* @param assessScoreAddList * @param reviewScoreAddList
*/ */
public StaffPerformStatQuery assessScoreAddList(List<BigDecimal> assessScoreAddList){ public StaffPerformStatQuery reviewScoreAddList(List<BigDecimal> reviewScoreAddList){
this.assessScoreAddList = assessScoreAddList; this.reviewScoreAddList = reviewScoreAddList;
return this; return this;
} }
/** /**
* 设置 评价绩效指标增加分数 * 设置 评价绩效指标增加分数
* @param assessScoreAddNotList * @param reviewScoreAddNotList
*/ */
public StaffPerformStatQuery assessScoreAddNotList(List<BigDecimal> assessScoreAddNotList){ public StaffPerformStatQuery reviewScoreAddNotList(List<BigDecimal> reviewScoreAddNotList){
this.assessScoreAddNotList = assessScoreAddNotList; this.reviewScoreAddNotList = reviewScoreAddNotList;
return this; return this;
} }
/** /**
* 设置 评价绩效指标扣减分数 * 设置 评价绩效指标扣减分数
* @param assessScoreSub * @param reviewScoreSub
*/ */
public StaffPerformStatQuery assessScoreSub(BigDecimal assessScoreSub){ public StaffPerformStatQuery reviewScoreSub(BigDecimal reviewScoreSub){
setAssessScoreSub(assessScoreSub); setReviewScoreSub(reviewScoreSub);
return this; return this;
} }
/** /**
* 设置 开始 评价绩效指标扣减分数 * 设置 开始 评价绩效指标扣减分数
* @param assessScoreSubStart * @param reviewScoreSubStart
*/ */
public StaffPerformStatQuery assessScoreSubStart(BigDecimal assessScoreSubStart){ public StaffPerformStatQuery reviewScoreSubStart(BigDecimal reviewScoreSubStart){
this.assessScoreSubStart = assessScoreSubStart; this.reviewScoreSubStart = reviewScoreSubStart;
return this; return this;
} }
/** /**
* 设置 结束 评价绩效指标扣减分数 * 设置 结束 评价绩效指标扣减分数
* @param assessScoreSubEnd * @param reviewScoreSubEnd
*/ */
public StaffPerformStatQuery assessScoreSubEnd(BigDecimal assessScoreSubEnd){ public StaffPerformStatQuery reviewScoreSubEnd(BigDecimal reviewScoreSubEnd){
this.assessScoreSubEnd = assessScoreSubEnd; this.reviewScoreSubEnd = reviewScoreSubEnd;
return this; return this;
} }
/** /**
* 设置 增加 评价绩效指标扣减分数 * 设置 增加 评价绩效指标扣减分数
* @param assessScoreSubIncrement * @param reviewScoreSubIncrement
*/ */
public StaffPerformStatQuery assessScoreSubIncrement(BigDecimal assessScoreSubIncrement){ public StaffPerformStatQuery reviewScoreSubIncrement(BigDecimal reviewScoreSubIncrement){
this.assessScoreSubIncrement = assessScoreSubIncrement; this.reviewScoreSubIncrement = reviewScoreSubIncrement;
return this; return this;
} }
/** /**
* 设置 评价绩效指标扣减分数 * 设置 评价绩效指标扣减分数
* @param assessScoreSubList * @param reviewScoreSubList
*/ */
public StaffPerformStatQuery assessScoreSubList(List<BigDecimal> assessScoreSubList){ public StaffPerformStatQuery reviewScoreSubList(List<BigDecimal> reviewScoreSubList){
this.assessScoreSubList = assessScoreSubList; this.reviewScoreSubList = reviewScoreSubList;
return this; return this;
} }
/** /**
* 设置 评价绩效指标扣减分数 * 设置 评价绩效指标扣减分数
* @param assessScoreSubNotList * @param reviewScoreSubNotList
*/ */
public StaffPerformStatQuery assessScoreSubNotList(List<BigDecimal> assessScoreSubNotList){ public StaffPerformStatQuery reviewScoreSubNotList(List<BigDecimal> reviewScoreSubNotList){
this.assessScoreSubNotList = assessScoreSubNotList; this.reviewScoreSubNotList = reviewScoreSubNotList;
return this; return this;
} }
...@@ -2895,109 +2895,109 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity { ...@@ -2895,109 +2895,109 @@ public class StaffPerformStatQuery extends StaffPerformStatEntity {
/** /**
* 设置 办件绩效指标增加分数 * 设置 办件绩效指标增加分数
* @param workScoreAdd * @param goworkScoreAdd
*/ */
public StaffPerformStatQuery workScoreAdd(BigDecimal workScoreAdd){ public StaffPerformStatQuery goworkScoreAdd(BigDecimal goworkScoreAdd){
setWorkScoreAdd(workScoreAdd); setGoworkScoreAdd(goworkScoreAdd);
return this; return this;
} }
/** /**
* 设置 开始 办件绩效指标增加分数 * 设置 开始 办件绩效指标增加分数
* @param workScoreAddStart * @param goworkScoreAddStart
*/ */
public StaffPerformStatQuery workScoreAddStart(BigDecimal workScoreAddStart){ public StaffPerformStatQuery goworkScoreAddStart(BigDecimal goworkScoreAddStart){
this.workScoreAddStart = workScoreAddStart; this.goworkScoreAddStart = goworkScoreAddStart;
return this; return this;
} }
/** /**
* 设置 结束 办件绩效指标增加分数 * 设置 结束 办件绩效指标增加分数
* @param workScoreAddEnd * @param goworkScoreAddEnd
*/ */
public StaffPerformStatQuery workScoreAddEnd(BigDecimal workScoreAddEnd){ public StaffPerformStatQuery goworkScoreAddEnd(BigDecimal goworkScoreAddEnd){
this.workScoreAddEnd = workScoreAddEnd; this.goworkScoreAddEnd = goworkScoreAddEnd;
return this; return this;
} }
/** /**
* 设置 增加 办件绩效指标增加分数 * 设置 增加 办件绩效指标增加分数
* @param workScoreAddIncrement * @param goworkScoreAddIncrement
*/ */
public StaffPerformStatQuery workScoreAddIncrement(BigDecimal workScoreAddIncrement){ public StaffPerformStatQuery goworkScoreAddIncrement(BigDecimal goworkScoreAddIncrement){
this.workScoreAddIncrement = workScoreAddIncrement; this.goworkScoreAddIncrement = goworkScoreAddIncrement;
return this; return this;
} }
/** /**
* 设置 办件绩效指标增加分数 * 设置 办件绩效指标增加分数
* @param workScoreAddList * @param goworkScoreAddList
*/ */
public StaffPerformStatQuery workScoreAddList(List<BigDecimal> workScoreAddList){ public StaffPerformStatQuery goworkScoreAddList(List<BigDecimal> goworkScoreAddList){
this.workScoreAddList = workScoreAddList; this.goworkScoreAddList = goworkScoreAddList;
return this; return this;
} }
/** /**
* 设置 办件绩效指标增加分数 * 设置 办件绩效指标增加分数
* @param workScoreAddNotList * @param goworkScoreAddNotList
*/ */
public StaffPerformStatQuery workScoreAddNotList(List<BigDecimal> workScoreAddNotList){ public StaffPerformStatQuery goworkScoreAddNotList(List<BigDecimal> goworkScoreAddNotList){
this.workScoreAddNotList = workScoreAddNotList; this.goworkScoreAddNotList = goworkScoreAddNotList;
return this; return this;
} }
/** /**
* 设置 办件绩效指标扣减分数 * 设置 办件绩效指标扣减分数
* @param workScoreSub * @param goworkScoreSub
*/ */
public StaffPerformStatQuery workScoreSub(BigDecimal workScoreSub){ public StaffPerformStatQuery goworkScoreSub(BigDecimal goworkScoreSub){
setWorkScoreSub(workScoreSub); setGoworkScoreSub(goworkScoreSub);
return this; return this;
} }
/** /**
* 设置 开始 办件绩效指标扣减分数 * 设置 开始 办件绩效指标扣减分数
* @param workScoreSubStart * @param goworkScoreSubStart
*/ */
public StaffPerformStatQuery workScoreSubStart(BigDecimal workScoreSubStart){ public StaffPerformStatQuery goworkScoreSubStart(BigDecimal goworkScoreSubStart){
this.workScoreSubStart = workScoreSubStart; this.goworkScoreSubStart = goworkScoreSubStart;
return this; return this;
} }
/** /**
* 设置 结束 办件绩效指标扣减分数 * 设置 结束 办件绩效指标扣减分数
* @param workScoreSubEnd * @param goworkScoreSubEnd
*/ */
public StaffPerformStatQuery workScoreSubEnd(BigDecimal workScoreSubEnd){ public StaffPerformStatQuery goworkScoreSubEnd(BigDecimal goworkScoreSubEnd){
this.workScoreSubEnd = workScoreSubEnd; this.goworkScoreSubEnd = goworkScoreSubEnd;
return this; return this;
} }
/** /**
* 设置 增加 办件绩效指标扣减分数 * 设置 增加 办件绩效指标扣减分数
* @param workScoreSubIncrement * @param goworkScoreSubIncrement
*/ */
public StaffPerformStatQuery workScoreSubIncrement(BigDecimal workScoreSubIncrement){ public StaffPerformStatQuery goworkScoreSubIncrement(BigDecimal goworkScoreSubIncrement){
this.workScoreSubIncrement = workScoreSubIncrement; this.goworkScoreSubIncrement = goworkScoreSubIncrement;
return this; return this;
} }
/** /**
* 设置 办件绩效指标扣减分数 * 设置 办件绩效指标扣减分数
* @param workScoreSubList * @param goworkScoreSubList
*/ */
public StaffPerformStatQuery workScoreSubList(List<BigDecimal> workScoreSubList){ public StaffPerformStatQuery goworkScoreSubList(List<BigDecimal> goworkScoreSubList){
this.workScoreSubList = workScoreSubList; this.goworkScoreSubList = goworkScoreSubList;
return this; return this;
} }
/** /**
* 设置 办件绩效指标扣减分数 * 设置 办件绩效指标扣减分数
* @param workScoreSubNotList * @param goworkScoreSubNotList
*/ */
public StaffPerformStatQuery workScoreSubNotList(List<BigDecimal> workScoreSubNotList){ public StaffPerformStatQuery goworkScoreSubNotList(List<BigDecimal> goworkScoreSubNotList){
this.workScoreSubNotList = workScoreSubNotList; this.goworkScoreSubNotList = goworkScoreSubNotList;
return this; return this;
} }
......
...@@ -11,7 +11,7 @@ import lombok.Data; ...@@ -11,7 +11,7 @@ import lombok.Data;
* 员工绩效统计实体对象 * 员工绩效统计实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-05 * @date 2023-07-14
*/ */
@Data @Data
public class StaffPerformSummaryEntity extends StaffPerformSummaryVo { public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
...@@ -44,11 +44,15 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo { ...@@ -44,11 +44,15 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
/** /**
* 评价绩效指标分数 * 评价绩效指标分数
*/ */
private BigDecimal assessScore; private BigDecimal reviewScore;
/**
* 投诉绩效指标分数
*/
private BigDecimal complainScore;
/** /**
* 办件绩效分数 * 办件绩效分数
*/ */
private BigDecimal workScore; private BigDecimal goworkScore;
/** /**
* 效能绩效分数 * 效能绩效分数
*/ */
...@@ -107,9 +111,11 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo { ...@@ -107,9 +111,11 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
this.attendScore = new BigDecimal(0); this.attendScore = new BigDecimal(0);
this.assessScore = new BigDecimal(0); this.reviewScore = new BigDecimal(0);
this.complainScore = new BigDecimal(0);
this.workScore = new BigDecimal(0); this.goworkScore = new BigDecimal(0);
this.effectScore = new BigDecimal(0); this.effectScore = new BigDecimal(0);
......
...@@ -7,7 +7,7 @@ import com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity; ...@@ -7,7 +7,7 @@ import com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity;
* 员工绩效统计查询对象 * 员工绩效统计查询对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-05 * @date 2023-07-14
*/ */
public class StaffPerformSummaryQuery extends StaffPerformSummaryEntity { public class StaffPerformSummaryQuery extends StaffPerformSummaryEntity {
/** 开始 主键ID,主键,自增长 */ /** 开始 主键ID,主键,自增长 */
...@@ -86,34 +86,49 @@ public class StaffPerformSummaryQuery extends StaffPerformSummaryEntity { ...@@ -86,34 +86,49 @@ public class StaffPerformSummaryQuery extends StaffPerformSummaryEntity {
private List <BigDecimal> attendScoreNotList; private List <BigDecimal> attendScoreNotList;
/** 开始 评价绩效指标分数 */ /** 开始 评价绩效指标分数 */
private BigDecimal assessScoreStart; private BigDecimal reviewScoreStart;
/** 结束 评价绩效指标分数 */ /** 结束 评价绩效指标分数 */
private BigDecimal assessScoreEnd; private BigDecimal reviewScoreEnd;
/** 增加 评价绩效指标分数 */ /** 增加 评价绩效指标分数 */
private BigDecimal assessScoreIncrement; private BigDecimal reviewScoreIncrement;
/** 评价绩效指标分数列表 */ /** 评价绩效指标分数列表 */
private List <BigDecimal> assessScoreList; private List <BigDecimal> reviewScoreList;
/** 评价绩效指标分数排除列表 */ /** 评价绩效指标分数排除列表 */
private List <BigDecimal> assessScoreNotList; private List <BigDecimal> reviewScoreNotList;
/** 开始 投诉绩效指标分数 */
private BigDecimal complainScoreStart;
/** 结束 投诉绩效指标分数 */
private BigDecimal complainScoreEnd;
/** 增加 投诉绩效指标分数 */
private BigDecimal complainScoreIncrement;
/** 投诉绩效指标分数列表 */
private List <BigDecimal> complainScoreList;
/** 投诉绩效指标分数排除列表 */
private List <BigDecimal> complainScoreNotList;
/** 开始 办件绩效分数 */ /** 开始 办件绩效分数 */
private BigDecimal workScoreStart; private BigDecimal goworkScoreStart;
/** 结束 办件绩效分数 */ /** 结束 办件绩效分数 */
private BigDecimal workScoreEnd; private BigDecimal goworkScoreEnd;
/** 增加 办件绩效分数 */ /** 增加 办件绩效分数 */
private BigDecimal workScoreIncrement; private BigDecimal goworkScoreIncrement;
/** 办件绩效分数列表 */ /** 办件绩效分数列表 */
private List <BigDecimal> workScoreList; private List <BigDecimal> goworkScoreList;
/** 办件绩效分数排除列表 */ /** 办件绩效分数排除列表 */
private List <BigDecimal> workScoreNotList; private List <BigDecimal> goworkScoreNotList;
/** 开始 效能绩效分数 */ /** 开始 效能绩效分数 */
private BigDecimal effectScoreStart; private BigDecimal effectScoreStart;
...@@ -682,163 +697,244 @@ public class StaffPerformSummaryQuery extends StaffPerformSummaryEntity { ...@@ -682,163 +697,244 @@ public class StaffPerformSummaryQuery extends StaffPerformSummaryEntity {
/** /**
* 获取 开始 评价绩效指标分数 * 获取 开始 评价绩效指标分数
* @return assessScoreStart * @return reviewScoreStart
*/ */
public BigDecimal getAssessScoreStart(){ public BigDecimal getReviewScoreStart(){
return this.assessScoreStart; return this.reviewScoreStart;
} }
/** /**
* 设置 开始 评价绩效指标分数 * 设置 开始 评价绩效指标分数
* @param assessScoreStart * @param reviewScoreStart
*/ */
public void setAssessScoreStart(BigDecimal assessScoreStart){ public void setReviewScoreStart(BigDecimal reviewScoreStart){
this.assessScoreStart = assessScoreStart; this.reviewScoreStart = reviewScoreStart;
} }
/** /**
* 获取 结束 评价绩效指标分数 * 获取 结束 评价绩效指标分数
* @return $assessScoreEnd * @return $reviewScoreEnd
*/ */
public BigDecimal getAssessScoreEnd(){ public BigDecimal getReviewScoreEnd(){
return this.assessScoreEnd; return this.reviewScoreEnd;
} }
/** /**
* 设置 结束 评价绩效指标分数 * 设置 结束 评价绩效指标分数
* @param assessScoreEnd * @param reviewScoreEnd
*/ */
public void setAssessScoreEnd(BigDecimal assessScoreEnd){ public void setReviewScoreEnd(BigDecimal reviewScoreEnd){
this.assessScoreEnd = assessScoreEnd; this.reviewScoreEnd = reviewScoreEnd;
} }
/** /**
* 获取 增加 评价绩效指标分数 * 获取 增加 评价绩效指标分数
* @return assessScoreIncrement * @return reviewScoreIncrement
*/ */
public BigDecimal getAssessScoreIncrement(){ public BigDecimal getReviewScoreIncrement(){
return this.assessScoreIncrement; return this.reviewScoreIncrement;
} }
/** /**
* 设置 增加 评价绩效指标分数 * 设置 增加 评价绩效指标分数
* @param assessScoreIncrement * @param reviewScoreIncrement
*/ */
public void setAssessScoreIncrement(BigDecimal assessScoreIncrement){ public void setReviewScoreIncrement(BigDecimal reviewScoreIncrement){
this.assessScoreIncrement = assessScoreIncrement; this.reviewScoreIncrement = reviewScoreIncrement;
} }
/** /**
* 获取 评价绩效指标分数 * 获取 评价绩效指标分数
* @return assessScoreList * @return reviewScoreList
*/ */
public List<BigDecimal> getAssessScoreList(){ public List<BigDecimal> getReviewScoreList(){
return this.assessScoreList; return this.reviewScoreList;
} }
/** /**
* 设置 评价绩效指标分数 * 设置 评价绩效指标分数
* @param assessScoreList * @param reviewScoreList
*/ */
public void setAssessScoreList(List<BigDecimal> assessScoreList){ public void setReviewScoreList(List<BigDecimal> reviewScoreList){
this.assessScoreList = assessScoreList; this.reviewScoreList = reviewScoreList;
} }
/** /**
* 获取 评价绩效指标分数 * 获取 评价绩效指标分数
* @return assessScoreNotList * @return reviewScoreNotList
*/ */
public List<BigDecimal> getAssessScoreNotList(){ public List<BigDecimal> getReviewScoreNotList(){
return this.assessScoreNotList; return this.reviewScoreNotList;
} }
/** /**
* 设置 评价绩效指标分数 * 设置 评价绩效指标分数
* @param assessScoreNotList * @param reviewScoreNotList
*/
public void setReviewScoreNotList(List<BigDecimal> reviewScoreNotList){
this.reviewScoreNotList = reviewScoreNotList;
}
/**
* 获取 开始 投诉绩效指标分数
* @return complainScoreStart
*/
public BigDecimal getComplainScoreStart(){
return this.complainScoreStart;
}
/**
* 设置 开始 投诉绩效指标分数
* @param complainScoreStart
*/
public void setComplainScoreStart(BigDecimal complainScoreStart){
this.complainScoreStart = complainScoreStart;
}
/**
* 获取 结束 投诉绩效指标分数
* @return $complainScoreEnd
*/
public BigDecimal getComplainScoreEnd(){
return this.complainScoreEnd;
}
/**
* 设置 结束 投诉绩效指标分数
* @param complainScoreEnd
*/
public void setComplainScoreEnd(BigDecimal complainScoreEnd){
this.complainScoreEnd = complainScoreEnd;
}
/**
* 获取 增加 投诉绩效指标分数
* @return complainScoreIncrement
*/
public BigDecimal getComplainScoreIncrement(){
return this.complainScoreIncrement;
}
/**
* 设置 增加 投诉绩效指标分数
* @param complainScoreIncrement
*/
public void setComplainScoreIncrement(BigDecimal complainScoreIncrement){
this.complainScoreIncrement = complainScoreIncrement;
}
/**
* 获取 投诉绩效指标分数
* @return complainScoreList
*/
public List<BigDecimal> getComplainScoreList(){
return this.complainScoreList;
}
/**
* 设置 投诉绩效指标分数
* @param complainScoreList
*/ */
public void setAssessScoreNotList(List<BigDecimal> assessScoreNotList){ public void setComplainScoreList(List<BigDecimal> complainScoreList){
this.assessScoreNotList = assessScoreNotList; this.complainScoreList = complainScoreList;
}
/**
* 获取 投诉绩效指标分数
* @return complainScoreNotList
*/
public List<BigDecimal> getComplainScoreNotList(){
return this.complainScoreNotList;
}
/**
* 设置 投诉绩效指标分数
* @param complainScoreNotList
*/
public void setComplainScoreNotList(List<BigDecimal> complainScoreNotList){
this.complainScoreNotList = complainScoreNotList;
} }
/** /**
* 获取 开始 办件绩效分数 * 获取 开始 办件绩效分数
* @return workScoreStart * @return goworkScoreStart
*/ */
public BigDecimal getWorkScoreStart(){ public BigDecimal getGoworkScoreStart(){
return this.workScoreStart; return this.goworkScoreStart;
} }
/** /**
* 设置 开始 办件绩效分数 * 设置 开始 办件绩效分数
* @param workScoreStart * @param goworkScoreStart
*/ */
public void setWorkScoreStart(BigDecimal workScoreStart){ public void setGoworkScoreStart(BigDecimal goworkScoreStart){
this.workScoreStart = workScoreStart; this.goworkScoreStart = goworkScoreStart;
} }
/** /**
* 获取 结束 办件绩效分数 * 获取 结束 办件绩效分数
* @return $workScoreEnd * @return $goworkScoreEnd
*/ */
public BigDecimal getWorkScoreEnd(){ public BigDecimal getGoworkScoreEnd(){
return this.workScoreEnd; return this.goworkScoreEnd;
} }
/** /**
* 设置 结束 办件绩效分数 * 设置 结束 办件绩效分数
* @param workScoreEnd * @param goworkScoreEnd
*/ */
public void setWorkScoreEnd(BigDecimal workScoreEnd){ public void setGoworkScoreEnd(BigDecimal goworkScoreEnd){
this.workScoreEnd = workScoreEnd; this.goworkScoreEnd = goworkScoreEnd;
} }
/** /**
* 获取 增加 办件绩效分数 * 获取 增加 办件绩效分数
* @return workScoreIncrement * @return goworkScoreIncrement
*/ */
public BigDecimal getWorkScoreIncrement(){ public BigDecimal getGoworkScoreIncrement(){
return this.workScoreIncrement; return this.goworkScoreIncrement;
} }
/** /**
* 设置 增加 办件绩效分数 * 设置 增加 办件绩效分数
* @param workScoreIncrement * @param goworkScoreIncrement
*/ */
public void setWorkScoreIncrement(BigDecimal workScoreIncrement){ public void setGoworkScoreIncrement(BigDecimal goworkScoreIncrement){
this.workScoreIncrement = workScoreIncrement; this.goworkScoreIncrement = goworkScoreIncrement;
} }
/** /**
* 获取 办件绩效分数 * 获取 办件绩效分数
* @return workScoreList * @return goworkScoreList
*/ */
public List<BigDecimal> getWorkScoreList(){ public List<BigDecimal> getGoworkScoreList(){
return this.workScoreList; return this.goworkScoreList;
} }
/** /**
* 设置 办件绩效分数 * 设置 办件绩效分数
* @param workScoreList * @param goworkScoreList
*/ */
public void setWorkScoreList(List<BigDecimal> workScoreList){ public void setGoworkScoreList(List<BigDecimal> goworkScoreList){
this.workScoreList = workScoreList; this.goworkScoreList = goworkScoreList;
} }
/** /**
* 获取 办件绩效分数 * 获取 办件绩效分数
* @return workScoreNotList * @return goworkScoreNotList
*/ */
public List<BigDecimal> getWorkScoreNotList(){ public List<BigDecimal> getGoworkScoreNotList(){
return this.workScoreNotList; return this.goworkScoreNotList;
} }
/** /**
* 设置 办件绩效分数 * 设置 办件绩效分数
* @param workScoreNotList * @param goworkScoreNotList
*/ */
public void setWorkScoreNotList(List<BigDecimal> workScoreNotList){ public void setGoworkScoreNotList(List<BigDecimal> goworkScoreNotList){
this.workScoreNotList = workScoreNotList; this.goworkScoreNotList = goworkScoreNotList;
} }
...@@ -1861,109 +1957,163 @@ public class StaffPerformSummaryQuery extends StaffPerformSummaryEntity { ...@@ -1861,109 +1957,163 @@ public class StaffPerformSummaryQuery extends StaffPerformSummaryEntity {
/** /**
* 设置 评价绩效指标分数 * 设置 评价绩效指标分数
* @param assessScore * @param reviewScore
*/ */
public StaffPerformSummaryQuery assessScore(BigDecimal assessScore){ public StaffPerformSummaryQuery reviewScore(BigDecimal reviewScore){
setAssessScore(assessScore); setReviewScore(reviewScore);
return this; return this;
} }
/** /**
* 设置 开始 评价绩效指标分数 * 设置 开始 评价绩效指标分数
* @param assessScoreStart * @param reviewScoreStart
*/ */
public StaffPerformSummaryQuery assessScoreStart(BigDecimal assessScoreStart){ public StaffPerformSummaryQuery reviewScoreStart(BigDecimal reviewScoreStart){
this.assessScoreStart = assessScoreStart; this.reviewScoreStart = reviewScoreStart;
return this; return this;
} }
/** /**
* 设置 结束 评价绩效指标分数 * 设置 结束 评价绩效指标分数
* @param assessScoreEnd * @param reviewScoreEnd
*/ */
public StaffPerformSummaryQuery assessScoreEnd(BigDecimal assessScoreEnd){ public StaffPerformSummaryQuery reviewScoreEnd(BigDecimal reviewScoreEnd){
this.assessScoreEnd = assessScoreEnd; this.reviewScoreEnd = reviewScoreEnd;
return this; return this;
} }
/** /**
* 设置 增加 评价绩效指标分数 * 设置 增加 评价绩效指标分数
* @param assessScoreIncrement * @param reviewScoreIncrement
*/ */
public StaffPerformSummaryQuery assessScoreIncrement(BigDecimal assessScoreIncrement){ public StaffPerformSummaryQuery reviewScoreIncrement(BigDecimal reviewScoreIncrement){
this.assessScoreIncrement = assessScoreIncrement; this.reviewScoreIncrement = reviewScoreIncrement;
return this; return this;
} }
/** /**
* 设置 评价绩效指标分数 * 设置 评价绩效指标分数
* @param assessScoreList * @param reviewScoreList
*/ */
public StaffPerformSummaryQuery assessScoreList(List<BigDecimal> assessScoreList){ public StaffPerformSummaryQuery reviewScoreList(List<BigDecimal> reviewScoreList){
this.assessScoreList = assessScoreList; this.reviewScoreList = reviewScoreList;
return this; return this;
} }
/** /**
* 设置 评价绩效指标分数 * 设置 评价绩效指标分数
* @param assessScoreNotList * @param reviewScoreNotList
*/
public StaffPerformSummaryQuery reviewScoreNotList(List<BigDecimal> reviewScoreNotList){
this.reviewScoreNotList = reviewScoreNotList;
return this;
}
/**
* 设置 投诉绩效指标分数
* @param complainScore
*/
public StaffPerformSummaryQuery complainScore(BigDecimal complainScore){
setComplainScore(complainScore);
return this;
}
/**
* 设置 开始 投诉绩效指标分数
* @param complainScoreStart
*/
public StaffPerformSummaryQuery complainScoreStart(BigDecimal complainScoreStart){
this.complainScoreStart = complainScoreStart;
return this;
}
/**
* 设置 结束 投诉绩效指标分数
* @param complainScoreEnd
*/
public StaffPerformSummaryQuery complainScoreEnd(BigDecimal complainScoreEnd){
this.complainScoreEnd = complainScoreEnd;
return this;
}
/**
* 设置 增加 投诉绩效指标分数
* @param complainScoreIncrement
*/
public StaffPerformSummaryQuery complainScoreIncrement(BigDecimal complainScoreIncrement){
this.complainScoreIncrement = complainScoreIncrement;
return this;
}
/**
* 设置 投诉绩效指标分数
* @param complainScoreList
*/
public StaffPerformSummaryQuery complainScoreList(List<BigDecimal> complainScoreList){
this.complainScoreList = complainScoreList;
return this;
}
/**
* 设置 投诉绩效指标分数
* @param complainScoreNotList
*/ */
public StaffPerformSummaryQuery assessScoreNotList(List<BigDecimal> assessScoreNotList){ public StaffPerformSummaryQuery complainScoreNotList(List<BigDecimal> complainScoreNotList){
this.assessScoreNotList = assessScoreNotList; this.complainScoreNotList = complainScoreNotList;
return this; return this;
} }
/** /**
* 设置 办件绩效分数 * 设置 办件绩效分数
* @param workScore * @param goworkScore
*/ */
public StaffPerformSummaryQuery workScore(BigDecimal workScore){ public StaffPerformSummaryQuery goworkScore(BigDecimal goworkScore){
setWorkScore(workScore); setGoworkScore(goworkScore);
return this; return this;
} }
/** /**
* 设置 开始 办件绩效分数 * 设置 开始 办件绩效分数
* @param workScoreStart * @param goworkScoreStart
*/ */
public StaffPerformSummaryQuery workScoreStart(BigDecimal workScoreStart){ public StaffPerformSummaryQuery goworkScoreStart(BigDecimal goworkScoreStart){
this.workScoreStart = workScoreStart; this.goworkScoreStart = goworkScoreStart;
return this; return this;
} }
/** /**
* 设置 结束 办件绩效分数 * 设置 结束 办件绩效分数
* @param workScoreEnd * @param goworkScoreEnd
*/ */
public StaffPerformSummaryQuery workScoreEnd(BigDecimal workScoreEnd){ public StaffPerformSummaryQuery goworkScoreEnd(BigDecimal goworkScoreEnd){
this.workScoreEnd = workScoreEnd; this.goworkScoreEnd = goworkScoreEnd;
return this; return this;
} }
/** /**
* 设置 增加 办件绩效分数 * 设置 增加 办件绩效分数
* @param workScoreIncrement * @param goworkScoreIncrement
*/ */
public StaffPerformSummaryQuery workScoreIncrement(BigDecimal workScoreIncrement){ public StaffPerformSummaryQuery goworkScoreIncrement(BigDecimal goworkScoreIncrement){
this.workScoreIncrement = workScoreIncrement; this.goworkScoreIncrement = goworkScoreIncrement;
return this; return this;
} }
/** /**
* 设置 办件绩效分数 * 设置 办件绩效分数
* @param workScoreList * @param goworkScoreList
*/ */
public StaffPerformSummaryQuery workScoreList(List<BigDecimal> workScoreList){ public StaffPerformSummaryQuery goworkScoreList(List<BigDecimal> goworkScoreList){
this.workScoreList = workScoreList; this.goworkScoreList = goworkScoreList;
return this; return this;
} }
/** /**
* 设置 办件绩效分数 * 设置 办件绩效分数
* @param workScoreNotList * @param goworkScoreNotList
*/ */
public StaffPerformSummaryQuery workScoreNotList(List<BigDecimal> workScoreNotList){ public StaffPerformSummaryQuery goworkScoreNotList(List<BigDecimal> goworkScoreNotList){
this.workScoreNotList = workScoreNotList; this.goworkScoreNotList = goworkScoreNotList;
return this; return this;
} }
......
...@@ -11,7 +11,7 @@ import java.util.Date; ...@@ -11,7 +11,7 @@ import java.util.Date;
* 员工绩效统计视图对象 * 员工绩效统计视图对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-11 * @date 2023-07-14
*/ */
@Data @Data
public class StaffPerformStatVo extends BaseEntityLong { public class StaffPerformStatVo extends BaseEntityLong {
......
...@@ -11,7 +11,7 @@ import java.util.Date; ...@@ -11,7 +11,7 @@ import java.util.Date;
* 员工绩效统计视图对象 * 员工绩效统计视图对象
* *
* @author zxfei * @author zxfei
* @date 2023-07-05 * @date 2023-07-14
*/ */
@Data @Data
public class StaffPerformSummaryVo extends BaseEntityLong { public class StaffPerformSummaryVo extends BaseEntityLong {
......
...@@ -9,16 +9,21 @@ ...@@ -9,16 +9,21 @@
<result property="deptId" column="deptId" /> <result property="deptId" column="deptId" />
<result property="deptName" column="deptName" /> <result property="deptName" column="deptName" />
<result property="totalScore" column="totalScore" /> <result property="totalScore" column="totalScore" />
<result property="totalAddScore" column="totalAddScore" />
<result property="totalSubScore" column="totalSubScore" />
<result property="attendScoreAdd" column="attendScoreAdd" /> <result property="attendScoreAdd" column="attendScoreAdd" />
<result property="attendScoreSub" column="attendScoreSub" /> <result property="attendScoreSub" column="attendScoreSub" />
<result property="assessScoreAdd" column="assessScoreAdd" /> <result property="reviewScoreAdd" column="reviewScoreAdd" />
<result property="assessScoreSub" column="assessScoreSub" /> <result property="reviewScoreSub" column="reviewScoreSub" />
<result property="workScoreAdd" column="workScoreAdd" /> <result property="complainScoreAdd" column="complainScoreAdd" />
<result property="workScoreSub" column="workScoreSub" /> <result property="complainScoreSub" column="complainScoreSub" />
<result property="goworkScoreAdd" column="goworkScoreAdd" />
<result property="goworkScoreSub" column="goworkScoreSub" />
<result property="effectScoreAdd" column="effectScoreAdd" /> <result property="effectScoreAdd" column="effectScoreAdd" />
<result property="effectScoreSub" column="effectScoreSub" /> <result property="effectScoreSub" column="effectScoreSub" />
<result property="otherScoreAdd" column="otherScoreAdd" /> <result property="otherScoreAdd" column="otherScoreAdd" />
<result property="otherScoreSub" column="otherScoreSub" /> <result property="otherScoreSub" column="otherScoreSub" />
<result property="averageScore" column="averageScore" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="year" column="year" /> <result property="year" column="year" />
<result property="month" column="month" /> <result property="month" column="month" />
...@@ -27,11 +32,6 @@ ...@@ -27,11 +32,6 @@
<result property="createUserId" column="createUserId" /> <result property="createUserId" column="createUserId" />
<result property="updateTime" column="updateTime" /> <result property="updateTime" column="updateTime" />
<result property="updateUserId" column="updateUserId" /> <result property="updateUserId" column="updateUserId" />
<result property="totalAddScore" column="totalAddScore" />
<result property="totalSubScore" column="totalSubScore" />
<result property="complainScoreAdd" column="complainScoreAdd" />
<result property="complainScoreSub" column="complainScoreSub" />
<result property="averageScore" column="averageScore" />
</resultMap> </resultMap>
...@@ -51,23 +51,35 @@ ...@@ -51,23 +51,35 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('totalScore') or colPickMode == 1 and data.containsKey('totalScore')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('totalScore') or colPickMode == 1 and data.containsKey('totalScore')))">
a.totalScore, a.totalScore,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('totalAddScore') or colPickMode == 1 and data.containsKey('totalAddScore')))">
a.totalAddScore,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('totalSubScore') or colPickMode == 1 and data.containsKey('totalSubScore')))">
a.totalSubScore,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendScoreAdd') or colPickMode == 1 and data.containsKey('attendScoreAdd')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendScoreAdd') or colPickMode == 1 and data.containsKey('attendScoreAdd')))">
a.attendScoreAdd, a.attendScoreAdd,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendScoreSub') or colPickMode == 1 and data.containsKey('attendScoreSub')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendScoreSub') or colPickMode == 1 and data.containsKey('attendScoreSub')))">
a.attendScoreSub, a.attendScoreSub,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('assessScoreAdd') or colPickMode == 1 and data.containsKey('assessScoreAdd')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('reviewScoreAdd') or colPickMode == 1 and data.containsKey('reviewScoreAdd')))">
a.assessScoreAdd, a.reviewScoreAdd,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('assessScoreSub') or colPickMode == 1 and data.containsKey('assessScoreSub')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('reviewScoreSub') or colPickMode == 1 and data.containsKey('reviewScoreSub')))">
a.assessScoreSub, a.reviewScoreSub,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('workScoreAdd') or colPickMode == 1 and data.containsKey('workScoreAdd')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('complainScoreAdd') or colPickMode == 1 and data.containsKey('complainScoreAdd')))">
a.workScoreAdd, a.complainScoreAdd,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('complainScoreSub') or colPickMode == 1 and data.containsKey('complainScoreSub')))">
a.complainScoreSub,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('goworkScoreAdd') or colPickMode == 1 and data.containsKey('goworkScoreAdd')))">
a.goworkScoreAdd,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('workScoreSub') or colPickMode == 1 and data.containsKey('workScoreSub')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('goworkScoreSub') or colPickMode == 1 and data.containsKey('goworkScoreSub')))">
a.workScoreSub, a.goworkScoreSub,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('effectScoreAdd') or colPickMode == 1 and data.containsKey('effectScoreAdd')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('effectScoreAdd') or colPickMode == 1 and data.containsKey('effectScoreAdd')))">
a.effectScoreAdd, a.effectScoreAdd,
...@@ -81,6 +93,9 @@ ...@@ -81,6 +93,9 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('otherScoreSub') or colPickMode == 1 and data.containsKey('otherScoreSub')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('otherScoreSub') or colPickMode == 1 and data.containsKey('otherScoreSub')))">
a.otherScoreSub, a.otherScoreSub,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('averageScore') or colPickMode == 1 and data.containsKey('averageScore')))">
a.averageScore,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('remark') or colPickMode == 1 and data.containsKey('remark')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('remark') or colPickMode == 1 and data.containsKey('remark')))">
a.remark, a.remark,
</if> </if>
...@@ -105,38 +120,23 @@ ...@@ -105,38 +120,23 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId, a.updateUserId,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('totalAddScore') or colPickMode == 1 and data.containsKey('totalAddScore')))">
a.totalAddScore,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('totalSubScore') or colPickMode == 1 and data.containsKey('totalSubScore')))">
a.totalSubScore,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('complainScoreAdd') or colPickMode == 1 and data.containsKey('complainScoreAdd')))">
a.complainScoreAdd,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('complainScoreSub') or colPickMode == 1 and data.containsKey('complainScoreSub')))">
a.complainScoreSub,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('averageScore') or colPickMode == 1 and data.containsKey('averageScore')))">
a.averageScore,
</if>
</trim> </trim>
</sql> </sql>
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="DeptPerformStatEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="DeptPerformStatEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_dept_perform_stat insert into mortals_xhx_dept_perform_stat
(deptId,deptName,totalScore,attendScoreAdd,attendScoreSub,assessScoreAdd,assessScoreSub,workScoreAdd,workScoreSub,effectScoreAdd,effectScoreSub,otherScoreAdd,otherScoreSub,remark,year,month,day,createTime,createUserId,updateTime,updateUserId,totalAddScore,totalSubScore,complainScoreAdd,complainScoreSub,averageScore) (deptId,deptName,totalScore,totalAddScore,totalSubScore,attendScoreAdd,attendScoreSub,reviewScoreAdd,reviewScoreSub,complainScoreAdd,complainScoreSub,goworkScoreAdd,goworkScoreSub,effectScoreAdd,effectScoreSub,otherScoreAdd,otherScoreSub,averageScore,remark,year,month,day,createTime,createUserId,updateTime,updateUserId)
VALUES VALUES
(#{deptId},#{deptName},#{totalScore},#{attendScoreAdd},#{attendScoreSub},#{assessScoreAdd},#{assessScoreSub},#{workScoreAdd},#{workScoreSub},#{effectScoreAdd},#{effectScoreSub},#{otherScoreAdd},#{otherScoreSub},#{remark},#{year},#{month},#{day},#{createTime},#{createUserId},#{updateTime},#{updateUserId},#{totalAddScore},#{totalSubScore},#{complainScoreAdd},#{complainScoreSub},#{averageScore}) (#{deptId},#{deptName},#{totalScore},#{totalAddScore},#{totalSubScore},#{attendScoreAdd},#{attendScoreSub},#{reviewScoreAdd},#{reviewScoreSub},#{complainScoreAdd},#{complainScoreSub},#{goworkScoreAdd},#{goworkScoreSub},#{effectScoreAdd},#{effectScoreSub},#{otherScoreAdd},#{otherScoreSub},#{averageScore},#{remark},#{year},#{month},#{day},#{createTime},#{createUserId},#{updateTime},#{updateUserId})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_dept_perform_stat insert into mortals_xhx_dept_perform_stat
(deptId,deptName,totalScore,attendScoreAdd,attendScoreSub,assessScoreAdd,assessScoreSub,workScoreAdd,workScoreSub,effectScoreAdd,effectScoreSub,otherScoreAdd,otherScoreSub,remark,year,month,day,createTime,createUserId,updateTime,updateUserId,totalAddScore,totalSubScore,complainScoreAdd,complainScoreSub,averageScore) (deptId,deptName,totalScore,totalAddScore,totalSubScore,attendScoreAdd,attendScoreSub,reviewScoreAdd,reviewScoreSub,complainScoreAdd,complainScoreSub,goworkScoreAdd,goworkScoreSub,effectScoreAdd,effectScoreSub,otherScoreAdd,otherScoreSub,averageScore,remark,year,month,day,createTime,createUserId,updateTime,updateUserId)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.deptId},#{item.deptName},#{item.totalScore},#{item.attendScoreAdd},#{item.attendScoreSub},#{item.assessScoreAdd},#{item.assessScoreSub},#{item.workScoreAdd},#{item.workScoreSub},#{item.effectScoreAdd},#{item.effectScoreSub},#{item.otherScoreAdd},#{item.otherScoreSub},#{item.remark},#{item.year},#{item.month},#{item.day},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId},#{item.totalAddScore},#{item.totalSubScore},#{item.complainScoreAdd},#{item.complainScoreSub},#{item.averageScore}) (#{item.deptId},#{item.deptName},#{item.totalScore},#{item.totalAddScore},#{item.totalSubScore},#{item.attendScoreAdd},#{item.attendScoreSub},#{item.reviewScoreAdd},#{item.reviewScoreSub},#{item.complainScoreAdd},#{item.complainScoreSub},#{item.goworkScoreAdd},#{item.goworkScoreSub},#{item.effectScoreAdd},#{item.effectScoreSub},#{item.otherScoreAdd},#{item.otherScoreSub},#{item.averageScore},#{item.remark},#{item.year},#{item.month},#{item.day},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId})
</foreach> </foreach>
</insert> </insert>
...@@ -161,6 +161,18 @@ ...@@ -161,6 +161,18 @@
<if test="(colPickMode==0 and data.containsKey('totalScoreIncrement')) or (colPickMode==1 and !data.containsKey('totalScoreIncrement'))"> <if test="(colPickMode==0 and data.containsKey('totalScoreIncrement')) or (colPickMode==1 and !data.containsKey('totalScoreIncrement'))">
a.totalScore=ifnull(a.totalScore,0) + #{data.totalScoreIncrement}, a.totalScore=ifnull(a.totalScore,0) + #{data.totalScoreIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('totalAddScore')) or (colPickMode==1 and !data.containsKey('totalAddScore'))">
a.totalAddScore=#{data.totalAddScore},
</if>
<if test="(colPickMode==0 and data.containsKey('totalAddScoreIncrement')) or (colPickMode==1 and !data.containsKey('totalAddScoreIncrement'))">
a.totalAddScore=ifnull(a.totalAddScore,0) + #{data.totalAddScoreIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('totalSubScore')) or (colPickMode==1 and !data.containsKey('totalSubScore'))">
a.totalSubScore=#{data.totalSubScore},
</if>
<if test="(colPickMode==0 and data.containsKey('totalSubScoreIncrement')) or (colPickMode==1 and !data.containsKey('totalSubScoreIncrement'))">
a.totalSubScore=ifnull(a.totalSubScore,0) + #{data.totalSubScoreIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('attendScoreAdd')) or (colPickMode==1 and !data.containsKey('attendScoreAdd'))"> <if test="(colPickMode==0 and data.containsKey('attendScoreAdd')) or (colPickMode==1 and !data.containsKey('attendScoreAdd'))">
a.attendScoreAdd=#{data.attendScoreAdd}, a.attendScoreAdd=#{data.attendScoreAdd},
</if> </if>
...@@ -173,29 +185,41 @@ ...@@ -173,29 +185,41 @@
<if test="(colPickMode==0 and data.containsKey('attendScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('attendScoreSubIncrement'))"> <if test="(colPickMode==0 and data.containsKey('attendScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('attendScoreSubIncrement'))">
a.attendScoreSub=ifnull(a.attendScoreSub,0) + #{data.attendScoreSubIncrement}, a.attendScoreSub=ifnull(a.attendScoreSub,0) + #{data.attendScoreSubIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScoreAdd')) or (colPickMode==1 and !data.containsKey('assessScoreAdd'))"> <if test="(colPickMode==0 and data.containsKey('reviewScoreAdd')) or (colPickMode==1 and !data.containsKey('reviewScoreAdd'))">
a.assessScoreAdd=#{data.assessScoreAdd}, a.reviewScoreAdd=#{data.reviewScoreAdd},
</if>
<if test="(colPickMode==0 and data.containsKey('reviewScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('reviewScoreAddIncrement'))">
a.reviewScoreAdd=ifnull(a.reviewScoreAdd,0) + #{data.reviewScoreAddIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('reviewScoreSub')) or (colPickMode==1 and !data.containsKey('reviewScoreSub'))">
a.reviewScoreSub=#{data.reviewScoreSub},
</if>
<if test="(colPickMode==0 and data.containsKey('reviewScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('reviewScoreSubIncrement'))">
a.reviewScoreSub=ifnull(a.reviewScoreSub,0) + #{data.reviewScoreSubIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('complainScoreAdd')) or (colPickMode==1 and !data.containsKey('complainScoreAdd'))">
a.complainScoreAdd=#{data.complainScoreAdd},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('assessScoreAddIncrement'))"> <if test="(colPickMode==0 and data.containsKey('complainScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('complainScoreAddIncrement'))">
a.assessScoreAdd=ifnull(a.assessScoreAdd,0) + #{data.assessScoreAddIncrement}, a.complainScoreAdd=ifnull(a.complainScoreAdd,0) + #{data.complainScoreAddIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScoreSub')) or (colPickMode==1 and !data.containsKey('assessScoreSub'))"> <if test="(colPickMode==0 and data.containsKey('complainScoreSub')) or (colPickMode==1 and !data.containsKey('complainScoreSub'))">
a.assessScoreSub=#{data.assessScoreSub}, a.complainScoreSub=#{data.complainScoreSub},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('assessScoreSubIncrement'))"> <if test="(colPickMode==0 and data.containsKey('complainScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('complainScoreSubIncrement'))">
a.assessScoreSub=ifnull(a.assessScoreSub,0) + #{data.assessScoreSubIncrement}, a.complainScoreSub=ifnull(a.complainScoreSub,0) + #{data.complainScoreSubIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScoreAdd')) or (colPickMode==1 and !data.containsKey('workScoreAdd'))"> <if test="(colPickMode==0 and data.containsKey('goworkScoreAdd')) or (colPickMode==1 and !data.containsKey('goworkScoreAdd'))">
a.workScoreAdd=#{data.workScoreAdd}, a.goworkScoreAdd=#{data.goworkScoreAdd},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('workScoreAddIncrement'))"> <if test="(colPickMode==0 and data.containsKey('goworkScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('goworkScoreAddIncrement'))">
a.workScoreAdd=ifnull(a.workScoreAdd,0) + #{data.workScoreAddIncrement}, a.goworkScoreAdd=ifnull(a.goworkScoreAdd,0) + #{data.goworkScoreAddIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScoreSub')) or (colPickMode==1 and !data.containsKey('workScoreSub'))"> <if test="(colPickMode==0 and data.containsKey('goworkScoreSub')) or (colPickMode==1 and !data.containsKey('goworkScoreSub'))">
a.workScoreSub=#{data.workScoreSub}, a.goworkScoreSub=#{data.goworkScoreSub},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('workScoreSubIncrement'))"> <if test="(colPickMode==0 and data.containsKey('goworkScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('goworkScoreSubIncrement'))">
a.workScoreSub=ifnull(a.workScoreSub,0) + #{data.workScoreSubIncrement}, a.goworkScoreSub=ifnull(a.goworkScoreSub,0) + #{data.goworkScoreSubIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('effectScoreAdd')) or (colPickMode==1 and !data.containsKey('effectScoreAdd'))"> <if test="(colPickMode==0 and data.containsKey('effectScoreAdd')) or (colPickMode==1 and !data.containsKey('effectScoreAdd'))">
a.effectScoreAdd=#{data.effectScoreAdd}, a.effectScoreAdd=#{data.effectScoreAdd},
...@@ -221,6 +245,12 @@ ...@@ -221,6 +245,12 @@
<if test="(colPickMode==0 and data.containsKey('otherScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('otherScoreSubIncrement'))"> <if test="(colPickMode==0 and data.containsKey('otherScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('otherScoreSubIncrement'))">
a.otherScoreSub=ifnull(a.otherScoreSub,0) + #{data.otherScoreSubIncrement}, a.otherScoreSub=ifnull(a.otherScoreSub,0) + #{data.otherScoreSubIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('averageScore')) or (colPickMode==1 and !data.containsKey('averageScore'))">
a.averageScore=#{data.averageScore},
</if>
<if test="(colPickMode==0 and data.containsKey('averageScoreIncrement')) or (colPickMode==1 and !data.containsKey('averageScoreIncrement'))">
a.averageScore=ifnull(a.averageScore,0) + #{data.averageScoreIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('remark')) or (colPickMode==1 and !data.containsKey('remark'))"> <if test="(colPickMode==0 and data.containsKey('remark')) or (colPickMode==1 and !data.containsKey('remark'))">
a.remark=#{data.remark}, a.remark=#{data.remark},
</if> </if>
...@@ -260,36 +290,6 @@ ...@@ -260,36 +290,6 @@
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))"> <if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement}, a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('totalAddScore')) or (colPickMode==1 and !data.containsKey('totalAddScore'))">
a.totalAddScore=#{data.totalAddScore},
</if>
<if test="(colPickMode==0 and data.containsKey('totalAddScoreIncrement')) or (colPickMode==1 and !data.containsKey('totalAddScoreIncrement'))">
a.totalAddScore=ifnull(a.totalAddScore,0) + #{data.totalAddScoreIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('totalSubScore')) or (colPickMode==1 and !data.containsKey('totalSubScore'))">
a.totalSubScore=#{data.totalSubScore},
</if>
<if test="(colPickMode==0 and data.containsKey('totalSubScoreIncrement')) or (colPickMode==1 and !data.containsKey('totalSubScoreIncrement'))">
a.totalSubScore=ifnull(a.totalSubScore,0) + #{data.totalSubScoreIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('complainScoreAdd')) or (colPickMode==1 and !data.containsKey('complainScoreAdd'))">
a.complainScoreAdd=#{data.complainScoreAdd},
</if>
<if test="(colPickMode==0 and data.containsKey('complainScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('complainScoreAddIncrement'))">
a.complainScoreAdd=ifnull(a.complainScoreAdd,0) + #{data.complainScoreAddIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('complainScoreSub')) or (colPickMode==1 and !data.containsKey('complainScoreSub'))">
a.complainScoreSub=#{data.complainScoreSub},
</if>
<if test="(colPickMode==0 and data.containsKey('complainScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('complainScoreSubIncrement'))">
a.complainScoreSub=ifnull(a.complainScoreSub,0) + #{data.complainScoreSubIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('averageScore')) or (colPickMode==1 and !data.containsKey('averageScore'))">
a.averageScore=#{data.averageScore},
</if>
<if test="(colPickMode==0 and data.containsKey('averageScoreIncrement')) or (colPickMode==1 and !data.containsKey('averageScoreIncrement'))">
a.averageScore=ifnull(a.averageScore,0) + #{data.averageScoreIncrement},
</if>
</trim> </trim>
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where where
...@@ -333,6 +333,30 @@ ...@@ -333,6 +333,30 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="totalAddScore=(case" suffix="ELSE totalAddScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('totalAddScore')) or (colPickMode==1 and !item.containsKey('totalAddScore'))">
when a.id=#{item.id} then #{item.totalAddScore}
</when>
<when test="(colPickMode==0 and item.containsKey('totalAddScoreIncrement')) or (colPickMode==1 and !item.containsKey('totalAddScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.totalAddScore,0) + #{item.totalAddScoreIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="totalSubScore=(case" suffix="ELSE totalSubScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('totalSubScore')) or (colPickMode==1 and !item.containsKey('totalSubScore'))">
when a.id=#{item.id} then #{item.totalSubScore}
</when>
<when test="(colPickMode==0 and item.containsKey('totalSubScoreIncrement')) or (colPickMode==1 and !item.containsKey('totalSubScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.totalSubScore,0) + #{item.totalSubScoreIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="attendScoreAdd=(case" suffix="ELSE attendScoreAdd end),"> <trim prefix="attendScoreAdd=(case" suffix="ELSE attendScoreAdd end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
...@@ -357,50 +381,74 @@ ...@@ -357,50 +381,74 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="assessScoreAdd=(case" suffix="ELSE assessScoreAdd end),"> <trim prefix="reviewScoreAdd=(case" suffix="ELSE reviewScoreAdd end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('reviewScoreAdd')) or (colPickMode==1 and !item.containsKey('reviewScoreAdd'))">
when a.id=#{item.id} then #{item.reviewScoreAdd}
</when>
<when test="(colPickMode==0 and item.containsKey('reviewScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('reviewScoreAddIncrement'))">
when a.id=#{item.id} then ifnull(a.reviewScoreAdd,0) + #{item.reviewScoreAddIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="reviewScoreSub=(case" suffix="ELSE reviewScoreSub end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('reviewScoreSub')) or (colPickMode==1 and !item.containsKey('reviewScoreSub'))">
when a.id=#{item.id} then #{item.reviewScoreSub}
</when>
<when test="(colPickMode==0 and item.containsKey('reviewScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('reviewScoreSubIncrement'))">
when a.id=#{item.id} then ifnull(a.reviewScoreSub,0) + #{item.reviewScoreSubIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="complainScoreAdd=(case" suffix="ELSE complainScoreAdd end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('assessScoreAdd')) or (colPickMode==1 and !item.containsKey('assessScoreAdd'))"> <when test="(colPickMode==0 and item.containsKey('complainScoreAdd')) or (colPickMode==1 and !item.containsKey('complainScoreAdd'))">
when a.id=#{item.id} then #{item.assessScoreAdd} when a.id=#{item.id} then #{item.complainScoreAdd}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('assessScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('assessScoreAddIncrement'))"> <when test="(colPickMode==0 and item.containsKey('complainScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('complainScoreAddIncrement'))">
when a.id=#{item.id} then ifnull(a.assessScoreAdd,0) + #{item.assessScoreAddIncrement} when a.id=#{item.id} then ifnull(a.complainScoreAdd,0) + #{item.complainScoreAddIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="assessScoreSub=(case" suffix="ELSE assessScoreSub end),"> <trim prefix="complainScoreSub=(case" suffix="ELSE complainScoreSub end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('assessScoreSub')) or (colPickMode==1 and !item.containsKey('assessScoreSub'))"> <when test="(colPickMode==0 and item.containsKey('complainScoreSub')) or (colPickMode==1 and !item.containsKey('complainScoreSub'))">
when a.id=#{item.id} then #{item.assessScoreSub} when a.id=#{item.id} then #{item.complainScoreSub}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('assessScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('assessScoreSubIncrement'))"> <when test="(colPickMode==0 and item.containsKey('complainScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('complainScoreSubIncrement'))">
when a.id=#{item.id} then ifnull(a.assessScoreSub,0) + #{item.assessScoreSubIncrement} when a.id=#{item.id} then ifnull(a.complainScoreSub,0) + #{item.complainScoreSubIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="workScoreAdd=(case" suffix="ELSE workScoreAdd end),"> <trim prefix="goworkScoreAdd=(case" suffix="ELSE goworkScoreAdd end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('workScoreAdd')) or (colPickMode==1 and !item.containsKey('workScoreAdd'))"> <when test="(colPickMode==0 and item.containsKey('goworkScoreAdd')) or (colPickMode==1 and !item.containsKey('goworkScoreAdd'))">
when a.id=#{item.id} then #{item.workScoreAdd} when a.id=#{item.id} then #{item.goworkScoreAdd}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('workScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('workScoreAddIncrement'))"> <when test="(colPickMode==0 and item.containsKey('goworkScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('goworkScoreAddIncrement'))">
when a.id=#{item.id} then ifnull(a.workScoreAdd,0) + #{item.workScoreAddIncrement} when a.id=#{item.id} then ifnull(a.goworkScoreAdd,0) + #{item.goworkScoreAddIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="workScoreSub=(case" suffix="ELSE workScoreSub end),"> <trim prefix="goworkScoreSub=(case" suffix="ELSE goworkScoreSub end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('workScoreSub')) or (colPickMode==1 and !item.containsKey('workScoreSub'))"> <when test="(colPickMode==0 and item.containsKey('goworkScoreSub')) or (colPickMode==1 and !item.containsKey('goworkScoreSub'))">
when a.id=#{item.id} then #{item.workScoreSub} when a.id=#{item.id} then #{item.goworkScoreSub}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('workScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('workScoreSubIncrement'))"> <when test="(colPickMode==0 and item.containsKey('goworkScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('goworkScoreSubIncrement'))">
when a.id=#{item.id} then ifnull(a.workScoreSub,0) + #{item.workScoreSubIncrement} when a.id=#{item.id} then ifnull(a.goworkScoreSub,0) + #{item.goworkScoreSubIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
...@@ -453,6 +501,18 @@ ...@@ -453,6 +501,18 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="averageScore=(case" suffix="ELSE averageScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('averageScore')) or (colPickMode==1 and !item.containsKey('averageScore'))">
when a.id=#{item.id} then #{item.averageScore}
</when>
<when test="(colPickMode==0 and item.containsKey('averageScoreIncrement')) or (colPickMode==1 and !item.containsKey('averageScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.averageScore,0) + #{item.averageScoreIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="remark=(case" suffix="ELSE remark end),"> <trim prefix="remark=(case" suffix="ELSE remark end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('remark')) or (colPickMode==1 and !item.containsKey('remark'))"> <if test="(colPickMode==0 and item.containsKey('remark')) or (colPickMode==1 and !item.containsKey('remark'))">
...@@ -534,66 +594,6 @@ ...@@ -534,66 +594,6 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="totalAddScore=(case" suffix="ELSE totalAddScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('totalAddScore')) or (colPickMode==1 and !item.containsKey('totalAddScore'))">
when a.id=#{item.id} then #{item.totalAddScore}
</when>
<when test="(colPickMode==0 and item.containsKey('totalAddScoreIncrement')) or (colPickMode==1 and !item.containsKey('totalAddScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.totalAddScore,0) + #{item.totalAddScoreIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="totalSubScore=(case" suffix="ELSE totalSubScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('totalSubScore')) or (colPickMode==1 and !item.containsKey('totalSubScore'))">
when a.id=#{item.id} then #{item.totalSubScore}
</when>
<when test="(colPickMode==0 and item.containsKey('totalSubScoreIncrement')) or (colPickMode==1 and !item.containsKey('totalSubScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.totalSubScore,0) + #{item.totalSubScoreIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="complainScoreAdd=(case" suffix="ELSE complainScoreAdd end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('complainScoreAdd')) or (colPickMode==1 and !item.containsKey('complainScoreAdd'))">
when a.id=#{item.id} then #{item.complainScoreAdd}
</when>
<when test="(colPickMode==0 and item.containsKey('complainScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('complainScoreAddIncrement'))">
when a.id=#{item.id} then ifnull(a.complainScoreAdd,0) + #{item.complainScoreAddIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="complainScoreSub=(case" suffix="ELSE complainScoreSub end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('complainScoreSub')) or (colPickMode==1 and !item.containsKey('complainScoreSub'))">
when a.id=#{item.id} then #{item.complainScoreSub}
</when>
<when test="(colPickMode==0 and item.containsKey('complainScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('complainScoreSubIncrement'))">
when a.id=#{item.id} then ifnull(a.complainScoreSub,0) + #{item.complainScoreSubIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="averageScore=(case" suffix="ELSE averageScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('averageScore')) or (colPickMode==1 and !item.containsKey('averageScore'))">
when a.id=#{item.id} then #{item.averageScore}
</when>
<when test="(colPickMode==0 and item.containsKey('averageScoreIncrement')) or (colPickMode==1 and !item.containsKey('averageScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.averageScore,0) + #{item.averageScoreIncrement}
</when>
</choose>
</foreach>
</trim>
</trim> </trim>
where id in where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")"> <foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
...@@ -812,36 +812,90 @@ ...@@ -812,36 +812,90 @@
${_conditionType_} a.totalScore <![CDATA[ <= ]]> #{${_conditionParam_}.totalScoreEnd} ${_conditionType_} a.totalScore <![CDATA[ <= ]]> #{${_conditionParam_}.totalScoreEnd}
</if> </if>
<if test="conditionParamRef.containsKey('attendScoreAdd')"> <if test="conditionParamRef.containsKey('totalAddScore')">
<if test="conditionParamRef.attendScoreAdd != null "> <if test="conditionParamRef.totalAddScore != null ">
${_conditionType_} a.attendScoreAdd = #{${_conditionParam_}.attendScoreAdd} ${_conditionType_} a.totalAddScore = #{${_conditionParam_}.totalAddScore}
</if> </if>
<if test="conditionParamRef.attendScoreAdd == null"> <if test="conditionParamRef.totalAddScore == null">
${_conditionType_} a.attendScoreAdd is null ${_conditionType_} a.totalAddScore is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('attendScoreAddList') and conditionParamRef.attendScoreAddList.size() > 0"> <if test="conditionParamRef.containsKey('totalAddScoreList') and conditionParamRef.totalAddScoreList.size() > 0">
${_conditionType_} a.attendScoreAdd in ${_conditionType_} a.totalAddScore in
<foreach collection="conditionParamRef.attendScoreAddList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.totalAddScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('attendScoreAddNotList') and conditionParamRef.attendScoreAddNotList.size() > 0"> <if test="conditionParamRef.containsKey('totalAddScoreNotList') and conditionParamRef.totalAddScoreNotList.size() > 0">
${_conditionType_} a.attendScoreAdd not in ${_conditionType_} a.totalAddScore not in
<foreach collection="conditionParamRef.attendScoreAddNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.totalAddScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('attendScoreAddStart') and conditionParamRef.attendScoreAddStart != null"> <if test="conditionParamRef.containsKey('totalAddScoreStart') and conditionParamRef.totalAddScoreStart != null">
${_conditionType_} a.attendScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.attendScoreAddStart} ${_conditionType_} a.totalAddScore <![CDATA[ >= ]]> #{${_conditionParam_}.totalAddScoreStart}
</if> </if>
<if test="conditionParamRef.containsKey('attendScoreAddEnd') and conditionParamRef.attendScoreAddEnd != null"> <if test="conditionParamRef.containsKey('totalAddScoreEnd') and conditionParamRef.totalAddScoreEnd != null">
${_conditionType_} a.attendScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.attendScoreAddEnd} ${_conditionType_} a.totalAddScore <![CDATA[ <= ]]> #{${_conditionParam_}.totalAddScoreEnd}
</if> </if>
<if test="conditionParamRef.containsKey('attendScoreSub')"> <if test="conditionParamRef.containsKey('totalSubScore')">
<if test="conditionParamRef.attendScoreSub != null "> <if test="conditionParamRef.totalSubScore != null ">
${_conditionType_} a.attendScoreSub = #{${_conditionParam_}.attendScoreSub} ${_conditionType_} a.totalSubScore = #{${_conditionParam_}.totalSubScore}
</if>
<if test="conditionParamRef.totalSubScore == null">
${_conditionType_} a.totalSubScore is null
</if>
</if>
<if test="conditionParamRef.containsKey('totalSubScoreList') and conditionParamRef.totalSubScoreList.size() > 0">
${_conditionType_} a.totalSubScore in
<foreach collection="conditionParamRef.totalSubScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('totalSubScoreNotList') and conditionParamRef.totalSubScoreNotList.size() > 0">
${_conditionType_} a.totalSubScore not in
<foreach collection="conditionParamRef.totalSubScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('totalSubScoreStart') and conditionParamRef.totalSubScoreStart != null">
${_conditionType_} a.totalSubScore <![CDATA[ >= ]]> #{${_conditionParam_}.totalSubScoreStart}
</if>
<if test="conditionParamRef.containsKey('totalSubScoreEnd') and conditionParamRef.totalSubScoreEnd != null">
${_conditionType_} a.totalSubScore <![CDATA[ <= ]]> #{${_conditionParam_}.totalSubScoreEnd}
</if>
<if test="conditionParamRef.containsKey('attendScoreAdd')">
<if test="conditionParamRef.attendScoreAdd != null ">
${_conditionType_} a.attendScoreAdd = #{${_conditionParam_}.attendScoreAdd}
</if>
<if test="conditionParamRef.attendScoreAdd == null">
${_conditionType_} a.attendScoreAdd is null
</if>
</if>
<if test="conditionParamRef.containsKey('attendScoreAddList') and conditionParamRef.attendScoreAddList.size() > 0">
${_conditionType_} a.attendScoreAdd in
<foreach collection="conditionParamRef.attendScoreAddList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('attendScoreAddNotList') and conditionParamRef.attendScoreAddNotList.size() > 0">
${_conditionType_} a.attendScoreAdd not in
<foreach collection="conditionParamRef.attendScoreAddNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('attendScoreAddStart') and conditionParamRef.attendScoreAddStart != null">
${_conditionType_} a.attendScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.attendScoreAddStart}
</if>
<if test="conditionParamRef.containsKey('attendScoreAddEnd') and conditionParamRef.attendScoreAddEnd != null">
${_conditionType_} a.attendScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.attendScoreAddEnd}
</if>
<if test="conditionParamRef.containsKey('attendScoreSub')">
<if test="conditionParamRef.attendScoreSub != null ">
${_conditionType_} a.attendScoreSub = #{${_conditionParam_}.attendScoreSub}
</if> </if>
<if test="conditionParamRef.attendScoreSub == null"> <if test="conditionParamRef.attendScoreSub == null">
${_conditionType_} a.attendScoreSub is null ${_conditionType_} a.attendScoreSub is null
...@@ -866,112 +920,166 @@ ...@@ -866,112 +920,166 @@
${_conditionType_} a.attendScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.attendScoreSubEnd} ${_conditionType_} a.attendScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.attendScoreSubEnd}
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAdd')"> <if test="conditionParamRef.containsKey('reviewScoreAdd')">
<if test="conditionParamRef.assessScoreAdd != null "> <if test="conditionParamRef.reviewScoreAdd != null ">
${_conditionType_} a.assessScoreAdd = #{${_conditionParam_}.assessScoreAdd} ${_conditionType_} a.reviewScoreAdd = #{${_conditionParam_}.reviewScoreAdd}
</if>
<if test="conditionParamRef.reviewScoreAdd == null">
${_conditionType_} a.reviewScoreAdd is null
</if>
</if>
<if test="conditionParamRef.containsKey('reviewScoreAddList') and conditionParamRef.reviewScoreAddList.size() > 0">
${_conditionType_} a.reviewScoreAdd in
<foreach collection="conditionParamRef.reviewScoreAddList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('reviewScoreAddNotList') and conditionParamRef.reviewScoreAddNotList.size() > 0">
${_conditionType_} a.reviewScoreAdd not in
<foreach collection="conditionParamRef.reviewScoreAddNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('reviewScoreAddStart') and conditionParamRef.reviewScoreAddStart != null">
${_conditionType_} a.reviewScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.reviewScoreAddStart}
</if>
<if test="conditionParamRef.containsKey('reviewScoreAddEnd') and conditionParamRef.reviewScoreAddEnd != null">
${_conditionType_} a.reviewScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.reviewScoreAddEnd}
</if>
<if test="conditionParamRef.containsKey('reviewScoreSub')">
<if test="conditionParamRef.reviewScoreSub != null ">
${_conditionType_} a.reviewScoreSub = #{${_conditionParam_}.reviewScoreSub}
</if>
<if test="conditionParamRef.reviewScoreSub == null">
${_conditionType_} a.reviewScoreSub is null
</if>
</if>
<if test="conditionParamRef.containsKey('reviewScoreSubList') and conditionParamRef.reviewScoreSubList.size() > 0">
${_conditionType_} a.reviewScoreSub in
<foreach collection="conditionParamRef.reviewScoreSubList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('reviewScoreSubNotList') and conditionParamRef.reviewScoreSubNotList.size() > 0">
${_conditionType_} a.reviewScoreSub not in
<foreach collection="conditionParamRef.reviewScoreSubNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('reviewScoreSubStart') and conditionParamRef.reviewScoreSubStart != null">
${_conditionType_} a.reviewScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.reviewScoreSubStart}
</if>
<if test="conditionParamRef.containsKey('reviewScoreSubEnd') and conditionParamRef.reviewScoreSubEnd != null">
${_conditionType_} a.reviewScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.reviewScoreSubEnd}
</if>
<if test="conditionParamRef.containsKey('complainScoreAdd')">
<if test="conditionParamRef.complainScoreAdd != null ">
${_conditionType_} a.complainScoreAdd = #{${_conditionParam_}.complainScoreAdd}
</if> </if>
<if test="conditionParamRef.assessScoreAdd == null"> <if test="conditionParamRef.complainScoreAdd == null">
${_conditionType_} a.assessScoreAdd is null ${_conditionType_} a.complainScoreAdd is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAddList') and conditionParamRef.assessScoreAddList.size() > 0"> <if test="conditionParamRef.containsKey('complainScoreAddList') and conditionParamRef.complainScoreAddList.size() > 0">
${_conditionType_} a.assessScoreAdd in ${_conditionType_} a.complainScoreAdd in
<foreach collection="conditionParamRef.assessScoreAddList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.complainScoreAddList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAddNotList') and conditionParamRef.assessScoreAddNotList.size() > 0"> <if test="conditionParamRef.containsKey('complainScoreAddNotList') and conditionParamRef.complainScoreAddNotList.size() > 0">
${_conditionType_} a.assessScoreAdd not in ${_conditionType_} a.complainScoreAdd not in
<foreach collection="conditionParamRef.assessScoreAddNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.complainScoreAddNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAddStart') and conditionParamRef.assessScoreAddStart != null"> <if test="conditionParamRef.containsKey('complainScoreAddStart') and conditionParamRef.complainScoreAddStart != null">
${_conditionType_} a.assessScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.assessScoreAddStart} ${_conditionType_} a.complainScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.complainScoreAddStart}
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAddEnd') and conditionParamRef.assessScoreAddEnd != null"> <if test="conditionParamRef.containsKey('complainScoreAddEnd') and conditionParamRef.complainScoreAddEnd != null">
${_conditionType_} a.assessScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.assessScoreAddEnd} ${_conditionType_} a.complainScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.complainScoreAddEnd}
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSub')"> <if test="conditionParamRef.containsKey('complainScoreSub')">
<if test="conditionParamRef.assessScoreSub != null "> <if test="conditionParamRef.complainScoreSub != null ">
${_conditionType_} a.assessScoreSub = #{${_conditionParam_}.assessScoreSub} ${_conditionType_} a.complainScoreSub = #{${_conditionParam_}.complainScoreSub}
</if> </if>
<if test="conditionParamRef.assessScoreSub == null"> <if test="conditionParamRef.complainScoreSub == null">
${_conditionType_} a.assessScoreSub is null ${_conditionType_} a.complainScoreSub is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSubList') and conditionParamRef.assessScoreSubList.size() > 0"> <if test="conditionParamRef.containsKey('complainScoreSubList') and conditionParamRef.complainScoreSubList.size() > 0">
${_conditionType_} a.assessScoreSub in ${_conditionType_} a.complainScoreSub in
<foreach collection="conditionParamRef.assessScoreSubList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.complainScoreSubList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSubNotList') and conditionParamRef.assessScoreSubNotList.size() > 0"> <if test="conditionParamRef.containsKey('complainScoreSubNotList') and conditionParamRef.complainScoreSubNotList.size() > 0">
${_conditionType_} a.assessScoreSub not in ${_conditionType_} a.complainScoreSub not in
<foreach collection="conditionParamRef.assessScoreSubNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.complainScoreSubNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSubStart') and conditionParamRef.assessScoreSubStart != null"> <if test="conditionParamRef.containsKey('complainScoreSubStart') and conditionParamRef.complainScoreSubStart != null">
${_conditionType_} a.assessScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.assessScoreSubStart} ${_conditionType_} a.complainScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.complainScoreSubStart}
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSubEnd') and conditionParamRef.assessScoreSubEnd != null"> <if test="conditionParamRef.containsKey('complainScoreSubEnd') and conditionParamRef.complainScoreSubEnd != null">
${_conditionType_} a.assessScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.assessScoreSubEnd} ${_conditionType_} a.complainScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.complainScoreSubEnd}
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAdd')"> <if test="conditionParamRef.containsKey('goworkScoreAdd')">
<if test="conditionParamRef.workScoreAdd != null "> <if test="conditionParamRef.goworkScoreAdd != null ">
${_conditionType_} a.workScoreAdd = #{${_conditionParam_}.workScoreAdd} ${_conditionType_} a.goworkScoreAdd = #{${_conditionParam_}.goworkScoreAdd}
</if> </if>
<if test="conditionParamRef.workScoreAdd == null"> <if test="conditionParamRef.goworkScoreAdd == null">
${_conditionType_} a.workScoreAdd is null ${_conditionType_} a.goworkScoreAdd is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAddList') and conditionParamRef.workScoreAddList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreAddList') and conditionParamRef.goworkScoreAddList.size() > 0">
${_conditionType_} a.workScoreAdd in ${_conditionType_} a.goworkScoreAdd in
<foreach collection="conditionParamRef.workScoreAddList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreAddList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAddNotList') and conditionParamRef.workScoreAddNotList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreAddNotList') and conditionParamRef.goworkScoreAddNotList.size() > 0">
${_conditionType_} a.workScoreAdd not in ${_conditionType_} a.goworkScoreAdd not in
<foreach collection="conditionParamRef.workScoreAddNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreAddNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAddStart') and conditionParamRef.workScoreAddStart != null"> <if test="conditionParamRef.containsKey('goworkScoreAddStart') and conditionParamRef.goworkScoreAddStart != null">
${_conditionType_} a.workScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.workScoreAddStart} ${_conditionType_} a.goworkScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.goworkScoreAddStart}
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAddEnd') and conditionParamRef.workScoreAddEnd != null"> <if test="conditionParamRef.containsKey('goworkScoreAddEnd') and conditionParamRef.goworkScoreAddEnd != null">
${_conditionType_} a.workScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.workScoreAddEnd} ${_conditionType_} a.goworkScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.goworkScoreAddEnd}
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSub')"> <if test="conditionParamRef.containsKey('goworkScoreSub')">
<if test="conditionParamRef.workScoreSub != null "> <if test="conditionParamRef.goworkScoreSub != null ">
${_conditionType_} a.workScoreSub = #{${_conditionParam_}.workScoreSub} ${_conditionType_} a.goworkScoreSub = #{${_conditionParam_}.goworkScoreSub}
</if> </if>
<if test="conditionParamRef.workScoreSub == null"> <if test="conditionParamRef.goworkScoreSub == null">
${_conditionType_} a.workScoreSub is null ${_conditionType_} a.goworkScoreSub is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSubList') and conditionParamRef.workScoreSubList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreSubList') and conditionParamRef.goworkScoreSubList.size() > 0">
${_conditionType_} a.workScoreSub in ${_conditionType_} a.goworkScoreSub in
<foreach collection="conditionParamRef.workScoreSubList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreSubList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSubNotList') and conditionParamRef.workScoreSubNotList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreSubNotList') and conditionParamRef.goworkScoreSubNotList.size() > 0">
${_conditionType_} a.workScoreSub not in ${_conditionType_} a.goworkScoreSub not in
<foreach collection="conditionParamRef.workScoreSubNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreSubNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSubStart') and conditionParamRef.workScoreSubStart != null"> <if test="conditionParamRef.containsKey('goworkScoreSubStart') and conditionParamRef.goworkScoreSubStart != null">
${_conditionType_} a.workScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.workScoreSubStart} ${_conditionType_} a.goworkScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.goworkScoreSubStart}
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSubEnd') and conditionParamRef.workScoreSubEnd != null"> <if test="conditionParamRef.containsKey('goworkScoreSubEnd') and conditionParamRef.goworkScoreSubEnd != null">
${_conditionType_} a.workScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.workScoreSubEnd} ${_conditionType_} a.goworkScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.goworkScoreSubEnd}
</if> </if>
<if test="conditionParamRef.containsKey('effectScoreAdd')"> <if test="conditionParamRef.containsKey('effectScoreAdd')">
...@@ -1082,6 +1190,33 @@ ...@@ -1082,6 +1190,33 @@
${_conditionType_} a.otherScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.otherScoreSubEnd} ${_conditionType_} a.otherScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.otherScoreSubEnd}
</if> </if>
<if test="conditionParamRef.containsKey('averageScore')">
<if test="conditionParamRef.averageScore != null ">
${_conditionType_} a.averageScore = #{${_conditionParam_}.averageScore}
</if>
<if test="conditionParamRef.averageScore == null">
${_conditionType_} a.averageScore is null
</if>
</if>
<if test="conditionParamRef.containsKey('averageScoreList') and conditionParamRef.averageScoreList.size() > 0">
${_conditionType_} a.averageScore in
<foreach collection="conditionParamRef.averageScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('averageScoreNotList') and conditionParamRef.averageScoreNotList.size() > 0">
${_conditionType_} a.averageScore not in
<foreach collection="conditionParamRef.averageScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('averageScoreStart') and conditionParamRef.averageScoreStart != null">
${_conditionType_} a.averageScore <![CDATA[ >= ]]> #{${_conditionParam_}.averageScoreStart}
</if>
<if test="conditionParamRef.containsKey('averageScoreEnd') and conditionParamRef.averageScoreEnd != null">
${_conditionType_} a.averageScore <![CDATA[ <= ]]> #{${_conditionParam_}.averageScoreEnd}
</if>
<if test="conditionParamRef.containsKey('remark')"> <if test="conditionParamRef.containsKey('remark')">
<if test="conditionParamRef.remark != null and conditionParamRef.remark != ''"> <if test="conditionParamRef.remark != null and conditionParamRef.remark != ''">
...@@ -1268,141 +1403,6 @@ ...@@ -1268,141 +1403,6 @@
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd} ${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if> </if>
<if test="conditionParamRef.containsKey('totalAddScore')">
<if test="conditionParamRef.totalAddScore != null ">
${_conditionType_} a.totalAddScore = #{${_conditionParam_}.totalAddScore}
</if>
<if test="conditionParamRef.totalAddScore == null">
${_conditionType_} a.totalAddScore is null
</if>
</if>
<if test="conditionParamRef.containsKey('totalAddScoreList') and conditionParamRef.totalAddScoreList.size() > 0">
${_conditionType_} a.totalAddScore in
<foreach collection="conditionParamRef.totalAddScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('totalAddScoreNotList') and conditionParamRef.totalAddScoreNotList.size() > 0">
${_conditionType_} a.totalAddScore not in
<foreach collection="conditionParamRef.totalAddScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('totalAddScoreStart') and conditionParamRef.totalAddScoreStart != null">
${_conditionType_} a.totalAddScore <![CDATA[ >= ]]> #{${_conditionParam_}.totalAddScoreStart}
</if>
<if test="conditionParamRef.containsKey('totalAddScoreEnd') and conditionParamRef.totalAddScoreEnd != null">
${_conditionType_} a.totalAddScore <![CDATA[ <= ]]> #{${_conditionParam_}.totalAddScoreEnd}
</if>
<if test="conditionParamRef.containsKey('totalSubScore')">
<if test="conditionParamRef.totalSubScore != null ">
${_conditionType_} a.totalSubScore = #{${_conditionParam_}.totalSubScore}
</if>
<if test="conditionParamRef.totalSubScore == null">
${_conditionType_} a.totalSubScore is null
</if>
</if>
<if test="conditionParamRef.containsKey('totalSubScoreList') and conditionParamRef.totalSubScoreList.size() > 0">
${_conditionType_} a.totalSubScore in
<foreach collection="conditionParamRef.totalSubScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('totalSubScoreNotList') and conditionParamRef.totalSubScoreNotList.size() > 0">
${_conditionType_} a.totalSubScore not in
<foreach collection="conditionParamRef.totalSubScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('totalSubScoreStart') and conditionParamRef.totalSubScoreStart != null">
${_conditionType_} a.totalSubScore <![CDATA[ >= ]]> #{${_conditionParam_}.totalSubScoreStart}
</if>
<if test="conditionParamRef.containsKey('totalSubScoreEnd') and conditionParamRef.totalSubScoreEnd != null">
${_conditionType_} a.totalSubScore <![CDATA[ <= ]]> #{${_conditionParam_}.totalSubScoreEnd}
</if>
<if test="conditionParamRef.containsKey('complainScoreAdd')">
<if test="conditionParamRef.complainScoreAdd != null ">
${_conditionType_} a.complainScoreAdd = #{${_conditionParam_}.complainScoreAdd}
</if>
<if test="conditionParamRef.complainScoreAdd == null">
${_conditionType_} a.complainScoreAdd is null
</if>
</if>
<if test="conditionParamRef.containsKey('complainScoreAddList') and conditionParamRef.complainScoreAddList.size() > 0">
${_conditionType_} a.complainScoreAdd in
<foreach collection="conditionParamRef.complainScoreAddList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('complainScoreAddNotList') and conditionParamRef.complainScoreAddNotList.size() > 0">
${_conditionType_} a.complainScoreAdd not in
<foreach collection="conditionParamRef.complainScoreAddNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('complainScoreAddStart') and conditionParamRef.complainScoreAddStart != null">
${_conditionType_} a.complainScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.complainScoreAddStart}
</if>
<if test="conditionParamRef.containsKey('complainScoreAddEnd') and conditionParamRef.complainScoreAddEnd != null">
${_conditionType_} a.complainScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.complainScoreAddEnd}
</if>
<if test="conditionParamRef.containsKey('complainScoreSub')">
<if test="conditionParamRef.complainScoreSub != null ">
${_conditionType_} a.complainScoreSub = #{${_conditionParam_}.complainScoreSub}
</if>
<if test="conditionParamRef.complainScoreSub == null">
${_conditionType_} a.complainScoreSub is null
</if>
</if>
<if test="conditionParamRef.containsKey('complainScoreSubList') and conditionParamRef.complainScoreSubList.size() > 0">
${_conditionType_} a.complainScoreSub in
<foreach collection="conditionParamRef.complainScoreSubList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('complainScoreSubNotList') and conditionParamRef.complainScoreSubNotList.size() > 0">
${_conditionType_} a.complainScoreSub not in
<foreach collection="conditionParamRef.complainScoreSubNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('complainScoreSubStart') and conditionParamRef.complainScoreSubStart != null">
${_conditionType_} a.complainScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.complainScoreSubStart}
</if>
<if test="conditionParamRef.containsKey('complainScoreSubEnd') and conditionParamRef.complainScoreSubEnd != null">
${_conditionType_} a.complainScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.complainScoreSubEnd}
</if>
<if test="conditionParamRef.containsKey('averageScore')">
<if test="conditionParamRef.averageScore != null ">
${_conditionType_} a.averageScore = #{${_conditionParam_}.averageScore}
</if>
<if test="conditionParamRef.averageScore == null">
${_conditionType_} a.averageScore is null
</if>
</if>
<if test="conditionParamRef.containsKey('averageScoreList') and conditionParamRef.averageScoreList.size() > 0">
${_conditionType_} a.averageScore in
<foreach collection="conditionParamRef.averageScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('averageScoreNotList') and conditionParamRef.averageScoreNotList.size() > 0">
${_conditionType_} a.averageScore not in
<foreach collection="conditionParamRef.averageScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('averageScoreStart') and conditionParamRef.averageScoreStart != null">
${_conditionType_} a.averageScore <![CDATA[ >= ]]> #{${_conditionParam_}.averageScoreStart}
</if>
<if test="conditionParamRef.containsKey('averageScoreEnd') and conditionParamRef.averageScoreEnd != null">
${_conditionType_} a.averageScore <![CDATA[ <= ]]> #{${_conditionParam_}.averageScoreEnd}
</if>
</sql> </sql>
<sql id="_orderCols_"> <sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()"> <if test="orderColList != null and !orderColList.isEmpty()">
...@@ -1436,6 +1436,16 @@ ...@@ -1436,6 +1436,16 @@
<if test='orderCol.totalScore != null and "DESC".equalsIgnoreCase(orderCol.totalScore)'>DESC</if> <if test='orderCol.totalScore != null and "DESC".equalsIgnoreCase(orderCol.totalScore)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('totalAddScore')">
a.totalAddScore
<if test='orderCol.totalAddScore != null and "DESC".equalsIgnoreCase(orderCol.totalAddScore)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('totalSubScore')">
a.totalSubScore
<if test='orderCol.totalSubScore != null and "DESC".equalsIgnoreCase(orderCol.totalSubScore)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('attendScoreAdd')"> <if test="orderCol.containsKey('attendScoreAdd')">
a.attendScoreAdd a.attendScoreAdd
<if test='orderCol.attendScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.attendScoreAdd)'>DESC</if> <if test='orderCol.attendScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.attendScoreAdd)'>DESC</if>
...@@ -1446,24 +1456,34 @@ ...@@ -1446,24 +1456,34 @@
<if test='orderCol.attendScoreSub != null and "DESC".equalsIgnoreCase(orderCol.attendScoreSub)'>DESC</if> <if test='orderCol.attendScoreSub != null and "DESC".equalsIgnoreCase(orderCol.attendScoreSub)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('assessScoreAdd')"> <if test="orderCol.containsKey('reviewScoreAdd')">
a.assessScoreAdd a.reviewScoreAdd
<if test='orderCol.assessScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.assessScoreAdd)'>DESC</if> <if test='orderCol.reviewScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.reviewScoreAdd)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('assessScoreSub')"> <if test="orderCol.containsKey('reviewScoreSub')">
a.assessScoreSub a.reviewScoreSub
<if test='orderCol.assessScoreSub != null and "DESC".equalsIgnoreCase(orderCol.assessScoreSub)'>DESC</if> <if test='orderCol.reviewScoreSub != null and "DESC".equalsIgnoreCase(orderCol.reviewScoreSub)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('workScoreAdd')"> <if test="orderCol.containsKey('complainScoreAdd')">
a.workScoreAdd a.complainScoreAdd
<if test='orderCol.workScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.workScoreAdd)'>DESC</if> <if test='orderCol.complainScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.complainScoreAdd)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('complainScoreSub')">
a.complainScoreSub
<if test='orderCol.complainScoreSub != null and "DESC".equalsIgnoreCase(orderCol.complainScoreSub)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('goworkScoreAdd')">
a.goworkScoreAdd
<if test='orderCol.goworkScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.goworkScoreAdd)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('workScoreSub')"> <if test="orderCol.containsKey('goworkScoreSub')">
a.workScoreSub a.goworkScoreSub
<if test='orderCol.workScoreSub != null and "DESC".equalsIgnoreCase(orderCol.workScoreSub)'>DESC</if> <if test='orderCol.goworkScoreSub != null and "DESC".equalsIgnoreCase(orderCol.goworkScoreSub)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('effectScoreAdd')"> <if test="orderCol.containsKey('effectScoreAdd')">
...@@ -1486,6 +1506,11 @@ ...@@ -1486,6 +1506,11 @@
<if test='orderCol.otherScoreSub != null and "DESC".equalsIgnoreCase(orderCol.otherScoreSub)'>DESC</if> <if test='orderCol.otherScoreSub != null and "DESC".equalsIgnoreCase(orderCol.otherScoreSub)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('averageScore')">
a.averageScore
<if test='orderCol.averageScore != null and "DESC".equalsIgnoreCase(orderCol.averageScore)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('remark')"> <if test="orderCol.containsKey('remark')">
a.remark a.remark
<if test='orderCol.remark != null and "DESC".equalsIgnoreCase(orderCol.remark)'>DESC</if> <if test='orderCol.remark != null and "DESC".equalsIgnoreCase(orderCol.remark)'>DESC</if>
...@@ -1526,31 +1551,6 @@ ...@@ -1526,31 +1551,6 @@
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if> <if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('totalAddScore')">
a.totalAddScore
<if test='orderCol.totalAddScore != null and "DESC".equalsIgnoreCase(orderCol.totalAddScore)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('totalSubScore')">
a.totalSubScore
<if test='orderCol.totalSubScore != null and "DESC".equalsIgnoreCase(orderCol.totalSubScore)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('complainScoreAdd')">
a.complainScoreAdd
<if test='orderCol.complainScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.complainScoreAdd)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('complainScoreSub')">
a.complainScoreSub
<if test='orderCol.complainScoreSub != null and "DESC".equalsIgnoreCase(orderCol.complainScoreSub)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('averageScore')">
a.averageScore
<if test='orderCol.averageScore != null and "DESC".equalsIgnoreCase(orderCol.averageScore)'>DESC</if>
,
</if>
</trim> </trim>
</if> </if>
</sql> </sql>
......
<?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.dept.dao.ibatis.DeptPerformStatDaoImpl">
<!-- 按天top10 -->
<select id="getSummaryCheckList" parameterType="com.mortals.xhx.module.dept.model.vo.DeptSummaryTopQuery" resultType="com.mortals.xhx.module.dept.model.DeptPerformStatEntity">
SELECT * FROM (
SELECT
`year`,
`month`,
`day`,
deptId,
deptName,
SUM(totalScore) AS totalScore
FROM
mortals_xhx_dept_perform_stat
WHERE 1=1
<if test="year != null">
AND `year` = #{year}
</if>
<if test="month != null">
AND `month` = #{month}
</if>
<if test="day != null">
AND `day` = #{day}
</if>
GROUP BY
deptId,
`year`,
`month`,
`day`
) AS a ORDER BY totalScore DESC LIMIT 10
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd"> "mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.staff.dao.ibatis.StaffPerformStatDaoImpl"> <mapper namespace="com.mortals.xhx.module.staff.dao.ibatis.StaffPerformStatDaoImpl">
<!-- 字段和属性映射 --> <!-- 字段和属性映射 -->
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
<result property="totalSubScore" column="totalSubScore" /> <result property="totalSubScore" column="totalSubScore" />
<result property="attendScoreAdd" column="attendScoreAdd" /> <result property="attendScoreAdd" column="attendScoreAdd" />
<result property="attendScoreSub" column="attendScoreSub" /> <result property="attendScoreSub" column="attendScoreSub" />
<result property="assessScoreAdd" column="assessScoreAdd" /> <result property="reviewScoreAdd" column="reviewScoreAdd" />
<result property="assessScoreSub" column="assessScoreSub" /> <result property="reviewScoreSub" column="reviewScoreSub" />
<result property="complainScoreAdd" column="complainScoreAdd" /> <result property="complainScoreAdd" column="complainScoreAdd" />
<result property="complainScoreSub" column="complainScoreSub" /> <result property="complainScoreSub" column="complainScoreSub" />
<result property="workScoreAdd" column="workScoreAdd" /> <result property="goworkScoreAdd" column="goworkScoreAdd" />
<result property="workScoreSub" column="workScoreSub" /> <result property="goworkScoreSub" column="goworkScoreSub" />
<result property="effectScoreAdd" column="effectScoreAdd" /> <result property="effectScoreAdd" column="effectScoreAdd" />
<result property="effectScoreSub" column="effectScoreSub" /> <result property="effectScoreSub" column="effectScoreSub" />
<result property="otherScoreAdd" column="otherScoreAdd" /> <result property="otherScoreAdd" column="otherScoreAdd" />
...@@ -62,11 +62,11 @@ ...@@ -62,11 +62,11 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendScoreSub') or colPickMode == 1 and data.containsKey('attendScoreSub')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendScoreSub') or colPickMode == 1 and data.containsKey('attendScoreSub')))">
a.attendScoreSub, a.attendScoreSub,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('assessScoreAdd') or colPickMode == 1 and data.containsKey('assessScoreAdd')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('reviewScoreAdd') or colPickMode == 1 and data.containsKey('reviewScoreAdd')))">
a.assessScoreAdd, a.reviewScoreAdd,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('assessScoreSub') or colPickMode == 1 and data.containsKey('assessScoreSub')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('reviewScoreSub') or colPickMode == 1 and data.containsKey('reviewScoreSub')))">
a.assessScoreSub, a.reviewScoreSub,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('complainScoreAdd') or colPickMode == 1 and data.containsKey('complainScoreAdd')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('complainScoreAdd') or colPickMode == 1 and data.containsKey('complainScoreAdd')))">
a.complainScoreAdd, a.complainScoreAdd,
...@@ -74,11 +74,11 @@ ...@@ -74,11 +74,11 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('complainScoreSub') or colPickMode == 1 and data.containsKey('complainScoreSub')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('complainScoreSub') or colPickMode == 1 and data.containsKey('complainScoreSub')))">
a.complainScoreSub, a.complainScoreSub,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('workScoreAdd') or colPickMode == 1 and data.containsKey('workScoreAdd')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('goworkScoreAdd') or colPickMode == 1 and data.containsKey('goworkScoreAdd')))">
a.workScoreAdd, a.goworkScoreAdd,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('workScoreSub') or colPickMode == 1 and data.containsKey('workScoreSub')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('goworkScoreSub') or colPickMode == 1 and data.containsKey('goworkScoreSub')))">
a.workScoreSub, a.goworkScoreSub,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('effectScoreAdd') or colPickMode == 1 and data.containsKey('effectScoreAdd')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('effectScoreAdd') or colPickMode == 1 and data.containsKey('effectScoreAdd')))">
a.effectScoreAdd, a.effectScoreAdd,
...@@ -121,18 +121,18 @@ ...@@ -121,18 +121,18 @@
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="StaffPerformStatEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="StaffPerformStatEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_staff_perform_stat insert into mortals_xhx_staff_perform_stat
(staffId,staffName,totalScore,totalAddScore,totalSubScore,attendScoreAdd,attendScoreSub,assessScoreAdd,assessScoreSub,complainScoreAdd,complainScoreSub,workScoreAdd,workScoreSub,effectScoreAdd,effectScoreSub,otherScoreAdd,otherScoreSub,remark,year,month,day,createTime,createUserId,updateTime,updateUserId) (staffId,staffName,totalScore,totalAddScore,totalSubScore,attendScoreAdd,attendScoreSub,reviewScoreAdd,reviewScoreSub,complainScoreAdd,complainScoreSub,goworkScoreAdd,goworkScoreSub,effectScoreAdd,effectScoreSub,otherScoreAdd,otherScoreSub,remark,year,month,day,createTime,createUserId,updateTime,updateUserId)
VALUES VALUES
(#{staffId},#{staffName},#{totalScore},#{totalAddScore},#{totalSubScore},#{attendScoreAdd},#{attendScoreSub},#{assessScoreAdd},#{assessScoreSub},#{complainScoreAdd},#{complainScoreSub},#{workScoreAdd},#{workScoreSub},#{effectScoreAdd},#{effectScoreSub},#{otherScoreAdd},#{otherScoreSub},#{remark},#{year},#{month},#{day},#{createTime},#{createUserId},#{updateTime},#{updateUserId}) (#{staffId},#{staffName},#{totalScore},#{totalAddScore},#{totalSubScore},#{attendScoreAdd},#{attendScoreSub},#{reviewScoreAdd},#{reviewScoreSub},#{complainScoreAdd},#{complainScoreSub},#{goworkScoreAdd},#{goworkScoreSub},#{effectScoreAdd},#{effectScoreSub},#{otherScoreAdd},#{otherScoreSub},#{remark},#{year},#{month},#{day},#{createTime},#{createUserId},#{updateTime},#{updateUserId})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_staff_perform_stat insert into mortals_xhx_staff_perform_stat
(staffId,staffName,totalScore,totalAddScore,totalSubScore,attendScoreAdd,attendScoreSub,assessScoreAdd,assessScoreSub,complainScoreAdd,complainScoreSub,workScoreAdd,workScoreSub,effectScoreAdd,effectScoreSub,otherScoreAdd,otherScoreSub,remark,year,month,day,createTime,createUserId,updateTime,updateUserId) (staffId,staffName,totalScore,totalAddScore,totalSubScore,attendScoreAdd,attendScoreSub,reviewScoreAdd,reviewScoreSub,complainScoreAdd,complainScoreSub,goworkScoreAdd,goworkScoreSub,effectScoreAdd,effectScoreSub,otherScoreAdd,otherScoreSub,remark,year,month,day,createTime,createUserId,updateTime,updateUserId)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.staffId},#{item.staffName},#{item.totalScore},#{item.totalAddScore},#{item.totalSubScore},#{item.attendScoreAdd},#{item.attendScoreSub},#{item.assessScoreAdd},#{item.assessScoreSub},#{item.complainScoreAdd},#{item.complainScoreSub},#{item.workScoreAdd},#{item.workScoreSub},#{item.effectScoreAdd},#{item.effectScoreSub},#{item.otherScoreAdd},#{item.otherScoreSub},#{item.remark},#{item.year},#{item.month},#{item.day},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId}) (#{item.staffId},#{item.staffName},#{item.totalScore},#{item.totalAddScore},#{item.totalSubScore},#{item.attendScoreAdd},#{item.attendScoreSub},#{item.reviewScoreAdd},#{item.reviewScoreSub},#{item.complainScoreAdd},#{item.complainScoreSub},#{item.goworkScoreAdd},#{item.goworkScoreSub},#{item.effectScoreAdd},#{item.effectScoreSub},#{item.otherScoreAdd},#{item.otherScoreSub},#{item.remark},#{item.year},#{item.month},#{item.day},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId})
</foreach> </foreach>
</insert> </insert>
...@@ -181,17 +181,17 @@ ...@@ -181,17 +181,17 @@
<if test="(colPickMode==0 and data.containsKey('attendScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('attendScoreSubIncrement'))"> <if test="(colPickMode==0 and data.containsKey('attendScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('attendScoreSubIncrement'))">
a.attendScoreSub=ifnull(a.attendScoreSub,0) + #{data.attendScoreSubIncrement}, a.attendScoreSub=ifnull(a.attendScoreSub,0) + #{data.attendScoreSubIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScoreAdd')) or (colPickMode==1 and !data.containsKey('assessScoreAdd'))"> <if test="(colPickMode==0 and data.containsKey('reviewScoreAdd')) or (colPickMode==1 and !data.containsKey('reviewScoreAdd'))">
a.assessScoreAdd=#{data.assessScoreAdd}, a.reviewScoreAdd=#{data.reviewScoreAdd},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('assessScoreAddIncrement'))"> <if test="(colPickMode==0 and data.containsKey('reviewScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('reviewScoreAddIncrement'))">
a.assessScoreAdd=ifnull(a.assessScoreAdd,0) + #{data.assessScoreAddIncrement}, a.reviewScoreAdd=ifnull(a.reviewScoreAdd,0) + #{data.reviewScoreAddIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScoreSub')) or (colPickMode==1 and !data.containsKey('assessScoreSub'))"> <if test="(colPickMode==0 and data.containsKey('reviewScoreSub')) or (colPickMode==1 and !data.containsKey('reviewScoreSub'))">
a.assessScoreSub=#{data.assessScoreSub}, a.reviewScoreSub=#{data.reviewScoreSub},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('assessScoreSubIncrement'))"> <if test="(colPickMode==0 and data.containsKey('reviewScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('reviewScoreSubIncrement'))">
a.assessScoreSub=ifnull(a.assessScoreSub,0) + #{data.assessScoreSubIncrement}, a.reviewScoreSub=ifnull(a.reviewScoreSub,0) + #{data.reviewScoreSubIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('complainScoreAdd')) or (colPickMode==1 and !data.containsKey('complainScoreAdd'))"> <if test="(colPickMode==0 and data.containsKey('complainScoreAdd')) or (colPickMode==1 and !data.containsKey('complainScoreAdd'))">
a.complainScoreAdd=#{data.complainScoreAdd}, a.complainScoreAdd=#{data.complainScoreAdd},
...@@ -205,17 +205,17 @@ ...@@ -205,17 +205,17 @@
<if test="(colPickMode==0 and data.containsKey('complainScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('complainScoreSubIncrement'))"> <if test="(colPickMode==0 and data.containsKey('complainScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('complainScoreSubIncrement'))">
a.complainScoreSub=ifnull(a.complainScoreSub,0) + #{data.complainScoreSubIncrement}, a.complainScoreSub=ifnull(a.complainScoreSub,0) + #{data.complainScoreSubIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScoreAdd')) or (colPickMode==1 and !data.containsKey('workScoreAdd'))"> <if test="(colPickMode==0 and data.containsKey('goworkScoreAdd')) or (colPickMode==1 and !data.containsKey('goworkScoreAdd'))">
a.workScoreAdd=#{data.workScoreAdd}, a.goworkScoreAdd=#{data.goworkScoreAdd},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('workScoreAddIncrement'))"> <if test="(colPickMode==0 and data.containsKey('goworkScoreAddIncrement')) or (colPickMode==1 and !data.containsKey('goworkScoreAddIncrement'))">
a.workScoreAdd=ifnull(a.workScoreAdd,0) + #{data.workScoreAddIncrement}, a.goworkScoreAdd=ifnull(a.goworkScoreAdd,0) + #{data.goworkScoreAddIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScoreSub')) or (colPickMode==1 and !data.containsKey('workScoreSub'))"> <if test="(colPickMode==0 and data.containsKey('goworkScoreSub')) or (colPickMode==1 and !data.containsKey('goworkScoreSub'))">
a.workScoreSub=#{data.workScoreSub}, a.goworkScoreSub=#{data.goworkScoreSub},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('workScoreSubIncrement'))"> <if test="(colPickMode==0 and data.containsKey('goworkScoreSubIncrement')) or (colPickMode==1 and !data.containsKey('goworkScoreSubIncrement'))">
a.workScoreSub=ifnull(a.workScoreSub,0) + #{data.workScoreSubIncrement}, a.goworkScoreSub=ifnull(a.goworkScoreSub,0) + #{data.goworkScoreSubIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('effectScoreAdd')) or (colPickMode==1 and !data.containsKey('effectScoreAdd'))"> <if test="(colPickMode==0 and data.containsKey('effectScoreAdd')) or (colPickMode==1 and !data.containsKey('effectScoreAdd'))">
a.effectScoreAdd=#{data.effectScoreAdd}, a.effectScoreAdd=#{data.effectScoreAdd},
...@@ -371,26 +371,26 @@ ...@@ -371,26 +371,26 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="assessScoreAdd=(case" suffix="ELSE assessScoreAdd end),"> <trim prefix="reviewScoreAdd=(case" suffix="ELSE reviewScoreAdd end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('assessScoreAdd')) or (colPickMode==1 and !item.containsKey('assessScoreAdd'))"> <when test="(colPickMode==0 and item.containsKey('reviewScoreAdd')) or (colPickMode==1 and !item.containsKey('reviewScoreAdd'))">
when a.id=#{item.id} then #{item.assessScoreAdd} when a.id=#{item.id} then #{item.reviewScoreAdd}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('assessScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('assessScoreAddIncrement'))"> <when test="(colPickMode==0 and item.containsKey('reviewScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('reviewScoreAddIncrement'))">
when a.id=#{item.id} then ifnull(a.assessScoreAdd,0) + #{item.assessScoreAddIncrement} when a.id=#{item.id} then ifnull(a.reviewScoreAdd,0) + #{item.reviewScoreAddIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="assessScoreSub=(case" suffix="ELSE assessScoreSub end),"> <trim prefix="reviewScoreSub=(case" suffix="ELSE reviewScoreSub end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('assessScoreSub')) or (colPickMode==1 and !item.containsKey('assessScoreSub'))"> <when test="(colPickMode==0 and item.containsKey('reviewScoreSub')) or (colPickMode==1 and !item.containsKey('reviewScoreSub'))">
when a.id=#{item.id} then #{item.assessScoreSub} when a.id=#{item.id} then #{item.reviewScoreSub}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('assessScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('assessScoreSubIncrement'))"> <when test="(colPickMode==0 and item.containsKey('reviewScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('reviewScoreSubIncrement'))">
when a.id=#{item.id} then ifnull(a.assessScoreSub,0) + #{item.assessScoreSubIncrement} when a.id=#{item.id} then ifnull(a.reviewScoreSub,0) + #{item.reviewScoreSubIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
...@@ -419,26 +419,26 @@ ...@@ -419,26 +419,26 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="workScoreAdd=(case" suffix="ELSE workScoreAdd end),"> <trim prefix="goworkScoreAdd=(case" suffix="ELSE goworkScoreAdd end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('workScoreAdd')) or (colPickMode==1 and !item.containsKey('workScoreAdd'))"> <when test="(colPickMode==0 and item.containsKey('goworkScoreAdd')) or (colPickMode==1 and !item.containsKey('goworkScoreAdd'))">
when a.id=#{item.id} then #{item.workScoreAdd} when a.id=#{item.id} then #{item.goworkScoreAdd}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('workScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('workScoreAddIncrement'))"> <when test="(colPickMode==0 and item.containsKey('goworkScoreAddIncrement')) or (colPickMode==1 and !item.containsKey('goworkScoreAddIncrement'))">
when a.id=#{item.id} then ifnull(a.workScoreAdd,0) + #{item.workScoreAddIncrement} when a.id=#{item.id} then ifnull(a.goworkScoreAdd,0) + #{item.goworkScoreAddIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="workScoreSub=(case" suffix="ELSE workScoreSub end),"> <trim prefix="goworkScoreSub=(case" suffix="ELSE goworkScoreSub end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('workScoreSub')) or (colPickMode==1 and !item.containsKey('workScoreSub'))"> <when test="(colPickMode==0 and item.containsKey('goworkScoreSub')) or (colPickMode==1 and !item.containsKey('goworkScoreSub'))">
when a.id=#{item.id} then #{item.workScoreSub} when a.id=#{item.id} then #{item.goworkScoreSub}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('workScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('workScoreSubIncrement'))"> <when test="(colPickMode==0 and item.containsKey('goworkScoreSubIncrement')) or (colPickMode==1 and !item.containsKey('goworkScoreSubIncrement'))">
when a.id=#{item.id} then ifnull(a.workScoreSub,0) + #{item.workScoreSubIncrement} when a.id=#{item.id} then ifnull(a.goworkScoreSub,0) + #{item.goworkScoreSubIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
...@@ -898,58 +898,58 @@ ...@@ -898,58 +898,58 @@
${_conditionType_} a.attendScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.attendScoreSubEnd} ${_conditionType_} a.attendScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.attendScoreSubEnd}
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAdd')"> <if test="conditionParamRef.containsKey('reviewScoreAdd')">
<if test="conditionParamRef.assessScoreAdd != null "> <if test="conditionParamRef.reviewScoreAdd != null ">
${_conditionType_} a.assessScoreAdd = #{${_conditionParam_}.assessScoreAdd} ${_conditionType_} a.reviewScoreAdd = #{${_conditionParam_}.reviewScoreAdd}
</if> </if>
<if test="conditionParamRef.assessScoreAdd == null"> <if test="conditionParamRef.reviewScoreAdd == null">
${_conditionType_} a.assessScoreAdd is null ${_conditionType_} a.reviewScoreAdd is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAddList') and conditionParamRef.assessScoreAddList.size() > 0"> <if test="conditionParamRef.containsKey('reviewScoreAddList') and conditionParamRef.reviewScoreAddList.size() > 0">
${_conditionType_} a.assessScoreAdd in ${_conditionType_} a.reviewScoreAdd in
<foreach collection="conditionParamRef.assessScoreAddList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.reviewScoreAddList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAddNotList') and conditionParamRef.assessScoreAddNotList.size() > 0"> <if test="conditionParamRef.containsKey('reviewScoreAddNotList') and conditionParamRef.reviewScoreAddNotList.size() > 0">
${_conditionType_} a.assessScoreAdd not in ${_conditionType_} a.reviewScoreAdd not in
<foreach collection="conditionParamRef.assessScoreAddNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.reviewScoreAddNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAddStart') and conditionParamRef.assessScoreAddStart != null"> <if test="conditionParamRef.containsKey('reviewScoreAddStart') and conditionParamRef.reviewScoreAddStart != null">
${_conditionType_} a.assessScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.assessScoreAddStart} ${_conditionType_} a.reviewScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.reviewScoreAddStart}
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreAddEnd') and conditionParamRef.assessScoreAddEnd != null"> <if test="conditionParamRef.containsKey('reviewScoreAddEnd') and conditionParamRef.reviewScoreAddEnd != null">
${_conditionType_} a.assessScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.assessScoreAddEnd} ${_conditionType_} a.reviewScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.reviewScoreAddEnd}
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSub')"> <if test="conditionParamRef.containsKey('reviewScoreSub')">
<if test="conditionParamRef.assessScoreSub != null "> <if test="conditionParamRef.reviewScoreSub != null ">
${_conditionType_} a.assessScoreSub = #{${_conditionParam_}.assessScoreSub} ${_conditionType_} a.reviewScoreSub = #{${_conditionParam_}.reviewScoreSub}
</if> </if>
<if test="conditionParamRef.assessScoreSub == null"> <if test="conditionParamRef.reviewScoreSub == null">
${_conditionType_} a.assessScoreSub is null ${_conditionType_} a.reviewScoreSub is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSubList') and conditionParamRef.assessScoreSubList.size() > 0"> <if test="conditionParamRef.containsKey('reviewScoreSubList') and conditionParamRef.reviewScoreSubList.size() > 0">
${_conditionType_} a.assessScoreSub in ${_conditionType_} a.reviewScoreSub in
<foreach collection="conditionParamRef.assessScoreSubList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.reviewScoreSubList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSubNotList') and conditionParamRef.assessScoreSubNotList.size() > 0"> <if test="conditionParamRef.containsKey('reviewScoreSubNotList') and conditionParamRef.reviewScoreSubNotList.size() > 0">
${_conditionType_} a.assessScoreSub not in ${_conditionType_} a.reviewScoreSub not in
<foreach collection="conditionParamRef.assessScoreSubNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.reviewScoreSubNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSubStart') and conditionParamRef.assessScoreSubStart != null"> <if test="conditionParamRef.containsKey('reviewScoreSubStart') and conditionParamRef.reviewScoreSubStart != null">
${_conditionType_} a.assessScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.assessScoreSubStart} ${_conditionType_} a.reviewScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.reviewScoreSubStart}
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreSubEnd') and conditionParamRef.assessScoreSubEnd != null"> <if test="conditionParamRef.containsKey('reviewScoreSubEnd') and conditionParamRef.reviewScoreSubEnd != null">
${_conditionType_} a.assessScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.assessScoreSubEnd} ${_conditionType_} a.reviewScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.reviewScoreSubEnd}
</if> </if>
<if test="conditionParamRef.containsKey('complainScoreAdd')"> <if test="conditionParamRef.containsKey('complainScoreAdd')">
...@@ -1006,58 +1006,58 @@ ...@@ -1006,58 +1006,58 @@
${_conditionType_} a.complainScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.complainScoreSubEnd} ${_conditionType_} a.complainScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.complainScoreSubEnd}
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAdd')"> <if test="conditionParamRef.containsKey('goworkScoreAdd')">
<if test="conditionParamRef.workScoreAdd != null "> <if test="conditionParamRef.goworkScoreAdd != null ">
${_conditionType_} a.workScoreAdd = #{${_conditionParam_}.workScoreAdd} ${_conditionType_} a.goworkScoreAdd = #{${_conditionParam_}.goworkScoreAdd}
</if> </if>
<if test="conditionParamRef.workScoreAdd == null"> <if test="conditionParamRef.goworkScoreAdd == null">
${_conditionType_} a.workScoreAdd is null ${_conditionType_} a.goworkScoreAdd is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAddList') and conditionParamRef.workScoreAddList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreAddList') and conditionParamRef.goworkScoreAddList.size() > 0">
${_conditionType_} a.workScoreAdd in ${_conditionType_} a.goworkScoreAdd in
<foreach collection="conditionParamRef.workScoreAddList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreAddList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAddNotList') and conditionParamRef.workScoreAddNotList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreAddNotList') and conditionParamRef.goworkScoreAddNotList.size() > 0">
${_conditionType_} a.workScoreAdd not in ${_conditionType_} a.goworkScoreAdd not in
<foreach collection="conditionParamRef.workScoreAddNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreAddNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAddStart') and conditionParamRef.workScoreAddStart != null"> <if test="conditionParamRef.containsKey('goworkScoreAddStart') and conditionParamRef.goworkScoreAddStart != null">
${_conditionType_} a.workScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.workScoreAddStart} ${_conditionType_} a.goworkScoreAdd <![CDATA[ >= ]]> #{${_conditionParam_}.goworkScoreAddStart}
</if> </if>
<if test="conditionParamRef.containsKey('workScoreAddEnd') and conditionParamRef.workScoreAddEnd != null"> <if test="conditionParamRef.containsKey('goworkScoreAddEnd') and conditionParamRef.goworkScoreAddEnd != null">
${_conditionType_} a.workScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.workScoreAddEnd} ${_conditionType_} a.goworkScoreAdd <![CDATA[ <= ]]> #{${_conditionParam_}.goworkScoreAddEnd}
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSub')"> <if test="conditionParamRef.containsKey('goworkScoreSub')">
<if test="conditionParamRef.workScoreSub != null "> <if test="conditionParamRef.goworkScoreSub != null ">
${_conditionType_} a.workScoreSub = #{${_conditionParam_}.workScoreSub} ${_conditionType_} a.goworkScoreSub = #{${_conditionParam_}.goworkScoreSub}
</if> </if>
<if test="conditionParamRef.workScoreSub == null"> <if test="conditionParamRef.goworkScoreSub == null">
${_conditionType_} a.workScoreSub is null ${_conditionType_} a.goworkScoreSub is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSubList') and conditionParamRef.workScoreSubList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreSubList') and conditionParamRef.goworkScoreSubList.size() > 0">
${_conditionType_} a.workScoreSub in ${_conditionType_} a.goworkScoreSub in
<foreach collection="conditionParamRef.workScoreSubList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreSubList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSubNotList') and conditionParamRef.workScoreSubNotList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreSubNotList') and conditionParamRef.goworkScoreSubNotList.size() > 0">
${_conditionType_} a.workScoreSub not in ${_conditionType_} a.goworkScoreSub not in
<foreach collection="conditionParamRef.workScoreSubNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreSubNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSubStart') and conditionParamRef.workScoreSubStart != null"> <if test="conditionParamRef.containsKey('goworkScoreSubStart') and conditionParamRef.goworkScoreSubStart != null">
${_conditionType_} a.workScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.workScoreSubStart} ${_conditionType_} a.goworkScoreSub <![CDATA[ >= ]]> #{${_conditionParam_}.goworkScoreSubStart}
</if> </if>
<if test="conditionParamRef.containsKey('workScoreSubEnd') and conditionParamRef.workScoreSubEnd != null"> <if test="conditionParamRef.containsKey('goworkScoreSubEnd') and conditionParamRef.goworkScoreSubEnd != null">
${_conditionType_} a.workScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.workScoreSubEnd} ${_conditionType_} a.goworkScoreSub <![CDATA[ <= ]]> #{${_conditionParam_}.goworkScoreSubEnd}
</if> </if>
<if test="conditionParamRef.containsKey('effectScoreAdd')"> <if test="conditionParamRef.containsKey('effectScoreAdd')">
...@@ -1407,14 +1407,14 @@ ...@@ -1407,14 +1407,14 @@
<if test='orderCol.attendScoreSub != null and "DESC".equalsIgnoreCase(orderCol.attendScoreSub)'>DESC</if> <if test='orderCol.attendScoreSub != null and "DESC".equalsIgnoreCase(orderCol.attendScoreSub)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('assessScoreAdd')"> <if test="orderCol.containsKey('reviewScoreAdd')">
a.assessScoreAdd a.reviewScoreAdd
<if test='orderCol.assessScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.assessScoreAdd)'>DESC</if> <if test='orderCol.reviewScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.reviewScoreAdd)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('assessScoreSub')"> <if test="orderCol.containsKey('reviewScoreSub')">
a.assessScoreSub a.reviewScoreSub
<if test='orderCol.assessScoreSub != null and "DESC".equalsIgnoreCase(orderCol.assessScoreSub)'>DESC</if> <if test='orderCol.reviewScoreSub != null and "DESC".equalsIgnoreCase(orderCol.reviewScoreSub)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('complainScoreAdd')"> <if test="orderCol.containsKey('complainScoreAdd')">
...@@ -1427,14 +1427,14 @@ ...@@ -1427,14 +1427,14 @@
<if test='orderCol.complainScoreSub != null and "DESC".equalsIgnoreCase(orderCol.complainScoreSub)'>DESC</if> <if test='orderCol.complainScoreSub != null and "DESC".equalsIgnoreCase(orderCol.complainScoreSub)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('workScoreAdd')"> <if test="orderCol.containsKey('goworkScoreAdd')">
a.workScoreAdd a.goworkScoreAdd
<if test='orderCol.workScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.workScoreAdd)'>DESC</if> <if test='orderCol.goworkScoreAdd != null and "DESC".equalsIgnoreCase(orderCol.goworkScoreAdd)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('workScoreSub')"> <if test="orderCol.containsKey('goworkScoreSub')">
a.workScoreSub a.goworkScoreSub
<if test='orderCol.workScoreSub != null and "DESC".equalsIgnoreCase(orderCol.workScoreSub)'>DESC</if> <if test='orderCol.goworkScoreSub != null and "DESC".equalsIgnoreCase(orderCol.goworkScoreSub)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('effectScoreAdd')"> <if test="orderCol.containsKey('effectScoreAdd')">
......
...@@ -12,8 +12,9 @@ ...@@ -12,8 +12,9 @@
<result property="deptId" column="deptId" /> <result property="deptId" column="deptId" />
<result property="deptName" column="deptName" /> <result property="deptName" column="deptName" />
<result property="attendScore" column="attendScore" /> <result property="attendScore" column="attendScore" />
<result property="assessScore" column="assessScore" /> <result property="reviewScore" column="reviewScore" />
<result property="workScore" column="workScore" /> <result property="complainScore" column="complainScore" />
<result property="goworkScore" column="goworkScore" />
<result property="effectScore" column="effectScore" /> <result property="effectScore" column="effectScore" />
<result property="otherScore" column="otherScore" /> <result property="otherScore" column="otherScore" />
<result property="errorScore" column="errorScore" /> <result property="errorScore" column="errorScore" />
...@@ -53,11 +54,14 @@ ...@@ -53,11 +54,14 @@
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendScore') or colPickMode == 1 and data.containsKey('attendScore')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('attendScore') or colPickMode == 1 and data.containsKey('attendScore')))">
a.attendScore, a.attendScore,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('assessScore') or colPickMode == 1 and data.containsKey('assessScore')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('reviewScore') or colPickMode == 1 and data.containsKey('reviewScore')))">
a.assessScore, a.reviewScore,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('workScore') or colPickMode == 1 and data.containsKey('workScore')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('complainScore') or colPickMode == 1 and data.containsKey('complainScore')))">
a.workScore, a.complainScore,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('goworkScore') or colPickMode == 1 and data.containsKey('goworkScore')))">
a.goworkScore,
</if> </if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('effectScore') or colPickMode == 1 and data.containsKey('effectScore')))"> <if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('effectScore') or colPickMode == 1 and data.containsKey('effectScore')))">
a.effectScore, a.effectScore,
...@@ -97,18 +101,18 @@ ...@@ -97,18 +101,18 @@
<!-- 新增 区分主键自增加还是业务插入 --> <!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="StaffPerformSummaryEntity" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="StaffPerformSummaryEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_staff_perform_summary insert into mortals_xhx_staff_perform_summary
(staffId,workNum,staffName,deptId,deptName,attendScore,assessScore,workScore,effectScore,otherScore,errorScore,totalScore,remark,year,month,createTime,createUserId,updateTime,updateUserId) (staffId,workNum,staffName,deptId,deptName,attendScore,reviewScore,complainScore,goworkScore,effectScore,otherScore,errorScore,totalScore,remark,year,month,createTime,createUserId,updateTime,updateUserId)
VALUES VALUES
(#{staffId},#{workNum},#{staffName},#{deptId},#{deptName},#{attendScore},#{assessScore},#{workScore},#{effectScore},#{otherScore},#{errorScore},#{totalScore},#{remark},#{year},#{month},#{createTime},#{createUserId},#{updateTime},#{updateUserId}) (#{staffId},#{workNum},#{staffName},#{deptId},#{deptName},#{attendScore},#{reviewScore},#{complainScore},#{goworkScore},#{effectScore},#{otherScore},#{errorScore},#{totalScore},#{remark},#{year},#{month},#{createTime},#{createUserId},#{updateTime},#{updateUserId})
</insert> </insert>
<!-- 批量新增 --> <!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto"> <insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_staff_perform_summary insert into mortals_xhx_staff_perform_summary
(staffId,workNum,staffName,deptId,deptName,attendScore,assessScore,workScore,effectScore,otherScore,errorScore,totalScore,remark,year,month,createTime,createUserId,updateTime,updateUserId) (staffId,workNum,staffName,deptId,deptName,attendScore,reviewScore,complainScore,goworkScore,effectScore,otherScore,errorScore,totalScore,remark,year,month,createTime,createUserId,updateTime,updateUserId)
VALUES VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," > <foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.staffId},#{item.workNum},#{item.staffName},#{item.deptId},#{item.deptName},#{item.attendScore},#{item.assessScore},#{item.workScore},#{item.effectScore},#{item.otherScore},#{item.errorScore},#{item.totalScore},#{item.remark},#{item.year},#{item.month},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId}) (#{item.staffId},#{item.workNum},#{item.staffName},#{item.deptId},#{item.deptName},#{item.attendScore},#{item.reviewScore},#{item.complainScore},#{item.goworkScore},#{item.effectScore},#{item.otherScore},#{item.errorScore},#{item.totalScore},#{item.remark},#{item.year},#{item.month},#{item.createTime},#{item.createUserId},#{item.updateTime},#{item.updateUserId})
</foreach> </foreach>
</insert> </insert>
...@@ -145,17 +149,23 @@ ...@@ -145,17 +149,23 @@
<if test="(colPickMode==0 and data.containsKey('attendScoreIncrement')) or (colPickMode==1 and !data.containsKey('attendScoreIncrement'))"> <if test="(colPickMode==0 and data.containsKey('attendScoreIncrement')) or (colPickMode==1 and !data.containsKey('attendScoreIncrement'))">
a.attendScore=ifnull(a.attendScore,0) + #{data.attendScoreIncrement}, a.attendScore=ifnull(a.attendScore,0) + #{data.attendScoreIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScore')) or (colPickMode==1 and !data.containsKey('assessScore'))"> <if test="(colPickMode==0 and data.containsKey('reviewScore')) or (colPickMode==1 and !data.containsKey('reviewScore'))">
a.assessScore=#{data.assessScore}, a.reviewScore=#{data.reviewScore},
</if>
<if test="(colPickMode==0 and data.containsKey('reviewScoreIncrement')) or (colPickMode==1 and !data.containsKey('reviewScoreIncrement'))">
a.reviewScore=ifnull(a.reviewScore,0) + #{data.reviewScoreIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('complainScore')) or (colPickMode==1 and !data.containsKey('complainScore'))">
a.complainScore=#{data.complainScore},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('assessScoreIncrement')) or (colPickMode==1 and !data.containsKey('assessScoreIncrement'))"> <if test="(colPickMode==0 and data.containsKey('complainScoreIncrement')) or (colPickMode==1 and !data.containsKey('complainScoreIncrement'))">
a.assessScore=ifnull(a.assessScore,0) + #{data.assessScoreIncrement}, a.complainScore=ifnull(a.complainScore,0) + #{data.complainScoreIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScore')) or (colPickMode==1 and !data.containsKey('workScore'))"> <if test="(colPickMode==0 and data.containsKey('goworkScore')) or (colPickMode==1 and !data.containsKey('goworkScore'))">
a.workScore=#{data.workScore}, a.goworkScore=#{data.goworkScore},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('workScoreIncrement')) or (colPickMode==1 and !data.containsKey('workScoreIncrement'))"> <if test="(colPickMode==0 and data.containsKey('goworkScoreIncrement')) or (colPickMode==1 and !data.containsKey('goworkScoreIncrement'))">
a.workScore=ifnull(a.workScore,0) + #{data.workScoreIncrement}, a.goworkScore=ifnull(a.goworkScore,0) + #{data.goworkScoreIncrement},
</if> </if>
<if test="(colPickMode==0 and data.containsKey('effectScore')) or (colPickMode==1 and !data.containsKey('effectScore'))"> <if test="(colPickMode==0 and data.containsKey('effectScore')) or (colPickMode==1 and !data.containsKey('effectScore'))">
a.effectScore=#{data.effectScore}, a.effectScore=#{data.effectScore},
...@@ -283,26 +293,38 @@ ...@@ -283,26 +293,38 @@
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="assessScore=(case" suffix="ELSE assessScore end),"> <trim prefix="reviewScore=(case" suffix="ELSE reviewScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('reviewScore')) or (colPickMode==1 and !item.containsKey('reviewScore'))">
when a.id=#{item.id} then #{item.reviewScore}
</when>
<when test="(colPickMode==0 and item.containsKey('reviewScoreIncrement')) or (colPickMode==1 and !item.containsKey('reviewScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.reviewScore,0) + #{item.reviewScoreIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="complainScore=(case" suffix="ELSE complainScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('assessScore')) or (colPickMode==1 and !item.containsKey('assessScore'))"> <when test="(colPickMode==0 and item.containsKey('complainScore')) or (colPickMode==1 and !item.containsKey('complainScore'))">
when a.id=#{item.id} then #{item.assessScore} when a.id=#{item.id} then #{item.complainScore}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('assessScoreIncrement')) or (colPickMode==1 and !item.containsKey('assessScoreIncrement'))"> <when test="(colPickMode==0 and item.containsKey('complainScoreIncrement')) or (colPickMode==1 and !item.containsKey('complainScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.assessScore,0) + #{item.assessScoreIncrement} when a.id=#{item.id} then ifnull(a.complainScore,0) + #{item.complainScoreIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
</trim> </trim>
<trim prefix="workScore=(case" suffix="ELSE workScore end),"> <trim prefix="goworkScore=(case" suffix="ELSE goworkScore end),">
<foreach collection="data.dataList" item="item" index="index" separator="" > <foreach collection="data.dataList" item="item" index="index" separator="" >
<choose> <choose>
<when test="(colPickMode==0 and item.containsKey('workScore')) or (colPickMode==1 and !item.containsKey('workScore'))"> <when test="(colPickMode==0 and item.containsKey('goworkScore')) or (colPickMode==1 and !item.containsKey('goworkScore'))">
when a.id=#{item.id} then #{item.workScore} when a.id=#{item.id} then #{item.goworkScore}
</when> </when>
<when test="(colPickMode==0 and item.containsKey('workScoreIncrement')) or (colPickMode==1 and !item.containsKey('workScoreIncrement'))"> <when test="(colPickMode==0 and item.containsKey('goworkScoreIncrement')) or (colPickMode==1 and !item.containsKey('goworkScoreIncrement'))">
when a.id=#{item.id} then ifnull(a.workScore,0) + #{item.workScoreIncrement} when a.id=#{item.id} then ifnull(a.goworkScore,0) + #{item.goworkScoreIncrement}
</when> </when>
</choose> </choose>
</foreach> </foreach>
...@@ -711,58 +733,85 @@ ...@@ -711,58 +733,85 @@
${_conditionType_} a.attendScore <![CDATA[ <= ]]> #{${_conditionParam_}.attendScoreEnd} ${_conditionType_} a.attendScore <![CDATA[ <= ]]> #{${_conditionParam_}.attendScoreEnd}
</if> </if>
<if test="conditionParamRef.containsKey('assessScore')"> <if test="conditionParamRef.containsKey('reviewScore')">
<if test="conditionParamRef.assessScore != null "> <if test="conditionParamRef.reviewScore != null ">
${_conditionType_} a.assessScore = #{${_conditionParam_}.assessScore} ${_conditionType_} a.reviewScore = #{${_conditionParam_}.reviewScore}
</if>
<if test="conditionParamRef.reviewScore == null">
${_conditionType_} a.reviewScore is null
</if>
</if>
<if test="conditionParamRef.containsKey('reviewScoreList') and conditionParamRef.reviewScoreList.size() > 0">
${_conditionType_} a.reviewScore in
<foreach collection="conditionParamRef.reviewScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('reviewScoreNotList') and conditionParamRef.reviewScoreNotList.size() > 0">
${_conditionType_} a.reviewScore not in
<foreach collection="conditionParamRef.reviewScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('reviewScoreStart') and conditionParamRef.reviewScoreStart != null">
${_conditionType_} a.reviewScore <![CDATA[ >= ]]> #{${_conditionParam_}.reviewScoreStart}
</if>
<if test="conditionParamRef.containsKey('reviewScoreEnd') and conditionParamRef.reviewScoreEnd != null">
${_conditionType_} a.reviewScore <![CDATA[ <= ]]> #{${_conditionParam_}.reviewScoreEnd}
</if>
<if test="conditionParamRef.containsKey('complainScore')">
<if test="conditionParamRef.complainScore != null ">
${_conditionType_} a.complainScore = #{${_conditionParam_}.complainScore}
</if> </if>
<if test="conditionParamRef.assessScore == null"> <if test="conditionParamRef.complainScore == null">
${_conditionType_} a.assessScore is null ${_conditionType_} a.complainScore is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreList') and conditionParamRef.assessScoreList.size() > 0"> <if test="conditionParamRef.containsKey('complainScoreList') and conditionParamRef.complainScoreList.size() > 0">
${_conditionType_} a.assessScore in ${_conditionType_} a.complainScore in
<foreach collection="conditionParamRef.assessScoreList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.complainScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreNotList') and conditionParamRef.assessScoreNotList.size() > 0"> <if test="conditionParamRef.containsKey('complainScoreNotList') and conditionParamRef.complainScoreNotList.size() > 0">
${_conditionType_} a.assessScore not in ${_conditionType_} a.complainScore not in
<foreach collection="conditionParamRef.assessScoreNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.complainScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreStart') and conditionParamRef.assessScoreStart != null"> <if test="conditionParamRef.containsKey('complainScoreStart') and conditionParamRef.complainScoreStart != null">
${_conditionType_} a.assessScore <![CDATA[ >= ]]> #{${_conditionParam_}.assessScoreStart} ${_conditionType_} a.complainScore <![CDATA[ >= ]]> #{${_conditionParam_}.complainScoreStart}
</if> </if>
<if test="conditionParamRef.containsKey('assessScoreEnd') and conditionParamRef.assessScoreEnd != null"> <if test="conditionParamRef.containsKey('complainScoreEnd') and conditionParamRef.complainScoreEnd != null">
${_conditionType_} a.assessScore <![CDATA[ <= ]]> #{${_conditionParam_}.assessScoreEnd} ${_conditionType_} a.complainScore <![CDATA[ <= ]]> #{${_conditionParam_}.complainScoreEnd}
</if> </if>
<if test="conditionParamRef.containsKey('workScore')"> <if test="conditionParamRef.containsKey('goworkScore')">
<if test="conditionParamRef.workScore != null "> <if test="conditionParamRef.goworkScore != null ">
${_conditionType_} a.workScore = #{${_conditionParam_}.workScore} ${_conditionType_} a.goworkScore = #{${_conditionParam_}.goworkScore}
</if> </if>
<if test="conditionParamRef.workScore == null"> <if test="conditionParamRef.goworkScore == null">
${_conditionType_} a.workScore is null ${_conditionType_} a.goworkScore is null
</if> </if>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreList') and conditionParamRef.workScoreList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreList') and conditionParamRef.goworkScoreList.size() > 0">
${_conditionType_} a.workScore in ${_conditionType_} a.goworkScore in
<foreach collection="conditionParamRef.workScoreList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreNotList') and conditionParamRef.workScoreNotList.size() > 0"> <if test="conditionParamRef.containsKey('goworkScoreNotList') and conditionParamRef.goworkScoreNotList.size() > 0">
${_conditionType_} a.workScore not in ${_conditionType_} a.goworkScore not in
<foreach collection="conditionParamRef.workScoreNotList" open="(" close=")" index="index" item="item" separator=","> <foreach collection="conditionParamRef.goworkScoreNotList" open="(" close=")" index="index" item="item" separator=",">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="conditionParamRef.containsKey('workScoreStart') and conditionParamRef.workScoreStart != null"> <if test="conditionParamRef.containsKey('goworkScoreStart') and conditionParamRef.goworkScoreStart != null">
${_conditionType_} a.workScore <![CDATA[ >= ]]> #{${_conditionParam_}.workScoreStart} ${_conditionType_} a.goworkScore <![CDATA[ >= ]]> #{${_conditionParam_}.goworkScoreStart}
</if> </if>
<if test="conditionParamRef.containsKey('workScoreEnd') and conditionParamRef.workScoreEnd != null"> <if test="conditionParamRef.containsKey('goworkScoreEnd') and conditionParamRef.goworkScoreEnd != null">
${_conditionType_} a.workScore <![CDATA[ <= ]]> #{${_conditionParam_}.workScoreEnd} ${_conditionType_} a.goworkScore <![CDATA[ <= ]]> #{${_conditionParam_}.goworkScoreEnd}
</if> </if>
<if test="conditionParamRef.containsKey('effectScore')"> <if test="conditionParamRef.containsKey('effectScore')">
...@@ -1080,14 +1129,19 @@ ...@@ -1080,14 +1129,19 @@
<if test='orderCol.attendScore != null and "DESC".equalsIgnoreCase(orderCol.attendScore)'>DESC</if> <if test='orderCol.attendScore != null and "DESC".equalsIgnoreCase(orderCol.attendScore)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('assessScore')"> <if test="orderCol.containsKey('reviewScore')">
a.assessScore a.reviewScore
<if test='orderCol.assessScore != null and "DESC".equalsIgnoreCase(orderCol.assessScore)'>DESC</if> <if test='orderCol.reviewScore != null and "DESC".equalsIgnoreCase(orderCol.reviewScore)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('complainScore')">
a.complainScore
<if test='orderCol.complainScore != null and "DESC".equalsIgnoreCase(orderCol.complainScore)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('workScore')"> <if test="orderCol.containsKey('goworkScore')">
a.workScore a.goworkScore
<if test='orderCol.workScore != null and "DESC".equalsIgnoreCase(orderCol.workScore)'>DESC</if> <if test='orderCol.goworkScore != null and "DESC".equalsIgnoreCase(orderCol.goworkScore)'>DESC</if>
, ,
</if> </if>
<if test="orderCol.containsKey('effectScore')"> <if test="orderCol.containsKey('effectScore')">
......
...@@ -540,3 +540,104 @@ PRIMARY KEY (`id`) ...@@ -540,3 +540,104 @@ PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='员工绩效统计'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='员工绩效统计';
-- ----------------------------
2023-7-14
-- ----------------------------
-- ----------------------------
-- 部门绩效分数统计表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_dept_perform_stat`;
CREATE TABLE mortals_xhx_dept_perform_stat(
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID,主键,自增长',
`deptId` bigint(20) DEFAULT '0' COMMENT '部门id号',
`deptName` varchar(64) COMMENT '部门名称',
`totalScore` decimal(10,2) NOT NULL COMMENT '部门绩效总分数',
`totalAddScore` decimal(10,2) NOT NULL COMMENT '部门绩效加分总分数汇总',
`totalSubScore` decimal(10,2) NOT NULL COMMENT '部门绩效减分总分数汇总',
`attendScoreAdd` decimal(10,2) COMMENT '考勤绩效指标增加分数',
`attendScoreSub` decimal(10,2) COMMENT '考勤绩效指标扣减分数',
`reviewScoreAdd` decimal(10,2) COMMENT '评价绩效指标增加分数',
`reviewScoreSub` decimal(10,2) COMMENT '评价绩效指标扣减分数',
`complainScoreAdd` decimal(10,2) COMMENT '投诉绩效指标增加分数',
`complainScoreSub` decimal(10,2) COMMENT '投诉绩效指标扣减分数',
`goworkScoreAdd` decimal(10,2) COMMENT '办件绩效指标增加分数',
`goworkScoreSub` decimal(10,2) COMMENT '办件绩效指标扣减分数',
`effectScoreAdd` decimal(10,2) COMMENT '效能绩效指标增加分数',
`effectScoreSub` decimal(10,2) COMMENT '效能绩效指标扣减分数',
`otherScoreAdd` decimal(10,2) COMMENT '其它绩效指标增加分数',
`otherScoreSub` decimal(10,2) COMMENT '其它绩效指标扣减分数',
`averageScore` decimal(10,2) NOT NULL COMMENT '部门绩效平均分数,根据部门所属人数平均',
`remark` varchar(255) COMMENT '备注',
`year` int(9) NOT NULL COMMENT '年',
`month` tinyint(2) NOT NULL COMMENT '月',
`day` tinyint(2) NOT NULL COMMENT '日',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建人id',
`updateTime` datetime COMMENT '更新时间',
`updateUserId` bigint(20) COMMENT '更新人id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='部门绩效分数统计';
-- ----------------------------
-- 员工绩效统计表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_staff_perform_stat`;
CREATE TABLE mortals_xhx_staff_perform_stat(
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID,主键,自增长',
`staffId` bigint(20) DEFAULT '0' COMMENT '部门id号',
`staffName` varchar(64) COMMENT '部门名称',
`totalScore` decimal(10,2) NOT NULL COMMENT '员工绩效总分数',
`totalAddScore` decimal(10,2) NOT NULL COMMENT '员工绩效加分总分数汇总',
`totalSubScore` decimal(10,2) NOT NULL COMMENT '员工绩效减分总分数汇总',
`attendScoreAdd` decimal(10,2) COMMENT '考勤绩效指标增加分数',
`attendScoreSub` decimal(10,2) COMMENT '考勤绩效指标扣减分数',
`reviewScoreAdd` decimal(10,2) COMMENT '评价绩效指标增加分数',
`reviewScoreSub` decimal(10,2) COMMENT '评价绩效指标扣减分数',
`complainScoreAdd` decimal(10,2) COMMENT '投诉绩效指标增加分数',
`complainScoreSub` decimal(10,2) COMMENT '投诉绩效指标扣减分数',
`goworkScoreAdd` decimal(10,2) COMMENT '办件绩效指标增加分数',
`goworkScoreSub` decimal(10,2) COMMENT '办件绩效指标扣减分数',
`effectScoreAdd` decimal(10,2) COMMENT '效能绩效指标增加分数',
`effectScoreSub` decimal(10,2) COMMENT '效能绩效指标扣减分数',
`otherScoreAdd` decimal(10,2) COMMENT '其它绩效指标增加分数',
`otherScoreSub` decimal(10,2) COMMENT '其它绩效指标扣减分数',
`remark` varchar(255) COMMENT '备注',
`year` int(9) NOT NULL COMMENT '年',
`month` tinyint(2) NOT NULL COMMENT '月',
`day` tinyint(2) NOT NULL COMMENT '日',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建人id',
`updateTime` datetime COMMENT '更新时间',
`updateUserId` bigint(20) COMMENT '更新人id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='员工绩效统计';
-- ----------------------------
-- 员工绩效统计表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_staff_perform_summary`;
CREATE TABLE mortals_xhx_staff_perform_summary(
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID,主键,自增长',
`staffId` bigint(20) DEFAULT '0' COMMENT '人员id',
`workNum` varchar(64) COMMENT '工号',
`staffName` varchar(512) COMMENT '人员名称',
`deptId` bigint(20) DEFAULT '0' COMMENT '部门id号',
`deptName` varchar(64) COMMENT '部门名称',
`attendScore` decimal(10,2) COMMENT '考勤绩效指标分数',
`reviewScore` decimal(10,2) COMMENT '评价绩效指标分数',
`complainScore` decimal(10,2) COMMENT '投诉绩效指标分数',
`goworkScore` decimal(10,2) COMMENT '办件绩效分数',
`effectScore` decimal(10,2) COMMENT '效能绩效分数',
`otherScore` decimal(10,2) COMMENT '其它绩效分数',
`errorScore` decimal(10,2) COMMENT '累计异常分数',
`totalScore` decimal(10,2) COMMENT '当月得分数',
`remark` varchar(255) COMMENT '备注',
`year` int(9) NOT NULL COMMENT '年',
`month` tinyint(2) NOT NULL COMMENT '月',
`createTime` datetime COMMENT '创建时间',
`createUserId` bigint(20) COMMENT '创建人id',
`updateTime` datetime COMMENT '更新时间',
`updateUserId` bigint(20) COMMENT '更新人id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='员工绩效统计';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment