This commit is contained in:
杜建超 2020-12-02 16:48:12 +08:00
parent 26cdb127fb
commit 1d1ea48651
4 changed files with 9 additions and 8 deletions

View File

@ -102,7 +102,7 @@ public class ExportController {
writer.merge(7 + data.size(),8 + data.size(),0,0,"签字",false);
//设置下拉框数据
String[] values = { "当月入职", "当月离职", "当月跨部门调动", "当月转正", "已转正", "试用期"};
String[] values = {"已转正", "试用期"};
Sheet sheet = writer.getSheet();
int firstRow = 4;
int lastRow = 4;

View File

@ -16,7 +16,7 @@ public class LevelDetailExportRes {
//姓名
private String staffName;
//当月状态
private int staffType;
private String staffType;
//一级部门
private String departmentOne;
//二级部门

View File

@ -80,8 +80,6 @@ public class ChartResultServiceImpl implements ChartResultService {
private EvaluationGroupMapper evaluationGroupMapper;
@Autowired
private StaffOccupationService staffOccupationService;
@Autowired
private StaffWorkTransferRecordService staffWorkTransferRecordService;
private static final Long processId = 1L;
@ -290,13 +288,16 @@ public class ChartResultServiceImpl implements ChartResultService {
}
}
// TODO 人员变动信息 人员状态
//staffWorkTransferRecordService
//拷贝为excel格式
List<LevelDetailExportRes> levelDetailExportRes = levelDetailExportDtos.stream().map(levelDetailExportDto -> {
LevelDetailExportRes res = new LevelDetailExportRes();
BeanUtils.copyProperties(levelDetailExportDto,res);
if(1 == levelDetailExportDto.getStaffType()){
res.setStaffType("已转正");
}
if(2 == levelDetailExportDto.getStaffType()){
res.setStaffType("试用期");
}
return res;
}).collect(Collectors.toList());

View File

@ -74,7 +74,7 @@
<select id="selectStaffTypesByStaffIds" resultType="com.lz.modules.performance.dto.StaffTypeDto">
select staff_id,staff_type,position,staff_status,entry_time,official_time from lz_staff_occupation
where is_delete = 0 and
where is_delete = 0 and staff_status = 0 and
staff_id in
<foreach collection="staffIds" item="staff_id" open="(" close=")"
separator=",">