diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/CraftInfo.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/CraftInfo.java new file mode 100644 index 0000000..7698dc9 --- /dev/null +++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/entity/CraftInfo.java @@ -0,0 +1,137 @@ +package com.mt.wms.core.dal.entity; + +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.extension.activerecord.Model; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; + +import java.io.Serializable; +import java.time.LocalDateTime; + +/** + *

+ * 设备工艺信息 + *

+ * + * @author mt + * @since 2021-12-09 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@Accessors(chain = true) +@TableName("t_craft_info") +public class CraftInfo extends Model { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 删除标志,是否有效:1 可用 0不可用,2停止 + */ + @TableField("valid") + @TableLogic + private Integer valid; + + /** + * 添加时间,入库时间 + */ + @TableField("create_time") + private LocalDateTime createTime; + + /** + * 创建人id + */ + @TableField("creator_id") + private Integer creatorId; + + /** + * 更新人id + */ + @TableField("updater_id") + private Integer updaterId; + + /** + * 修改时间,更具修改时间来判断下次执行顺序,第一次修改时间和新增时间相同 + */ + @TableField("update_time") + private LocalDateTime updateTime; + + /** + * 版本号 默认为 1 + */ + @TableField("version") + @Version + private String version; + + /** + * 状态,0:可用,1:不可用 + */ + @TableField("status") + private Integer status; + + /** + * 内部编码,系统自动生成 + */ + @TableField("inter_code") + private String interCode; + + /** + * 工艺号 + */ + @TableField("craft_code") + private String craftCode; + + /** + * 编码 + */ + @TableField("code") + private String code; + + /** + * 对应PLC值 + */ + @TableField("plc_value") + private Integer plcValue; + + /** + * 说明 + */ + @TableField("content") + private String content; + + + public static final String ID = "id"; + + public static final String VALID = "valid"; + + public static final String CREATE_TIME = "create_time"; + + public static final String CREATOR_ID = "creator_id"; + + public static final String UPDATER_ID = "updater_id"; + + public static final String UPDATE_TIME = "update_time"; + + public static final String VERSION = "version"; + + public static final String STATUS = "status"; + + public static final String INTER_CODE = "inter_code"; + + public static final String CRAFT_CODE = "craft_code"; + + public static final String CODE = "code"; + + public static final String PLC_VALUE = "plc_value"; + + public static final String CONTENT = "content"; + + @Override + protected Serializable pkVal() { + return this.id; + } + +} diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/CraftInfoMapper.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/CraftInfoMapper.java new file mode 100644 index 0000000..03289f5 --- /dev/null +++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/CraftInfoMapper.java @@ -0,0 +1,16 @@ +package com.mt.wms.core.dal.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mt.wms.core.dal.entity.CraftInfo; + +/** + *

+ * 设备工艺信息 Mapper 接口 + *

+ * + * @author mt + * @since 2021-12-09 + */ +public interface CraftInfoMapper extends BaseMapper { + +} diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/CraftInfoMapper.xml b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/CraftInfoMapper.xml new file mode 100644 index 0000000..953ee3e --- /dev/null +++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/mapper/CraftInfoMapper.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, craft_code, code, + plc_value, content + + + diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/CraftInfoServiceBiz.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/CraftInfoServiceBiz.java new file mode 100644 index 0000000..087fa8c --- /dev/null +++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/CraftInfoServiceBiz.java @@ -0,0 +1,16 @@ +package com.mt.wms.core.dal.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.mt.wms.core.dal.entity.CraftInfo; + +/** + *

+ * 设备工艺信息 服务类 + *

+ * + * @author mt + * @since 2021-12-09 + */ +public interface CraftInfoServiceBiz extends IService { + +} diff --git a/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/CraftInfoServiceBizImpl.java b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/CraftInfoServiceBizImpl.java new file mode 100644 index 0000000..af0e7d9 --- /dev/null +++ b/6.program/wms-core/src/main/java/com/mt/wms/core/dal/service/impl/CraftInfoServiceBizImpl.java @@ -0,0 +1,20 @@ +package com.mt.wms.core.dal.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.mt.wms.core.dal.entity.CraftInfo; +import com.mt.wms.core.dal.mapper.CraftInfoMapper; +import com.mt.wms.core.dal.service.CraftInfoServiceBiz; +import org.springframework.stereotype.Service; + +/** + *

+ * 设备工艺信息 服务实现类 + *

+ * + * @author mt + * @since 2021-12-09 + */ +@Service +public class CraftInfoServiceBizImpl extends ServiceImpl implements CraftInfoServiceBiz { + +}