fix feeding record
parent
1b2ad66e16
commit
cf4edd9277
@ -0,0 +1,60 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.feedingrecord.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
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.*;
|
||||
|
||||
@Schema(description = "管理后台 - 投料记录明细 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class FeedingRecordDetailRespVO {
|
||||
|
||||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2941")
|
||||
@ExcelProperty("id")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "记录id", example = "5186")
|
||||
@ExcelProperty("记录id")
|
||||
private Long recordId;
|
||||
@Schema(description = "记录", example = "997")
|
||||
@ExcelProperty("记录")
|
||||
private String recordCode;
|
||||
|
||||
@Schema(description = "原料id", example = "19133")
|
||||
private Long itemId;
|
||||
@Schema(description = "原料", example = "19133")
|
||||
@ExcelProperty("原料")
|
||||
private String itemName;
|
||||
|
||||
@Schema(description = "重量")
|
||||
@ExcelProperty("重量")
|
||||
private BigDecimal weight;
|
||||
|
||||
@Schema(description = "单位", example = "8197")
|
||||
@ExcelProperty("单位")
|
||||
private Long unitId;
|
||||
@Schema(description = "单位", example = "27598")
|
||||
@ExcelProperty("单位")
|
||||
private String unitName;
|
||||
|
||||
@Schema(description = "记录人", example = "14853")
|
||||
@ExcelProperty("记录人")
|
||||
private Long userId;
|
||||
@Schema(description = "记录人", example = "14853")
|
||||
@ExcelProperty("记录人")
|
||||
private String userName;
|
||||
|
||||
@Schema(description = "投料时间")
|
||||
@ExcelProperty("投料时间")
|
||||
private LocalDateTime feedingTime;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.feedingrecord.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum FeedingStatusEnum {
|
||||
|
||||
作废("3"),
|
||||
提交("2"),
|
||||
草稿("1");
|
||||
|
||||
|
||||
private final String value;
|
||||
|
||||
// 一个可选的方法,用于根据整数值获取对应的枚举实例
|
||||
public static FeedingStatusEnum fromValue(String value) {
|
||||
for (FeedingStatusEnum status : FeedingStatusEnum.values()) {
|
||||
if (status.getValue() .equals(value) ) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown value: " + value);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.feedingrecord.vo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum FeedingTypeEnum {
|
||||
|
||||
领料("org"),
|
||||
湿废品("wet"),
|
||||
干废品("dry");
|
||||
|
||||
|
||||
private final String value;
|
||||
|
||||
// 一个可选的方法,用于根据整数值获取对应的枚举实例
|
||||
public static FeedingTypeEnum fromValue(String value) {
|
||||
for (FeedingTypeEnum status : FeedingTypeEnum.values()) {
|
||||
if (status.getValue() .equals(value)) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unknown value: " + value);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue