【task 1436 工步-关键件绑定校验并转过程条码】

yun-zuoyi
zcg 5 years ago
parent eefb472117
commit 7aecf9dcc0

@ -4063,75 +4063,4 @@ public class MesEnumUtil {
return tmp;
}
}
/**
* JIT
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_QUEUE_JIT_ACTUAL_STATUS {
CREATE(10, "创建"),
LANDED(20, "下达"),
CANCEL(30, "取消");
private int value;
private String description;
MES_QUEUE_JIT_ACTUAL_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* JIT
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_QUEUE_JIT_ACTUAL_SPECIAL_FLAG {
NORMAL(10, "正常"),
EMPTYING(20, "放空");
private int value;
private String description;
MES_QUEUE_JIT_ACTUAL_SPECIAL_FLAG(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -0,0 +1,55 @@
package cn.estsh.i3plus.pojo.mes.pcn.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.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/3/9 0009 - 17:52
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PROD_SCATTER_CFG_BOM")
@Api("散件产品配置明细")
public class MesProdScatterCfgBom extends BaseBean implements Serializable {
@Column(name = "SP_CFG_CODE")
@ApiParam("散件配置编码")
private String spCfgCode;
@Column(name = "PRODUCE_CTGY_CODE")
@ApiParam("产品位置代码")
private String produceCtgyCode;
@Column(name = "PART_NO")
@ApiParam("散件产品代码")
private String partNo;
@Column(name = "ITEM_PART_NO")
@ApiParam("原材料物料号")
private String itemPartNo;
@Column(name = "QTY")
@ApiParam("用量")
private BigDecimal qty;
@Column(name = "IS_KEY_PART")
@ApiParam("是否关键件")
private Integer isKeyPart ;
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.mes.pcn.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesProdScatterCfgBom;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/3/9 0009 - 18:03
*/
@Repository
public interface MesProdScatterCfgBomRepository extends BaseRepository<MesProdScatterCfgBom, Long> {
}

@ -0,0 +1,55 @@
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.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/3/9 0009 - 17:58
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PROD_SCATTER_CFG_BOM")
@Api("散件产品配置明细")
public class MesProdScatterCfgBom extends BaseBean implements Serializable {
@Column(name = "SP_CFG_CODE")
@ApiParam("散件配置编码")
private String spCfgCode;
@Column(name = "PRODUCE_CTGY_CODE")
@ApiParam("产品位置代码")
private String produceCtgyCode;
@Column(name = "PART_NO")
@ApiParam("散件产品代码")
private String partNo;
@Column(name = "ITEM_PART_NO")
@ApiParam("原材料物料号")
private String itemPartNo;
@Column(name = "QTY")
@ApiParam("用量")
private BigDecimal qty;
@Column(name = "IS_KEY_PART")
@ApiParam("是否关键件")
private Integer isKeyPart ;
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesProdScatterCfgBom;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : zcg
* @Date : 2020/3/9 0009 - 18:56
*/
@Repository
public interface MesProdScatterCfgBomRepository extends BaseRepository<MesProdScatterCfgBom, Long> {
}
Loading…
Cancel
Save