瀏覽代碼

修改打卡考勤状态值

main
1341924763@qq.com 1 周之前
父節點
當前提交
e3db1c1931

+ 3
- 0
zs-manager/src/main/java/com/ruoyi/zhushi/entity/DkCheckInRecordDTO.java 查看文件

private String week; private String week;


private int day; private int day;

// 模版类型
private String modelType;
} }

+ 4
- 4
zs-manager/src/main/java/com/ruoyi/zhushi/service/impl/DkAppServiceImpl.java 查看文件

dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn())); dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn()));
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn())); dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn()));
dkCheckInRecord.setCheckInType(appDTO.getCheckInType()); dkCheckInRecord.setCheckInType(appDTO.getCheckInType());
dkCheckInRecord.setCheckInStatus("2");
dkCheckInRecord.setCheckInStatus("3");
dkCheckInRecord.setMonth(appDTO.getMonth()); dkCheckInRecord.setMonth(appDTO.getMonth());
dkCheckInRecord.setWeek(appDTO.getWeek()); dkCheckInRecord.setWeek(appDTO.getWeek());
dkCheckInRecord.setDay(appDTO.getDay()); dkCheckInRecord.setDay(appDTO.getDay());
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn())); dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn()));
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn())); dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn()));
dkCheckInRecord.setCheckInType(appDTO.getCheckInType()); dkCheckInRecord.setCheckInType(appDTO.getCheckInType());
dkCheckInRecord.setCheckInStatus("2");
dkCheckInRecord.setCheckInStatus("3");
dkCheckInRecord.setMonth(appDTO.getMonth()); dkCheckInRecord.setMonth(appDTO.getMonth());
dkCheckInRecord.setWeek(appDTO.getWeek()); dkCheckInRecord.setWeek(appDTO.getWeek());
dkCheckInRecord.setDay(appDTO.getDay()); dkCheckInRecord.setDay(appDTO.getDay());
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut())); dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut()));
dkCheckInRecord.setClockOut(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut())); dkCheckInRecord.setClockOut(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut()));
dkCheckInRecord.setCheckInType(appDTO.getCheckInType()); dkCheckInRecord.setCheckInType(appDTO.getCheckInType());
dkCheckInRecord.setCheckInStatus("1");
dkCheckInRecord.setCheckInStatus("2");
dkCheckInRecord.setMonth(appDTO.getMonth()); dkCheckInRecord.setMonth(appDTO.getMonth());
dkCheckInRecord.setWeek(appDTO.getWeek()); dkCheckInRecord.setWeek(appDTO.getWeek());
dkCheckInRecord.setDay(appDTO.getDay()); dkCheckInRecord.setDay(appDTO.getDay());
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut())); dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut()));
dkCheckInRecord.setClockOut(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut())); dkCheckInRecord.setClockOut(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut()));
dkCheckInRecord.setCheckInType(appDTO.getCheckInType()); dkCheckInRecord.setCheckInType(appDTO.getCheckInType());
dkCheckInRecord.setCheckInStatus("1");
dkCheckInRecord.setCheckInStatus("2");
dkCheckInRecord.setMonth(appDTO.getMonth()); dkCheckInRecord.setMonth(appDTO.getMonth());
dkCheckInRecord.setWeek(appDTO.getWeek()); dkCheckInRecord.setWeek(appDTO.getWeek());
dkCheckInRecord.setDay(appDTO.getDay()); dkCheckInRecord.setDay(appDTO.getDay());

+ 1
- 1
zs-manager/src/main/java/com/ruoyi/zhushi/service/impl/DkRecordServiceImpl.java 查看文件

FileInputStream templateFile; FileInputStream templateFile;
Workbook workbook; Workbook workbook;
// 加载模板文件 // 加载模板文件
templateFile = new FileInputStream("template.xlsx");
templateFile = new FileInputStream("template-guonei.xlsx");
workbook = WorkbookFactory.create(templateFile); workbook = WorkbookFactory.create(templateFile);
Sheet templateSheet = workbook.getSheetAt(0); Sheet templateSheet = workbook.getSheetAt(0);
for (int i = 0; i < dkCheckInRecordDTOS.size(); i++){ for (int i = 0; i < dkCheckInRecordDTOS.size(); i++){

Loading…
取消
儲存