Commit 1e1b3b7f authored by 廖旭伟's avatar 廖旭伟

考勤汇总导出修改

parent 8b34bbc6
...@@ -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
......
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