This commit is contained in:
杜建超 2020-10-16 15:10:03 +08:00
parent 434118adca
commit 53812d9e3d
9 changed files with 27 additions and 3 deletions

View File

@ -32,7 +32,7 @@ public interface EvaluationGroupService extends IService<EvaluationGroup> {
int deleteEvaluationGroupById(Long id);
//获取参与考核的所有人员
List<String> selectAllStaffIdsById(Long id);
List<String> selectAllStaffIdsByGroupId(Long id);
}

View File

@ -66,7 +66,7 @@ public class EvaluationGroupServiceImpl extends ServiceImpl<EvaluationGroupMappe
@Override
public List<String> selectAllStaffIdsById(Long id) {
public List<String> selectAllStaffIdsByGroupId(Long id) {
EvaluationGroup evaluationGroup = this.selectEvaluationGroupById(id);
String depIds = evaluationGroup.getDepIds();
Set<String> allDeparmentIds = new HashSet<>();

View File

@ -40,7 +40,8 @@ public class ChartController extends AbstractController{
public R chartResult(@RequestBody @ApiParam(name = "body",value = "body请求体",required = true) ChartResultReq req){
List<ChartStatisticalRes> data = new ArrayList<>();
chartResultService.chartReport(req);
EvaluationGroup evaluationGroup = evaluationGroupService.selectEvaluationGroupById(1L);
List<String> strings = evaluationGroupService.selectAllStaffIdsByGroupId(1L);
return R.ok();
}

View File

@ -2,11 +2,17 @@ package com.lz.modules.performance.service;
import com.lz.modules.performance.req.ChartResultReq;
import java.util.List;
/**
* @Author: djc
* @Desc:
* @Date: 2020/10/14 16:52
*/
public interface ChartResultService {
void chartReport(ChartResultReq req);
void chartDepartment(List<String>staffIds);
}

View File

@ -27,5 +27,10 @@ public class ChartResultServiceImpl implements ChartResultService {
List<ChartStatisticalRes> chartStatisticalRes = resultRecordService.countNumByFlowProcess(query);
}
@Override
public void chartDepartment(List<String> staffIds) {
}
}

View File

@ -74,4 +74,6 @@ public interface ResultRecordMapper extends BaseMapper<ResultRecord> {
List<ChartStatisticalRes> countNumByFlowProcess(@Param("req") AssessListReq req);
List<ChartStatisticalRes> countNumByScoreLevel(@Param("req") AssessListReq req);
}

View File

@ -104,4 +104,6 @@ public interface ResultRecordService extends IService<ResultRecord> {
List<ResultRecord> selectResultRecordAllByStaffId(Long staffId);
List<ChartStatisticalRes> countNumByFlowProcess(AssessListReq req);
List<ChartStatisticalRes> countNumByScoreLevel(AssessListReq req);
}

View File

@ -736,4 +736,9 @@ public class ResultRecordServiceImpl extends ServiceImpl<ResultRecordMapper, Res
public List<ChartStatisticalRes> countNumByFlowProcess(AssessListReq req) {
return resultRecordMapper.countNumByFlowProcess(req);
}
@Override
public List<ChartStatisticalRes> countNumByScoreLevel(AssessListReq req) {
return resultRecordMapper.countNumByScoreLevel(req);
}
}

View File

@ -341,6 +341,9 @@
<select id="countNumByFlowProcess" resultType="com.lz.modules.performance.res.ChartStatisticalRes">
SELECT count(flow_process) num,flow_process type from lz_result_record where is_delete=0 GROUP BY flow_process
</select>
<select id="countNumByScoreLevel" resultType="com.lz.modules.performance.res.ChartStatisticalRes">
</select>
</mapper>