This commit is contained in:
杜建超 2020-10-28 11:06:32 +08:00
parent 7546eb5ef4
commit 2b2ab2ff07
5 changed files with 18 additions and 7 deletions

View File

@ -20,6 +20,6 @@ public class ChartResultReq extends BasePage{
@ApiModelProperty(value = "考核id",name = "startId") @ApiModelProperty(value = "考核id",name = "startId")
private Long startId; private Long startId;
@ApiModelProperty(value = "状态",name = "flowProcess") @ApiModelProperty(value = "等级",name = "scoreLevel")
private Long flowProcess; private Long scoreLevel;
} }

View File

@ -1,5 +1,7 @@
package com.lz.modules.performance.res; package com.lz.modules.performance.res;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -11,15 +13,24 @@ import java.util.List;
* @Date: 2020/10/21 11:35 * @Date: 2020/10/21 11:35
*/ */
@Data @Data
@ApiModel("考核详情列表实体")
public class AssessManagerDetailRes { public class AssessManagerDetailRes {
@ApiModelProperty(value = "姓名",name = "staffName")
private String staffName; private String staffName;
@ApiModelProperty(value = "部门名称",name = "departmentName")
private String departmentName; private String departmentName;
@ApiModelProperty(value = "考核组",name = "evaluationName")
private String evaluationName; private String evaluationName;
@ApiModelProperty(value = "考核结果",name = "allScore")
private String allScore; private String allScore;
@ApiModelProperty(value = "绩效等级",name = "scoreLevel")
private String scoreLevel; private String scoreLevel;
@ApiModelProperty(value = "id",name = "id")
private Long id;
} }

View File

@ -138,7 +138,7 @@ public class ChartResultServiceImpl implements ChartResultService {
List<String> allDeparmentIds = staffService.selectAllDeparmentIdsByDepartmentParentId(req.getDepartmentId()); List<String> allDeparmentIds = staffService.selectAllDeparmentIdsByDepartmentParentId(req.getDepartmentId());
List<String> ids = staffService.staffsByAllDeparmentIds(allDeparmentIds); List<String> ids = staffService.staffsByAllDeparmentIds(allDeparmentIds);
PageUtils pageUtils = PageUtils.startPage(req.getCurrPage(), req.getPageSize()).doSelect( PageUtils pageUtils = PageUtils.startPage(req.getCurrPage(), req.getPageSize()).doSelect(
page -> resultRecordMapper.selectChartDetailList(page,ids,req.getStartId(),req.getFlowProcess()) page -> resultRecordMapper.selectChartDetailList(page,ids,req.getStartId(),req.getScoreLevel())
); );
return pageUtils; return pageUtils;
} }

View File

@ -77,7 +77,7 @@ public interface ResultRecordMapper extends BaseMapper<ResultRecord> {
List<ChartStatistical> countNumByScoreLevel(@Param("startId") Long startId); List<ChartStatistical> countNumByScoreLevel(@Param("startId") Long startId);
List<ResultRecord> selectChartDetailList(@Param("page") IPage page, @Param("staffIds") List<String> staffIds, @Param("startId")Long startId,@Param("flowProcess")Long flowProcess); List<ResultRecord> selectChartDetailList(@Param("page") IPage page, @Param("staffIds") List<String> staffIds, @Param("startId")Long startId,@Param("scoreLevel")Long scoreLevel);
void batchDeleteByStartId(@Param("startId")Long startId); void batchDeleteByStartId(@Param("startId")Long startId);

View File

@ -373,8 +373,8 @@
</foreach> </foreach>
) )
</if> </if>
<if test="flowProcess !=null"> <if test="scoreLevel !=null">
and r.flow_process = #{flowProcess} and r.score_level = #{scoreLevel}
</if> </if>
ORDER BY all_score desc ORDER BY all_score desc
</select> </select>
@ -395,7 +395,7 @@
</select> </select>
<select id="selectAssessListByStartId" resultType="com.lz.modules.performance.res.AssessManagerDetailRes"> <select id="selectAssessListByStartId" resultType="com.lz.modules.performance.res.AssessManagerDetailRes">
select staff_name,department_name,all_score,score_level,evaluation_name from lz_result_record r select r.id,staff_name,department_name,all_score,score_level,evaluation_name from lz_result_record r
LEFT JOIN lz_evaluation_start_staff s LEFT JOIN lz_evaluation_start_staff s
ON r.start_id = s.start_id and r.staff_id = s.staff_id ON r.start_id = s.start_id and r.staff_id = s.staff_id
where r.is_delete = 0 and s.is_delete = 0 where r.is_delete = 0 and s.is_delete = 0