fix mes bug
parent
621fceebfa
commit
adb9b920e1
@ -0,0 +1,30 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.changerecord.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 变更类型枚举**/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum ChangeTypeEnum {
|
||||
|
||||
创建("创建"),
|
||||
编辑("编辑"),
|
||||
删除("删除"),
|
||||
提交("提交"),
|
||||
审核("审核");
|
||||
|
||||
private final String value;
|
||||
|
||||
// 一个可选的方法,用于根据整数值获取对应的枚举实例
|
||||
public static ChangeTypeEnum fromValue(String value) {
|
||||
for (ChangeTypeEnum status : ChangeTypeEnum.values()) {
|
||||
if (status.value.equals(value)) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown value: " + value);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.producereportplan.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 报工分配计划 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ReportPlanSummaryRespVO {
|
||||
|
||||
@Schema(description = "计划id", example = "30035")
|
||||
private Long planId;
|
||||
@Schema(description = "计划id", example = "30035")
|
||||
@ExcelProperty("计划")
|
||||
private String planCode;
|
||||
|
||||
@Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14517")
|
||||
private Long productId;
|
||||
@Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "14517")
|
||||
@ExcelProperty("产品")
|
||||
private String productName;
|
||||
|
||||
@Schema(description = "成品数量")
|
||||
@ExcelProperty("成品数量")
|
||||
private BigDecimal totalQualityNumber;
|
||||
|
||||
@Schema(description = "废品数量")
|
||||
@ExcelProperty("废品数量")
|
||||
private BigDecimal totalWasteNumber;
|
||||
|
||||
@Schema(description = "计件时间")
|
||||
@ExcelProperty("计件时间")
|
||||
private BigDecimal reportTimeSummary;
|
||||
|
||||
@Schema(description = "总时长")
|
||||
@ExcelProperty("总时长")
|
||||
private BigDecimal totalTimeSummary;
|
||||
|
||||
@Schema(description = "工序类型")
|
||||
@ExcelProperty("工序类型")
|
||||
private String orgType;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue