add produce report
parent
e6692e2fde
commit
dd86c35c44
@ -1,59 +1,79 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.producereport.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
|
||||
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.util.*;
|
||||
import java.math.BigDecimal;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
|
||||
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
|
||||
|
||||
@Schema(description = "管理后台 - 生产报工单 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ProduceReportRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6256")
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29099")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "流程实例的编号", example = "2975")
|
||||
@ExcelProperty("流程实例的编号")
|
||||
@Schema(description = "流程实例编号", example = "12049")
|
||||
@ExcelProperty("流程实例编号")
|
||||
private String processInstanceId;
|
||||
|
||||
@Schema(description = "组别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32137")
|
||||
@ExcelProperty("组别ID")
|
||||
private Long workTeamId;
|
||||
@Schema(description = "编号")
|
||||
@ExcelProperty("编号")
|
||||
private String reportCode;
|
||||
|
||||
@Schema(description = "班组ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10669")
|
||||
@ExcelProperty("班组ID")
|
||||
private Long groupId;
|
||||
@Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19983")
|
||||
@ExcelProperty("用户ID")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "报工日期", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("报工日期")
|
||||
private LocalDateTime reportDate;
|
||||
@Schema(description = "工序ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28795")
|
||||
@ExcelProperty("工序ID")
|
||||
private Long orgId;
|
||||
|
||||
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty(value = "状态", converter = DictConvert.class)
|
||||
@DictFormat("mes_record_status") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
||||
private Integer status;
|
||||
@Schema(description = "工序", example = "2")
|
||||
@ExcelProperty(value = "工序", converter = DictConvert.class)
|
||||
@DictFormat("mes_org_type") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
||||
private String orgType;
|
||||
|
||||
@Schema(description = "白班/夜班", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@ExcelProperty(value = "白班/夜班", converter = DictConvert.class)
|
||||
@DictFormat("mes_group_type") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
||||
private Integer groupType;
|
||||
@Schema(description = "计件时段")
|
||||
@ExcelProperty("计件时段")
|
||||
private String reportTime;
|
||||
|
||||
@Schema(description = "总时长")
|
||||
@ExcelProperty("总时长")
|
||||
private BigDecimal totalTime;
|
||||
|
||||
@Schema(description = "备注", example = "随便")
|
||||
@Schema(description = "报工状态", example = "2")
|
||||
@ExcelProperty(value = "报工状态", converter = DictConvert.class)
|
||||
@DictFormat("mes_record_status") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
||||
private Integer reportStatus;
|
||||
|
||||
@Schema(description = "备注", example = "你猜")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("是否启用")
|
||||
private Boolean isEnable;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "班别", example = "1")
|
||||
@ExcelProperty(value = "班别", converter = DictConvert.class)
|
||||
@DictFormat("mes_group_type") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
||||
private Integer groupType;
|
||||
|
||||
@Schema(description = "报工类型", example = "1")
|
||||
@ExcelProperty(value = "报工类型", converter = DictConvert.class)
|
||||
@DictFormat("mes_produce_report_type") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
||||
private String reportType;
|
||||
|
||||
@Schema(description = "报工日期")
|
||||
@ExcelProperty("报工日期")
|
||||
private LocalDateTime reportDate;
|
||||
|
||||
}
|
||||
@ -1,46 +1,61 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.producereport.vo;
|
||||
|
||||
import cn.iocoder.yudao.module.mes.dal.dataobject.producereport.ProduceReportDetailDO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 生产报工单新增/修改 Request VO")
|
||||
@Data
|
||||
public class ProduceReportSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "6256")
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29099")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "流程实例的编号", example = "2975")
|
||||
@Schema(description = "流程实例编号", example = "12049")
|
||||
private String processInstanceId;
|
||||
|
||||
@Schema(description = "组别ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32137")
|
||||
@NotNull(message = "组别ID不能为空")
|
||||
private Long workTeamId;
|
||||
@Schema(description = "编号")
|
||||
private String reportCode;
|
||||
|
||||
@Schema(description = "班组ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10669")
|
||||
@NotNull(message = "班组ID不能为空")
|
||||
private Long groupId;
|
||||
@Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19983")
|
||||
@NotNull(message = "用户ID不能为空")
|
||||
private Long userId;
|
||||
|
||||
@Schema(description = "报工日期", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "报工日期不能为空")
|
||||
private LocalDateTime reportDate;
|
||||
@Schema(description = "工序ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28795")
|
||||
@NotNull(message = "工序ID不能为空")
|
||||
private Long orgId;
|
||||
|
||||
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "状态不能为空")
|
||||
private Integer status;
|
||||
@Schema(description = "工序", example = "2")
|
||||
private String orgType;
|
||||
|
||||
@Schema(description = "白班/夜班", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "白班/夜班不能为空")
|
||||
private Integer groupType;
|
||||
@Schema(description = "计件时段")
|
||||
private String reportTime;
|
||||
|
||||
@Schema(description = "总时长")
|
||||
private BigDecimal totalTime;
|
||||
|
||||
@Schema(description = "报工状态", example = "2")
|
||||
private Integer reportStatus;
|
||||
|
||||
@Schema(description = "备注", example = "随便")
|
||||
@Schema(description = "备注", example = "你猜")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@Schema(description = "班别", example = "1")
|
||||
private Integer groupType;
|
||||
|
||||
@Schema(description = "报工类型", example = "1")
|
||||
private String reportType;
|
||||
|
||||
private Boolean isEnable;
|
||||
@Schema(description = "报工日期")
|
||||
private LocalDateTime reportDate;
|
||||
|
||||
@Schema(description = "生产报工明细列表")
|
||||
private List<ProduceReportDetailDO> produceReportDetails;
|
||||
@Schema(description = "报工日期字符串")
|
||||
private String reportDateString;
|
||||
}
|
||||
Loading…
Reference in New Issue