添加工艺表单供加工单创建时使用。

This commit is contained in:
徐晨晨 2021-12-09 16:25:20 +08:00
parent 9c4e091956
commit 4abf2d23aa
5 changed files with 217 additions and 0 deletions

View File

@ -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;
/**
* <p>
* 设备工艺信息
* </p>
*
* @author mt
* @since 2021-12-09
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_craft_info")
public class CraftInfo extends Model<CraftInfo> {
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;
}
}

View File

@ -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;
/**
* <p>
* 设备工艺信息 Mapper 接口
* </p>
*
* @author mt
* @since 2021-12-09
*/
public interface CraftInfoMapper extends BaseMapper<CraftInfo> {
}

View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mt.wms.core.dal.mapper.CraftInfoMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.mt.wms.core.dal.entity.CraftInfo">
<id column="id" property="id"/>
<result column="valid" property="valid"/>
<result column="create_time" property="createTime"/>
<result column="creator_id" property="creatorId"/>
<result column="updater_id" property="updaterId"/>
<result column="update_time" property="updateTime"/>
<result column="version" property="version"/>
<result column="status" property="status"/>
<result column="inter_code" property="interCode"/>
<result column="craft_code" property="craftCode"/>
<result column="code" property="code"/>
<result column="plc_value" property="plcValue"/>
<result column="content" property="content"/>
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, valid, create_time, creator_id, updater_id, update_time, version, status, inter_code, craft_code, code,
plc_value, content
</sql>
</mapper>

View File

@ -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;
/**
* <p>
* 设备工艺信息 服务类
* </p>
*
* @author mt
* @since 2021-12-09
*/
public interface CraftInfoServiceBiz extends IService<CraftInfo> {
}

View File

@ -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;
/**
* <p>
* 设备工艺信息 服务实现类
* </p>
*
* @author mt
* @since 2021-12-09
*/
@Service
public class CraftInfoServiceBizImpl extends ServiceImpl<CraftInfoMapper, CraftInfo> implements CraftInfoServiceBiz {
}