Merge branch 'test' of http://git.estsh.com/i3-IMPP/i3plus-pojo into test
commit
9e0d03629c
@ -0,0 +1,114 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :物料关键数据关系记录
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-05-15
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Inheritance(strategy = InheritanceType.JOINED)
|
||||
@Table(name = "MES_KP_DATA_RECORD")
|
||||
@Api("物料关键数据关系记录")
|
||||
public class MesKpDataRecord extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 8243089140216459544L;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "KEY_DATA_CODE")
|
||||
@ApiParam("关键数据代码")
|
||||
private String keyDataCode;
|
||||
|
||||
@Column(name = "KEY_DATA_NAME")
|
||||
@ApiParam("关键数据名称")
|
||||
private String keyDataName;
|
||||
|
||||
@Column(name = "KEY_DATA_COUNT")
|
||||
@ApiParam("关键数据数量")
|
||||
private Integer keyDataCount;
|
||||
|
||||
@Column(name = "UPPER_LIMIT", columnDefinition = "decimal(18,8)")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam("数据上限")
|
||||
private Double upperLimit;
|
||||
|
||||
@Column(name = "LOWER_LIMIT", columnDefinition = "decimal(18,8)")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam("数据下限")
|
||||
private Double lowerLimit;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "TORQUE_GROUP")
|
||||
@ApiParam("扭矩组")
|
||||
private String torqueGroup;
|
||||
|
||||
@Column(name = "TORQUE_GROUP_SEQ")
|
||||
@ApiParam("扭矩组顺序")
|
||||
private Integer torqueGroupSeq;
|
||||
|
||||
@Column(name = "TORQUE")
|
||||
@ApiParam("扭矩项")
|
||||
private String torque;
|
||||
|
||||
@Column(name = "TORQUE_SEQ")
|
||||
@ApiParam("扭矩项顺序")
|
||||
private Integer torqueSeq;
|
||||
|
||||
@Column(name = "JOB_ID")
|
||||
@ApiParam("JOB_ID")
|
||||
private Integer jobId;
|
||||
|
||||
@Column(name = "LAST_TIGHTENING_ID")
|
||||
@ApiParam("最后一次扭矩id")
|
||||
private Long lastTighteningId;
|
||||
|
||||
@Column(name = "TORQUE_VALUE")
|
||||
@ApiParam("扭矩值")
|
||||
private Double torqueValue;
|
||||
|
||||
@Column(name = "RESULT")
|
||||
@ApiParam("采集结果")
|
||||
private Integer result;
|
||||
|
||||
@Column(name = "ACTUAL_NUM")
|
||||
@ApiParam("实采个数")
|
||||
private Integer actualNum;;
|
||||
|
||||
public double getKeyDataCountVal() {
|
||||
return this.keyDataCount == null ? 0 : this.keyDataCount;
|
||||
}
|
||||
|
||||
public double getUpperLimitVal() {
|
||||
return this.upperLimit == null ? 0.0d : this.upperLimit;
|
||||
}
|
||||
|
||||
public double getLowerLimitVal() {
|
||||
return this.lowerLimit == null ? 0.0d : this.lowerLimit;
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesKpDataRecord;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: jokelin
|
||||
* @Date: 2021/3/25 2:00 PM
|
||||
* @Modify:
|
||||
*/
|
||||
public interface MesKpDataRecordRepository extends BaseRepository<MesKpDataRecord, Long> {
|
||||
}
|
Loading…
Reference in New Issue