fix task
parent
cf9f50266f
commit
c45a0f8df6
@ -0,0 +1,34 @@
|
||||
package cn.iocoder.yudao.module.erp.framework.bean;
|
||||
|
||||
import cn.hutool.core.util.ObjUtil;
|
||||
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum ProductTypeEnum implements IntArrayValuable {
|
||||
|
||||
ITEM(1, "原料"),
|
||||
PRODUCT(2, "产品");
|
||||
|
||||
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ProductTypeEnum::getTypeId).toArray();
|
||||
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
private final Integer typeId;
|
||||
/**
|
||||
* 名
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
@Override
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package cn.iocoder.yudao.module.mes.controller.admin.task.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 生产任务单明细 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class TaskDetailRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2696")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4041")
|
||||
@ExcelProperty("产品ID")
|
||||
private Long productId;
|
||||
@Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "4041")
|
||||
@ExcelProperty("产品")
|
||||
private String productName;
|
||||
|
||||
@Schema(description = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13695")
|
||||
@ExcelProperty("单位ID")
|
||||
private Long unitId;
|
||||
@Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "13695")
|
||||
@ExcelProperty("单位")
|
||||
private String unitName;
|
||||
|
||||
@Schema(description = "task ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12825")
|
||||
@ExcelProperty("task ID")
|
||||
private Long taskId;
|
||||
|
||||
@Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("数量")
|
||||
private Long number;
|
||||
|
||||
@Schema(description = "打包要求(每包/个)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("打包要求(每包/个)")
|
||||
private Long packageSize;
|
||||
|
||||
@Schema(description = "项目名称", example = "赵六")
|
||||
@ExcelProperty("项目名称")
|
||||
private String projectName;
|
||||
|
||||
@Schema(description = "技术要求")
|
||||
@ExcelProperty("技术要求")
|
||||
private String techRequirements;
|
||||
|
||||
@Schema(description = "备注", example = "你猜")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue