2026-06-24 f4bd1f3c89d906131495a0aca5aaf82966378510
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package cn.iocoder.yudao.module.mes.controller.admin.md.autocode.vo.part;
 
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.time.LocalDateTime;
 
@Schema(description = "管理后台 - MES 编码规则组成 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MesMdAutoCodePartRespVO {
 
    @Schema(description = "分段 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("分段 ID")
    private Long id;
 
    @Schema(description = "规则 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("规则 ID")
    private Long ruleId;
 
    @Schema(description = "分段序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("分段序号")
    private Integer sort;
 
    @Schema(description = "分段类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "分段类型", converter = DictConvert.class)
    @DictFormat("mes_auto_code_part_type")
    private Integer type;
 
    @Schema(description = "分段长度", requiredMode = Schema.RequiredMode.REQUIRED, example = "4")
    @ExcelProperty("分段长度")
    private Integer length;
 
    @Schema(description = "日期格式", example = "yyyyMMdd")
    @ExcelProperty("日期格式")
    private String dateFormat;
 
    @Schema(description = "固定字符", example = "ITEM_")
    @ExcelProperty("固定字符")
    private String fixCharacter;
 
    @Schema(description = "流水号起始值", example = "1")
    @ExcelProperty("流水号起始值")
    private Integer serialStartNo;
 
    @Schema(description = "流水号步长", example = "1")
    @ExcelProperty("流水号步长")
    private Integer serialStep;
 
    @Schema(description = "流水号是否循环", example = "true")
    @ExcelProperty("流水号是否循环")
    private Boolean cycleFlag;
 
    @Schema(description = "循环方式", example = "3")
    @ExcelProperty(value = "循环方式", converter = DictConvert.class)
    @DictFormat("mes_auto_code_cycle_method")
    private Integer cycleMethod;
 
    @Schema(description = "备注", example = "备注")
    @ExcelProperty("备注")
    private String remark;
 
    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
 
}