添加apms检验结果表生成代码,优化订单相关和apms
This commit is contained in:
@@ -0,0 +1,129 @@
|
||||
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>
|
||||
* apms推送检验结果表
|
||||
* </p>
|
||||
*
|
||||
* @author mt
|
||||
* @since 2021-11-19
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("t_apms_check_result")
|
||||
public class ApmsCheckResult extends Model<ApmsCheckResult> {
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* 生产单号
|
||||
*/
|
||||
@TableField("sheet_no")
|
||||
private String sheetNo;
|
||||
|
||||
/**
|
||||
* 标识卡号
|
||||
*/
|
||||
@TableField("iden_card_num")
|
||||
private String idenCardNum;
|
||||
|
||||
/**
|
||||
* 硬度检验结果(合格、不合格、返工、作废)
|
||||
*/
|
||||
@TableField("hardness")
|
||||
private String hardness;
|
||||
|
||||
/**
|
||||
* 金相检验结果(合格、不合格)
|
||||
*/
|
||||
@TableField("metallography")
|
||||
private String metallography;
|
||||
|
||||
/**
|
||||
* 心部硬度检验值
|
||||
*/
|
||||
@TableField("heart_hardness")
|
||||
private Float heartHardness;
|
||||
|
||||
|
||||
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 SHEET_NO = "sheet_no";
|
||||
|
||||
public static final String IDEN_CARD_NUM = "iden_card_num";
|
||||
|
||||
public static final String HARDNESS = "hardness";
|
||||
|
||||
public static final String METALLOGRAPHY = "metallography";
|
||||
|
||||
public static final String HEART_HARDNESS = "heart_hardness";
|
||||
|
||||
@Override
|
||||
protected Serializable pkVal() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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.ApmsCheckResult;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* apms推送检验结果表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author mt
|
||||
* @since 2021-11-19
|
||||
*/
|
||||
public interface ApmsCheckResultMapper extends BaseMapper<ApmsCheckResult> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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.ApmsCheckResultMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.mt.wms.core.dal.entity.ApmsCheckResult">
|
||||
<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="sheet_no" property="sheetNo"/>
|
||||
<result column="iden_card_num" property="idenCardNum"/>
|
||||
<result column="hardness" property="hardness"/>
|
||||
<result column="metallography" property="metallography"/>
|
||||
<result column="heart_hardness" property="heartHardness"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
id, valid, create_time, creator_id, updater_id, update_time, version, sheet_no, iden_card_num, hardness,
|
||||
metallography, heart_hardness
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
@@ -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.ApmsCheckResult;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* apms推送检验结果表 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author mt
|
||||
* @since 2021-11-19
|
||||
*/
|
||||
public interface ApmsCheckResultServiceBiz extends IService<ApmsCheckResult> {
|
||||
|
||||
}
|
||||
@@ -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.ApmsCheckResult;
|
||||
import com.mt.wms.core.dal.mapper.ApmsCheckResultMapper;
|
||||
import com.mt.wms.core.dal.service.ApmsCheckResultServiceBiz;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* apms推送检验结果表 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author mt
|
||||
* @since 2021-11-19
|
||||
*/
|
||||
@Service
|
||||
public class ApmsCheckResultServiceBizImpl extends ServiceImpl<ApmsCheckResultMapper, ApmsCheckResult> implements ApmsCheckResultServiceBiz {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user