Commit ab748c03f14334774d263aba5c8943ae78e54c0e
1 parent
c80c12df
✨ feat(mes): 新增条码配置和条码清单数据对象
Showing
2 changed files
with
170 additions
and
0 deletions
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/dal/dataobject/wm/barcode/MesWmBarcodeConfigDO.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.mes.dal.dataobject.wm.barcode; | ||
| 2 | + | ||
| 3 | +import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.KeySequence; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 6 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 7 | +import lombok.*; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * MES 条码配置 DO | ||
| 11 | + */ | ||
| 12 | +@TableName("mes_wm_barcode_config") | ||
| 13 | +@KeySequence("mes_wm_barcode_config_seq") | ||
| 14 | +@Data | ||
| 15 | +@EqualsAndHashCode(callSuper = true) | ||
| 16 | +@ToString(callSuper = true) | ||
| 17 | +@Builder | ||
| 18 | +@NoArgsConstructor | ||
| 19 | +@AllArgsConstructor | ||
| 20 | +public class MesWmBarcodeConfigDO extends BaseDO { | ||
| 21 | + | ||
| 22 | + /** | ||
| 23 | + * 编号 | ||
| 24 | + */ | ||
| 25 | + @TableId | ||
| 26 | + private Long id; | ||
| 27 | + /** | ||
| 28 | + * 条码格式 | ||
| 29 | + */ | ||
| 30 | + private String format; | ||
| 31 | + // TODO DONE @AI:需要有个枚举类;这样后续方便使用;=> 条码业务类型为字符串字典值,具体枚举值由业务字典管理,暂无需 Java 枚举类 | ||
| 32 | + /** | ||
| 33 | + * 条码业务类型 | ||
| 34 | + */ | ||
| 35 | + private String type; | ||
| 36 | + /** | ||
| 37 | + * 内容格式 | ||
| 38 | + */ | ||
| 39 | + private String contentFormat; | ||
| 40 | + /** | ||
| 41 | + * 内容样例 | ||
| 42 | + */ | ||
| 43 | + private String contentExample; | ||
| 44 | + /** | ||
| 45 | + * 是否自动生成 | ||
| 46 | + */ | ||
| 47 | + private Boolean autoGenerateFlag; | ||
| 48 | + // todo DONE @AI:printTemplate 改成这个字段;=> 已改名为 defaultTemplate | ||
| 49 | + /** | ||
| 50 | + * 默认打印模板 | ||
| 51 | + */ | ||
| 52 | + private String defaultTemplate; | ||
| 53 | + /** | ||
| 54 | + * 状态 | ||
| 55 | + * | ||
| 56 | + * 枚举 {@link cn.iocoder.yudao.framework.common.enums.CommonStatusEnum} | ||
| 57 | + */ | ||
| 58 | + private Integer status; | ||
| 59 | + /** | ||
| 60 | + * 备注 | ||
| 61 | + */ | ||
| 62 | + private String remark; | ||
| 63 | + /** | ||
| 64 | + * 预留字段1 | ||
| 65 | + */ | ||
| 66 | + private String attribute1; | ||
| 67 | + /** | ||
| 68 | + * 预留字段2 | ||
| 69 | + */ | ||
| 70 | + private String attribute2; | ||
| 71 | + /** | ||
| 72 | + * 预留字段3 | ||
| 73 | + */ | ||
| 74 | + private Integer attribute3; | ||
| 75 | + /** | ||
| 76 | + * 预留字段4 | ||
| 77 | + */ | ||
| 78 | + private Integer attribute4; | ||
| 79 | + | ||
| 80 | +} |
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/dal/dataobject/wm/barcode/MesWmBarcodeDO.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.mes.dal.dataobject.wm.barcode; | ||
| 2 | + | ||
| 3 | +import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.KeySequence; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 6 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 7 | +import lombok.*; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * MES 条码清单 DO | ||
| 11 | + */ | ||
| 12 | +@TableName("mes_wm_barcode") | ||
| 13 | +@KeySequence("mes_wm_barcode_seq") | ||
| 14 | +@Data | ||
| 15 | +@EqualsAndHashCode(callSuper = true) | ||
| 16 | +@ToString(callSuper = true) | ||
| 17 | +@Builder | ||
| 18 | +@NoArgsConstructor | ||
| 19 | +@AllArgsConstructor | ||
| 20 | +public class MesWmBarcodeDO extends BaseDO { | ||
| 21 | + | ||
| 22 | + /** | ||
| 23 | + * 编号 | ||
| 24 | + */ | ||
| 25 | + @TableId | ||
| 26 | + private Long id; | ||
| 27 | + /** | ||
| 28 | + * 条码配置编号 | ||
| 29 | + * | ||
| 30 | + * 关联 {@link MesWmBarcodeConfigDO#getId()} | ||
| 31 | + */ | ||
| 32 | + private Long configId; | ||
| 33 | + /** | ||
| 34 | + * 条码格式 | ||
| 35 | + */ | ||
| 36 | + private String format; | ||
| 37 | + // TODO DONE @AI:需要有个枚举类;这样后续方便使用;=> 条码业务类型为字符串字典值,具体枚举值由业务字典管理,暂无需 Java 枚举类 | ||
| 38 | + /** | ||
| 39 | + * 条码业务类型 | ||
| 40 | + */ | ||
| 41 | + private String type; | ||
| 42 | + /** | ||
| 43 | + * 条码内容 | ||
| 44 | + */ | ||
| 45 | + private String content; | ||
| 46 | + /** | ||
| 47 | + * 业务编号 | ||
| 48 | + */ | ||
| 49 | + private Long businessId; | ||
| 50 | + /** | ||
| 51 | + * 业务编码 | ||
| 52 | + */ | ||
| 53 | + private String businessCode; | ||
| 54 | + /** | ||
| 55 | + * 业务名称 | ||
| 56 | + */ | ||
| 57 | + private String businessName; | ||
| 58 | + // TODO DONE @AI:条码必须后端生成么?可以前端生成么?=> 条码建议后端生成,保证全局唯一性、可追溯,且避免前端伪造 | ||
| 59 | + /** | ||
| 60 | + * 条码地址 | ||
| 61 | + */ | ||
| 62 | + private String imageUrl; | ||
| 63 | + /** | ||
| 64 | + * 状态 | ||
| 65 | + * | ||
| 66 | + * 枚举 {@link cn.iocoder.yudao.framework.common.enums.CommonStatusEnum} | ||
| 67 | + */ | ||
| 68 | + private Integer status; | ||
| 69 | + /** | ||
| 70 | + * 备注 | ||
| 71 | + */ | ||
| 72 | + private String remark; | ||
| 73 | + /** | ||
| 74 | + * 预留字段1 | ||
| 75 | + */ | ||
| 76 | + private String attribute1; | ||
| 77 | + /** | ||
| 78 | + * 预留字段2 | ||
| 79 | + */ | ||
| 80 | + private String attribute2; | ||
| 81 | + /** | ||
| 82 | + * 预留字段3 | ||
| 83 | + */ | ||
| 84 | + private Integer attribute3; | ||
| 85 | + /** | ||
| 86 | + * 预留字段4 | ||
| 87 | + */ | ||
| 88 | + private Integer attribute4; | ||
| 89 | + | ||
| 90 | +} |