feat: 添加导入相关VO类(ImportResultVO, ImportStatusVO, ImportFailureVO)

This commit is contained in:
wkc
2026-02-06 09:18:31 +08:00
parent ce4000f477
commit 0aa812c283
3 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
package com.ruoyi.ccdi.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 导入失败记录VO
*
* @author ruoyi
*/
@Data
@Schema(description = "导入失败记录")
public class ImportFailureVO {
@Schema(description = "柜员号")
private Long employeeId;
@Schema(description = "姓名")
private String name;
@Schema(description = "身份证号")
private String idCard;
@Schema(description = "部门ID")
private Long deptId;
@Schema(description = "电话")
private String phone;
@Schema(description = "状态")
private String status;
@Schema(description = "入职时间")
private String hireDate;
@Schema(description = "错误信息")
private String errorMessage;
}

View File

@@ -0,0 +1,23 @@
package com.ruoyi.ccdi.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 导入结果VO
*
* @author ruoyi
*/
@Data
@Schema(description = "导入结果")
public class ImportResultVO {
@Schema(description = "任务ID")
private String taskId;
@Schema(description = "状态: PROCESSING-处理中, SUCCESS-成功, PARTIAL_SUCCESS-部分成功, FAILED-失败")
private String status;
@Schema(description = "消息")
private String message;
}

View File

@@ -0,0 +1,41 @@
package com.ruoyi.ccdi.domain.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
/**
* 导入状态VO
*
* @author ruoyi
*/
@Data
@Schema(description = "导入状态")
public class ImportStatusVO {
@Schema(description = "任务ID")
private String taskId;
@Schema(description = "状态")
private String status;
@Schema(description = "总记录数")
private Integer totalCount;
@Schema(description = "成功数")
private Integer successCount;
@Schema(description = "失败数")
private Integer failureCount;
@Schema(description = "进度百分比")
private Integer progress;
@Schema(description = "开始时间戳")
private Long startTime;
@Schema(description = "结束时间戳")
private Long endTime;
@Schema(description = "状态消息")
private String message;
}