检测等级库表修改,增加检测长度、缩率等信息

This commit is contained in:
hy2250089 2020-03-23 19:06:08 +08:00
parent 6d569bc913
commit 587def8f1f
3 changed files with 101 additions and 5 deletions

View File

@ -5,7 +5,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
<id column="id" jdbcType="INTEGER" property="id" /> <result column="id" jdbcType="INTEGER" property="id" />
<result column="operator_id" jdbcType="INTEGER" property="operatorId" /> <result column="operator_id" jdbcType="INTEGER" property="operatorId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
@ -15,6 +15,10 @@
<result column="batch_det_id" jdbcType="INTEGER" property="batchDetId" /> <result column="batch_det_id" jdbcType="INTEGER" property="batchDetId" />
<result column="batch_det_code" jdbcType="VARCHAR" property="batchDetCode" /> <result column="batch_det_code" jdbcType="VARCHAR" property="batchDetCode" />
<result column="grade" jdbcType="INTEGER" property="grade" /> <result column="grade" jdbcType="INTEGER" property="grade" />
<result column="len" jdbcType="REAL" property="len" />
<result column="delivery_len" jdbcType="REAL" property="deliveryLen" />
<result column="detection_len" jdbcType="REAL" property="detectionLen" />
<result column="shrinkage" jdbcType="VARCHAR" property="shrinkage" />
<result column="winding_machine_id" jdbcType="INTEGER" property="windingMachineId" /> <result column="winding_machine_id" jdbcType="INTEGER" property="windingMachineId" />
<result column="company_id" jdbcType="INTEGER" property="companyId" /> <result column="company_id" jdbcType="INTEGER" property="companyId" />
</resultMap> </resultMap>

View File

@ -62,6 +62,28 @@ public class ProductBatchDetect {
*/ */
private Integer grade; private Integer grade;
/**
* 原先提供长度单位米
*/
private Float len;
/**
* 配送长度单位米
*/
@Column(name = "delivery_len")
private Float deliveryLen;
/**
* 现有检测长度
*/
@Column(name = "detection_len")
private Float detectionLen;
/**
* 缩率%现有检测长度/原先长度
*/
private String shrinkage;
/** /**
* 打卷机id关联表mt_alone_winding_machine * 打卷机id关联表mt_alone_winding_machine
*/ */
@ -229,6 +251,79 @@ public class ProductBatchDetect {
this.grade = grade; this.grade = grade;
} }
/**
* 获取原先提供长度单位米
*
* @return len - 原先提供长度单位米
*/
public Float getLen() {
return len;
}
/**
* 设置原先提供长度单位米
*
* @param len 原先提供长度单位米
*/
public void setLen(Float len) {
this.len = len;
}
/**
* 获取配送长度单位米
*
* @return delivery_len - 配送长度单位米
*/
public Float getDeliveryLen() {
return deliveryLen;
}
/**
* 设置配送长度单位米
*
* @param deliveryLen 配送长度单位米
*/
public void setDeliveryLen(Float deliveryLen) {
this.deliveryLen = deliveryLen;
}
/**
* 获取现有检测长度
*
* @return detection_len - 现有检测长度
*/
public Float getDetectionLen() {
return detectionLen;
}
/**
* 设置现有检测长度
*
* @param detectionLen 现有检测长度
*/
public void setDetectionLen(Float detectionLen) {
this.detectionLen = detectionLen;
}
/**
* 获取缩率%现有检测长度/原先长度
*
* @return shrinkage - 缩率%现有检测长度/原先长度
*/
public String getShrinkage() {
return shrinkage;
}
/**
* 设置缩率%现有检测长度/原先长度
*
* @param shrinkage 缩率%现有检测长度/原先长度
*/
public void setShrinkage(String shrinkage) {
this.shrinkage = shrinkage;
}
/** /**
* 获取打卷机id关联表mt_alone_winding_machine * 获取打卷机id关联表mt_alone_winding_machine
* *

View File

@ -22,11 +22,8 @@ public class BillCodeGenerator {
configurer.setModuleName("/wms-ware-task"); configurer.setModuleName("/wms-ware-task");
//设置需要生成的表 //设置需要生成的表
configurer.getTables().add(new Table("mt_alone_materials_info",null,"id","Integer")); configurer.getTables().add(new Table("mt_alone_product_batch_detect",null,"id","Integer"));
configurer.getTables().add(new Table("mt_alone_product_process_bom",null,"id","Integer"));
configurer.getTables().add(new Table("mt_alone_process_bom",null,"id","Integer"));
//生成代码 //生成代码
Generator.genCode(configurer); Generator.genCode(configurer);
} }