|
@@ -1,5 +1,6 @@
|
|
|
package cn.iocoder.yudao.module.bpm.controller.admin.oa.leave.vo;
|
|
package cn.iocoder.yudao.module.bpm.controller.admin.oa.leave.vo;
|
|
|
|
|
|
|
|
|
|
+import cn.iocoder.yudao.framework.common.util.date.DateUtils;
|
|
|
import cn.iocoder.yudao.module.bpm.controller.admin.task.vo.task.BpmTaskRespVO;
|
|
import cn.iocoder.yudao.module.bpm.controller.admin.task.vo.task.BpmTaskRespVO;
|
|
|
import cn.iocoder.yudao.module.employee.api.dto.EmployeeRespDTO;
|
|
import cn.iocoder.yudao.module.employee.api.dto.EmployeeRespDTO;
|
|
|
import cn.iocoder.yudao.module.infra.api.file.dto.FileDTO;
|
|
import cn.iocoder.yudao.module.infra.api.file.dto.FileDTO;
|
|
@@ -7,6 +8,7 @@ import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
+import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -16,55 +18,56 @@ import java.util.List;
|
|
|
@ExcelIgnoreUnannotated
|
|
@ExcelIgnoreUnannotated
|
|
|
public class OaLeaveRespVO {
|
|
public class OaLeaveRespVO {
|
|
|
|
|
|
|
|
- @Schema(description = "请假表单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "26233")
|
|
|
|
|
- @ExcelProperty("请假表单主键")
|
|
|
|
|
|
|
+ @Schema(description = "请假表单主键")
|
|
|
|
|
+ // @ExcelProperty("请假表单主键")
|
|
|
private Long id;
|
|
private Long id;
|
|
|
|
|
|
|
|
- @Schema(description = "uuid", example = "20728")
|
|
|
|
|
- @ExcelProperty("uuid")
|
|
|
|
|
|
|
+ @Schema(description = "uuid")
|
|
|
|
|
+ // @ExcelProperty("uuid")
|
|
|
private String leaveId;
|
|
private String leaveId;
|
|
|
|
|
|
|
|
- @Schema(description = "转正人id", example = "12388")
|
|
|
|
|
- @ExcelProperty("转正人id")
|
|
|
|
|
|
|
+ @Schema(description = "请假人id")
|
|
|
|
|
+ // @ExcelProperty("请假人id")
|
|
|
private Long employeeId;
|
|
private Long employeeId;
|
|
|
|
|
|
|
|
- @Schema(description = "转正员工姓名", example = "王五")
|
|
|
|
|
- @ExcelProperty("转正员工姓名")
|
|
|
|
|
|
|
+ @Schema(description = "请假员工姓名")
|
|
|
|
|
+ @ExcelProperty("请假人")
|
|
|
private String employeeName;
|
|
private String employeeName;
|
|
|
|
|
|
|
|
- @Schema(description = "请假员工手机号", example = "1394920000")
|
|
|
|
|
- private String employeePhone;
|
|
|
|
|
-
|
|
|
|
|
- @Schema(description = "用户账号id", example = "25603")
|
|
|
|
|
- @ExcelProperty("用户账号id")
|
|
|
|
|
|
|
+ @Schema(description = "用户账号id")
|
|
|
|
|
+ // @ExcelProperty("用户账号id")
|
|
|
private Long userId;
|
|
private Long userId;
|
|
|
|
|
|
|
|
- @Schema(description = "部门id", example = "26110")
|
|
|
|
|
- @ExcelProperty("部门id")
|
|
|
|
|
|
|
+ @Schema(description = "部门id")
|
|
|
|
|
+ // @ExcelProperty("部门id")
|
|
|
private Long deptId;
|
|
private Long deptId;
|
|
|
|
|
|
|
|
@Schema(description = "部门名称")
|
|
@Schema(description = "部门名称")
|
|
|
- @ExcelProperty("部门名称")
|
|
|
|
|
|
|
+ @ExcelProperty("部门")
|
|
|
private String deptName;
|
|
private String deptName;
|
|
|
|
|
|
|
|
- @Schema(description = "职位id", example = "1")
|
|
|
|
|
- @ExcelProperty("职位id")
|
|
|
|
|
|
|
+ @Schema(description = "职位id")
|
|
|
|
|
+ // @ExcelProperty("职位id")
|
|
|
private Long postId;
|
|
private Long postId;
|
|
|
|
|
|
|
|
@Schema(description = "员工职位")
|
|
@Schema(description = "员工职位")
|
|
|
- @ExcelProperty("员工职位")
|
|
|
|
|
|
|
+ @ExcelProperty("职位")
|
|
|
private String position;
|
|
private String position;
|
|
|
|
|
|
|
|
- @Schema(description = "请假类型", example = "1")
|
|
|
|
|
|
|
+ @Schema(description = "请假员工手机号")
|
|
|
|
|
+ @ExcelProperty("手机号")
|
|
|
|
|
+ private String employeePhone;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "请假类型")
|
|
|
@ExcelProperty("请假类型")
|
|
@ExcelProperty("请假类型")
|
|
|
private String leaveType;
|
|
private String leaveType;
|
|
|
|
|
|
|
|
@Schema(description = "开始日期")
|
|
@Schema(description = "开始日期")
|
|
|
- @ExcelProperty("开始日期")
|
|
|
|
|
|
|
+ @ExcelProperty("请假开始日期")
|
|
|
private String startDate;
|
|
private String startDate;
|
|
|
|
|
|
|
|
@Schema(description = "结束日期")
|
|
@Schema(description = "结束日期")
|
|
|
- @ExcelProperty("结束日期")
|
|
|
|
|
|
|
+ @ExcelProperty("请假结束日期")
|
|
|
private String endDate;
|
|
private String endDate;
|
|
|
|
|
|
|
|
@Schema(description = "请假天数")
|
|
@Schema(description = "请假天数")
|
|
@@ -72,62 +75,68 @@ public class OaLeaveRespVO {
|
|
|
private String day;
|
|
private String day;
|
|
|
|
|
|
|
|
@Schema(description = "具体到上下午,am上午 pm下午")
|
|
@Schema(description = "具体到上下午,am上午 pm下午")
|
|
|
- @ExcelProperty("具体到上下午,am上午 pm下午")
|
|
|
|
|
|
|
+ // @ExcelProperty("具体到上下午,am上午 pm下午")
|
|
|
private String startTime;
|
|
private String startTime;
|
|
|
|
|
|
|
|
@Schema(description = "具体到上下午,am上午 pm下午")
|
|
@Schema(description = "具体到上下午,am上午 pm下午")
|
|
|
- @ExcelProperty("具体到上下午,am上午 pm下午")
|
|
|
|
|
|
|
+ // @ExcelProperty("具体到上下午,am上午 pm下午")
|
|
|
private String endTime;
|
|
private String endTime;
|
|
|
|
|
|
|
|
- @Schema(description = "请假原因", example = "不好")
|
|
|
|
|
- @ExcelProperty("请假原因")
|
|
|
|
|
|
|
+ @Schema(description = "请假原因")
|
|
|
|
|
+ // @ExcelProperty("请假原因")
|
|
|
private String reason;
|
|
private String reason;
|
|
|
|
|
|
|
|
@Schema(description = "备注")
|
|
@Schema(description = "备注")
|
|
|
- @ExcelProperty("备注")
|
|
|
|
|
|
|
+ // @ExcelProperty("备注")
|
|
|
private String remarks;
|
|
private String remarks;
|
|
|
|
|
|
|
|
- @Schema(description = "流程实例id", example = "26074")
|
|
|
|
|
- @ExcelProperty("流程实例id")
|
|
|
|
|
|
|
+ @Schema(description = "流程实例id")
|
|
|
|
|
+ // @ExcelProperty("流程实例id")
|
|
|
private String procInstId;
|
|
private String procInstId;
|
|
|
|
|
|
|
|
- @Schema(description = "审核状态(0暂存、1已提交、2审核中、3已审核、4已关闭、5已驳回)", example = "2")
|
|
|
|
|
- @ExcelProperty("审核状态(0暂存、1已提交、2审核中、3已审核、4已关闭、5已驳回)")
|
|
|
|
|
|
|
+ @Schema(description = "申请人id")
|
|
|
|
|
+ // @ExcelProperty("申请人id")
|
|
|
|
|
+ private Long applyEmployeeId;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "申请人姓名")
|
|
|
|
|
+ // @ExcelProperty("申请人")
|
|
|
|
|
+ private String applyEmployeeName;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "创建时间")
|
|
|
|
|
+ @ExcelProperty("申请时间")
|
|
|
|
|
+ @DateTimeFormat(pattern = DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
|
|
|
|
+ private LocalDateTime createTime;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "审核状态(0暂存、1已提交、2审核中、3已审核、4已关闭、5已驳回)")
|
|
|
|
|
+ // @ExcelProperty("审核状态(0暂存、1已提交、2审核中、3已审核、4已关闭、5已驳回)")
|
|
|
private String auditStatus;
|
|
private String auditStatus;
|
|
|
|
|
|
|
|
- @Schema(description = "当前审核人用户id", example = "19230")
|
|
|
|
|
- @ExcelProperty("当前审核人用户id")
|
|
|
|
|
|
|
+ @Schema(description = "审核状态(0暂存、1已提交、2审核中、3已审核、4已关闭、5已驳回)")
|
|
|
|
|
+ @ExcelProperty("状态")
|
|
|
|
|
+ private String auditStatusDesc;
|
|
|
|
|
+
|
|
|
|
|
+ @Schema(description = "当前审核人用户id")
|
|
|
|
|
+ // @ExcelProperty("当前审核人用户id")
|
|
|
private Long currentAuditUserId;
|
|
private Long currentAuditUserId;
|
|
|
|
|
|
|
|
- @Schema(description = "当前审核人员工id", example = "7920")
|
|
|
|
|
- @ExcelProperty("当前审核人员工id")
|
|
|
|
|
|
|
+ @Schema(description = "当前审核人员工id")
|
|
|
|
|
+ // @ExcelProperty("当前审核人员工id")
|
|
|
private Long currentAuditEmployeeId;
|
|
private Long currentAuditEmployeeId;
|
|
|
|
|
|
|
|
@Schema(description = "当前审核人员工姓名")
|
|
@Schema(description = "当前审核人员工姓名")
|
|
|
- @ExcelProperty("当前审核人员工姓名")
|
|
|
|
|
|
|
+ @ExcelProperty("当前处理人")
|
|
|
private String currentAuditEmployeeName;
|
|
private String currentAuditEmployeeName;
|
|
|
|
|
|
|
|
@Schema(description = "最后审核时间")
|
|
@Schema(description = "最后审核时间")
|
|
|
- @ExcelProperty("最后审核时间")
|
|
|
|
|
|
|
+ // @ExcelProperty("最后审核时间")
|
|
|
private LocalDateTime finalAuditDate;
|
|
private LocalDateTime finalAuditDate;
|
|
|
|
|
|
|
|
- @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
|
|
- @ExcelProperty("创建时间")
|
|
|
|
|
- private LocalDateTime createTime;
|
|
|
|
|
-
|
|
|
|
|
- @Schema(description = "申请人id")
|
|
|
|
|
- @ExcelProperty("申请人id")
|
|
|
|
|
- private Long applyEmployeeId;
|
|
|
|
|
-
|
|
|
|
|
- @Schema(description = "申请人姓名")
|
|
|
|
|
- @ExcelProperty("申请人姓名")
|
|
|
|
|
- private String applyEmployeeName;
|
|
|
|
|
-
|
|
|
|
|
@Schema(description = "附件列表")
|
|
@Schema(description = "附件列表")
|
|
|
private List<FileDTO> fileList;
|
|
private List<FileDTO> fileList;
|
|
|
|
|
|
|
|
@Schema(description = "附件id列表")
|
|
@Schema(description = "附件id列表")
|
|
|
private List<Long> fileIdList;
|
|
private List<Long> fileIdList;
|
|
|
|
|
+
|
|
|
@Schema(description = "审批记录列表")
|
|
@Schema(description = "审批记录列表")
|
|
|
private List<BpmTaskRespVO> auditRecordList;
|
|
private List<BpmTaskRespVO> auditRecordList;
|
|
|
|
|
|