Bläddra i källkod

修改打卡考勤状态值

main
1341924763@qq.com 1 vecka sedan
förälder
incheckning
e3db1c1931

+ 3
- 0
zs-manager/src/main/java/com/ruoyi/zhushi/entity/DkCheckInRecordDTO.java Visa fil

@@ -56,4 +56,7 @@ public class DkCheckInRecordDTO extends BaseEntity {
private String week;

private int day;

// 模版类型
private String modelType;
}

+ 4
- 4
zs-manager/src/main/java/com/ruoyi/zhushi/service/impl/DkAppServiceImpl.java Visa fil

@@ -58,7 +58,7 @@ public class DkAppServiceImpl implements DkAppService {
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn()));
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn()));
dkCheckInRecord.setCheckInType(appDTO.getCheckInType());
dkCheckInRecord.setCheckInStatus("2");
dkCheckInRecord.setCheckInStatus("3");
dkCheckInRecord.setMonth(appDTO.getMonth());
dkCheckInRecord.setWeek(appDTO.getWeek());
dkCheckInRecord.setDay(appDTO.getDay());
@@ -82,7 +82,7 @@ public class DkAppServiceImpl implements DkAppService {
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn()));
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockIn()));
dkCheckInRecord.setCheckInType(appDTO.getCheckInType());
dkCheckInRecord.setCheckInStatus("2");
dkCheckInRecord.setCheckInStatus("3");
dkCheckInRecord.setMonth(appDTO.getMonth());
dkCheckInRecord.setWeek(appDTO.getWeek());
dkCheckInRecord.setDay(appDTO.getDay());
@@ -206,7 +206,7 @@ public class DkAppServiceImpl implements DkAppService {
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut()));
dkCheckInRecord.setClockOut(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut()));
dkCheckInRecord.setCheckInType(appDTO.getCheckInType());
dkCheckInRecord.setCheckInStatus("1");
dkCheckInRecord.setCheckInStatus("2");
dkCheckInRecord.setMonth(appDTO.getMonth());
dkCheckInRecord.setWeek(appDTO.getWeek());
dkCheckInRecord.setDay(appDTO.getDay());
@@ -232,7 +232,7 @@ public class DkAppServiceImpl implements DkAppService {
dkCheckInRecord.setCheckInTime(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut()));
dkCheckInRecord.setClockOut(TimeUtils.parseStr2LocalDateTime(appDTO.getClockOut()));
dkCheckInRecord.setCheckInType(appDTO.getCheckInType());
dkCheckInRecord.setCheckInStatus("1");
dkCheckInRecord.setCheckInStatus("2");
dkCheckInRecord.setMonth(appDTO.getMonth());
dkCheckInRecord.setWeek(appDTO.getWeek());
dkCheckInRecord.setDay(appDTO.getDay());

+ 1
- 1
zs-manager/src/main/java/com/ruoyi/zhushi/service/impl/DkRecordServiceImpl.java Visa fil

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

Laddar…
Avbryt
Spara