fix
This commit is contained in:
parent
a0eb7abe6f
commit
fc12b8d9e5
@ -0,0 +1,18 @@
|
|||||||
|
package com.lz.modules.performance.res;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: djc
|
||||||
|
* @Desc:
|
||||||
|
* @Date: 2020/10/20 15:54
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class AssessListRes {
|
||||||
|
//考核名称
|
||||||
|
private String name;
|
||||||
|
//时间周期
|
||||||
|
private String cycleTime;
|
||||||
|
//组人员
|
||||||
|
private String groupNum;
|
||||||
|
}
|
||||||
@ -3,13 +3,14 @@ package com.lz.modules.performance.res;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ApiModel(value = "报表统计实体")
|
@ApiModel(value = "报表统计实体")
|
||||||
public class ChartStatistical {
|
public class ChartStatistical {
|
||||||
@ApiModelProperty(value = "描述",name = "desc")
|
@ApiModelProperty(value = "描述",name = "desc")
|
||||||
private String desc;
|
private String desc = StringUtils.EMPTY;
|
||||||
|
|
||||||
@ApiModelProperty(value = "人数",name = "num")
|
@ApiModelProperty(value = "人数",name = "num")
|
||||||
private int num;
|
private int num = 0;
|
||||||
}
|
}
|
||||||
@ -1,5 +1,6 @@
|
|||||||
package com.lz.modules.performance.service.impl;
|
package com.lz.modules.performance.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import com.lz.common.utils.PageUtils;
|
import com.lz.common.utils.PageUtils;
|
||||||
@ -52,21 +53,24 @@ public class ChartResultServiceImpl implements ChartResultService {
|
|||||||
public List<ChartStatisticalRes> chartReport(ChartResultReq req) {
|
public List<ChartStatisticalRes> chartReport(ChartResultReq req) {
|
||||||
List<ChartStatisticalRes> data = new ArrayList<>();
|
List<ChartStatisticalRes> data = new ArrayList<>();
|
||||||
AssessListReq query = new AssessListReq();
|
AssessListReq query = new AssessListReq();
|
||||||
ChartStatisticalRes res = null;
|
ChartStatisticalRes res;
|
||||||
BeanUtils.copyProperties(req,query);
|
BeanUtils.copyProperties(req,query);
|
||||||
List<ChartStatistical> process = resultRecordService.countNumByFlowProcess(query);
|
List<ChartStatistical> process = resultRecordService.countNumByFlowProcess(query);
|
||||||
res = new ChartStatisticalRes();
|
res = new ChartStatisticalRes();
|
||||||
res.setType(0);
|
res.setType(0);
|
||||||
res.setData(process);
|
res.setData(process);
|
||||||
|
data.add(res);
|
||||||
List<ChartStatistical> scoreLevel = resultRecordService.countNumByScoreLevel(query);
|
List<ChartStatistical> scoreLevel = resultRecordService.countNumByScoreLevel(query);
|
||||||
res = new ChartStatisticalRes();
|
res = new ChartStatisticalRes();
|
||||||
res.setType(1);
|
res.setType(1);
|
||||||
res.setData(scoreLevel);
|
res.setData(scoreLevel);
|
||||||
List<String> strings = evaluationGroupService.selectAllStaffIdsByGroupId(1L);
|
data.add(res);
|
||||||
|
List<String> strings = evaluationGroupService.selectAllStaffIdsByGroupId(3L);
|
||||||
List<ChartStatistical> depstaff = this.countDepartmentAndStaffNum(strings);
|
List<ChartStatistical> depstaff = this.countDepartmentAndStaffNum(strings);
|
||||||
res = new ChartStatisticalRes();
|
res = new ChartStatisticalRes();
|
||||||
res.setType(2);
|
res.setType(2);
|
||||||
res.setData(depstaff);
|
res.setData(depstaff);
|
||||||
|
data.add(res);
|
||||||
return data;
|
return data;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -339,10 +339,11 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="countNumByFlowProcess" resultType="com.lz.modules.performance.res.ChartStatistical">
|
<select id="countNumByFlowProcess" resultType="com.lz.modules.performance.res.ChartStatistical">
|
||||||
SELECT count(flow_process) num,flow_process type from lz_result_record where is_delete=0 GROUP BY flow_process
|
SELECT count(flow_process) num,flow_process as 'desc' from lz_result_record where is_delete=0 GROUP BY flow_process
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="countNumByScoreLevel" resultType="com.lz.modules.performance.res.ChartStatistical">
|
<select id="countNumByScoreLevel" resultType="com.lz.modules.performance.res.ChartStatistical">
|
||||||
|
SELECT count(score_level) num,score_level as 'desc' from lz_result_record where is_delete=0 GROUP BY score_level
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectResultRankList" resultType="com.lz.modules.performance.res.ResultRankListRes">
|
<select id="selectResultRankList" resultType="com.lz.modules.performance.res.ResultRankListRes">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user