Commit 66058a6d authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 21c891b7 a2bfd6aa
package com.mortals.xhx.daemon.applicationservice; package com.mortals.xhx.daemon.applicationservice;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.service.ICacheService; import com.mortals.framework.service.ICacheService;
import com.mortals.framework.springcloud.service.IApplicationStartedService; import com.mortals.framework.springcloud.service.IApplicationStartedService;
import com.mortals.framework.util.StringUtils; import com.mortals.framework.util.StringUtils;
...@@ -56,6 +57,8 @@ public class StaffCheckSummaryService implements IApplicationStartedService { ...@@ -56,6 +57,8 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
Date date = DateUtil.parse(query.getCheckTimeStart(),"yyyy-MM-dd"); Date date = DateUtil.parse(query.getCheckTimeStart(),"yyyy-MM-dd");
query.setCheckTimeStart(DateUtil.beginOfMonth(date).toDateStr()); query.setCheckTimeStart(DateUtil.beginOfMonth(date).toDateStr());
query.setCheckTimeEnd(DateUtil.endOfMonth(date).toDateStr()); query.setCheckTimeEnd(DateUtil.endOfMonth(date).toDateStr());
query.setYear(DateUtil.year(date));
query.setMonth(DateUtil.month(date)+1);
} }
if(query.getCheckType() == CheckTypeEnum.考勤绩效.getValue()){ if(query.getCheckType() == CheckTypeEnum.考勤绩效.getValue()){
checkAttendRecordService.summaryCheck(query); checkAttendRecordService.summaryCheck(query);
...@@ -77,7 +80,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService { ...@@ -77,7 +80,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
checkOtherRecordService.summaryCheck(query); checkOtherRecordService.summaryCheck(query);
} }
if(query.getCheckType()==null){ if(query.getCheckType()==null){
log.info("绩效分数汇总开始"); log.info("绩效分数汇总开始:"+ JSONObject.toJSONString(query));
checkAttendRecordService.summaryCheck(query); checkAttendRecordService.summaryCheck(query);
checkEffectRecordService.summaryCheck(query); checkEffectRecordService.summaryCheck(query);
checkGoworkRecordService.summaryCheck(query); checkGoworkRecordService.summaryCheck(query);
......
...@@ -92,6 +92,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp ...@@ -92,6 +92,7 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
@Override @Override
public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException { public List<StaffCheckSummaryVo> summaryCheck(StaffCheckSummaryQuery query) throws AppException {
log.info("汇总自评:"+JSONObject.toJSONString(query));
if (query.getYear()==null || query.getMonth()==null) { if (query.getYear()==null || query.getMonth()==null) {
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
query.setYear(calendar.get(Calendar.YEAR)); query.setYear(calendar.get(Calendar.YEAR));
...@@ -156,7 +157,6 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp ...@@ -156,7 +157,6 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
} }
erro = erro.add(staffPerformSummaryEntity.getGoworkScore()); erro = erro.add(staffPerformSummaryEntity.getGoworkScore());
erro = erro.add(staffPerformSummaryEntity.getEffectScore()); erro = erro.add(staffPerformSummaryEntity.getEffectScore());
erro = erro.add(staffPerformSummaryEntity.getComplainScore());
staffPerformSummaryEntity.setErrorScore(erro); staffPerformSummaryEntity.setErrorScore(erro);
StaffPerformUtil.computeSummary(staffPerformSummaryEntity,weightPdu,staffEntity); StaffPerformUtil.computeSummary(staffPerformSummaryEntity,weightPdu,staffEntity);
staffPerformSummaryEntity.setId(temp.getId()); staffPerformSummaryEntity.setId(temp.getId());
......
...@@ -35,12 +35,12 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo { ...@@ -35,12 +35,12 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
/** /**
* 工号 * 工号
*/ */
@Excel(name = "工号") @Excel(name = "工号",sort = 2)
private String workNum; private String workNum;
/** /**
* 人员名称 * 人员名称
*/ */
@Excel(name = "人员名称") @Excel(name = "姓名",sort = 1)
private String staffName; private String staffName;
/** /**
* 所属大厅 * 所属大厅
...@@ -49,7 +49,7 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo { ...@@ -49,7 +49,7 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
/** /**
* 所属大厅名称 * 所属大厅名称
*/ */
@Excel(name = "大厅名称") @Excel(name = "所属大厅",sort = 4)
private String salaName; private String salaName;
/** /**
* 部门id号 * 部门id号
...@@ -58,37 +58,37 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo { ...@@ -58,37 +58,37 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
/** /**
* 部门名称 * 部门名称
*/ */
@Excel(name = "部门名称") @Excel(name = "所属部门",sort = 5)
private String deptName; private String deptName;
/** /**
* 考勤绩效指标分数 * 考勤绩效指标分数
*/ */
@Excel(name = "考勤绩效指标分数") @Excel(name = "服务规范(考勤绩效)",sort = 7)
private BigDecimal attendScore; private BigDecimal attendScore;
/** /**
* 评价绩效指标分数 * 评价绩效指标分数
*/ */
@Excel(name = "评价绩效指标分数") @Excel(name = "群众评议",sort = 9)
private BigDecimal reviewScore; private BigDecimal reviewScore;
/** /**
* 投诉绩效指标分数 * 投诉绩效指标分数
*/ */
@Excel(name = "自评绩效分数") @Excel(name = "综合管理(自评绩效)",sort = 8)
private BigDecimal complainScore; private BigDecimal complainScore;
/** /**
* 办件绩效分数 * 办件绩效分数
*/ */
@Excel(name = "办件绩效分数") @Excel(name = "工作效能(办件绩效)",sort = 10)
private BigDecimal goworkScore; private BigDecimal goworkScore;
/** /**
* 效能绩效分数 * 效能绩效分数
*/ */
@Excel(name = "效能绩效分数") @Excel(name = "工作纪律(效能绩效)",sort = 6)
private BigDecimal effectScore; private BigDecimal effectScore;
/** /**
* 其它绩效分数 加分项 * 其它绩效分数 加分项
*/ */
@Excel(name = "其它绩效分数") @Excel(name = "加分(其它绩效)",sort = 11)
private BigDecimal otherScore; private BigDecimal otherScore;
/** /**
* 累计异常分数 * 累计异常分数
...@@ -98,7 +98,7 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo { ...@@ -98,7 +98,7 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
/** /**
* 当月得分数 * 当月得分数
*/ */
@Excel(name = "当月得分数") @Excel(name = "本月得分数",sort = 12)
private BigDecimal totalScore; private BigDecimal totalScore;
/** /**
* 备注 * 备注
...@@ -107,12 +107,12 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo { ...@@ -107,12 +107,12 @@ public class StaffPerformSummaryEntity extends StaffPerformSummaryVo {
/** /**
* 年 * 年
*/ */
@Excel(name = "年") @Excel(name = "年",sort = 13)
private Integer year; private Integer year;
/** /**
* 月 * 月
*/ */
@Excel(name = "月") @Excel(name = "月",sort = 14)
private Integer month; private Integer month;
@Override @Override
public int hashCode() { public int hashCode() {
......
...@@ -18,5 +18,8 @@ public class StaffPerformSummaryVo extends BaseEntityLong { ...@@ -18,5 +18,8 @@ public class StaffPerformSummaryVo extends BaseEntityLong {
/** /**
* 联系电话 * 联系电话
*/ */
@Excel(name = "手机号码",sort = 3)
private String phoneNumber; private String phoneNumber;
private Integer sortKind;
} }
\ No newline at end of file
...@@ -81,9 +81,16 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro ...@@ -81,9 +81,16 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
@Override @Override
protected void doListBefore(StaffPerformSummaryEntity query, Map<String, Object> model, Context context) throws AppException { protected void doListBefore(StaffPerformSummaryEntity query, Map<String, Object> model, Context context) throws AppException {
if (!ObjectUtils.isEmpty(query.getOrderColList())) { if (!ObjectUtils.isEmpty(query.getOrderColList())) {
query.getOrderColList().add(new OrderCol("year",OrderCol.DESCENDING)); // query.getOrderColList().add(new OrderCol("year",OrderCol.DESCENDING));
query.getOrderColList().add(new OrderCol("month",OrderCol.DESCENDING)); // query.getOrderColList().add(new OrderCol("month",OrderCol.DESCENDING));
} }
List<OrderCol> orderColList = new ArrayList();
if(query.getSortKind()!=null && query.getSortKind()==1){
orderColList.add(new OrderCol("totalScore",OrderCol.DESCENDING));
}else {
orderColList.add(new OrderCol("totalScore",OrderCol.ASCENDING));
}
query.setOrderColList(orderColList);
} }
@Override @Override
...@@ -134,6 +141,7 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro ...@@ -134,6 +141,7 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
staffPerformSummaryEntity.setAttendScore(BigDecimal.ZERO); staffPerformSummaryEntity.setAttendScore(BigDecimal.ZERO);
staffPerformSummaryEntity.setTotalScore(StaffPerformUtil.SCORE100); staffPerformSummaryEntity.setTotalScore(StaffPerformUtil.SCORE100);
staffPerformSummaryEntity.setErrorScore(BigDecimal.ZERO); staffPerformSummaryEntity.setErrorScore(BigDecimal.ZERO);
staffPerformSummaryEntity.setUpdateTime(new Date());
Map<String,Object> condition = new HashMap<>(); Map<String,Object> condition = new HashMap<>();
condition.put("year",year); condition.put("year",year);
condition.put("month",month); condition.put("month",month);
......
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