yun-zuoyi
许心洁 6 years ago
commit cce413945d

@ -181,6 +181,10 @@ public class AndonManageQueue extends BaseManageQueue {
@ApiParam(value = "放行说明")
private String openInfo;
@Column(name = "IS_OVER_TIME")
@ApiParam(value = "是否超时")
private Integer overTimeFlag;
@Transient
@ApiParam(value = "安灯状态集合")
private List<String> statusCodeList;

@ -0,0 +1,46 @@
package cn.estsh.i3plus.pojo.andon.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
/**
* @Description: model
* @Reference:
* @Author: Crish
* @CreateDate:2019-11-12-10:21
* @Modify:
**/
@Data
public class AndonBoardModel {
@ApiParam("安灯类型")
private String alarmCode;
@ApiParam("安灯类型名称")
private String alarmName;
@ApiParam("安灯正常处理的次数")
private Integer inTime;
@ApiParam("安灯超时次数")
private Integer overTime;
@ApiParam("安灯总次数")
private Integer totalTime;
public int getTotalTimeVal() {
return totalTime == null ? 0 : totalTime;
}
public int getOverTimeVal() {
return overTime == null ? 0 : overTime;
}
public int getInTime() {
return inTime == null ? 0 : inTime;
}
}

@ -12,6 +12,123 @@ import org.apache.commons.lang3.StringUtils;
**/
public class AndonEnumUtil {
/**
*
* 10 - 20 - 30 -
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum NOTICE_OVER_TIME_FLAG{
CALL(1,"呼叫超时"),
SIGN(2,"响应超时");
private int value;
private String description;
NOTICE_OVER_TIME_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;
}
public static int descriptionOfValue(String val) {
int tmp = -1;
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].description, val)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* 广
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum BROADCAST_CUSTOM_CONDITION {
CALL("{A}","workCenterCode","产线"),
SIGN("{B}","workCellCode","工位"),
RESOLVE("{C}","alarmCode","安灯类型");
private String value;
private String code;
private String description;
BROADCAST_CUSTOM_CONDITION(String value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public String getValue() {
return value;
}
public String getCode(){ return code; }
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].value, val)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String codeOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].code, val)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String descriptionOfValue(String desc) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].description, desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String descriptionOfCode(String desc) {
String tmp = "";
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].description, desc)) {
tmp = values()[i].code;
}
}
return tmp;
}
}
/**
*
* 10-20-
*/
@ -517,8 +634,6 @@ public class AndonEnumUtil {
}
}
/**
*
* 10 - 20 - 30 -

@ -2055,4 +2055,38 @@ public class MesPcnEnumUtil {
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PRODUCT_PATTERN_PARAMS {
MATCH_WORK_ORDER(10, "匹配工单"),
API_WORK_ORDER(20, "读取接口工单"),
SN_WORK_ORDER(30, "获取条码对应工单");
private int value;
private String description;
PRODUCT_PATTERN_PARAMS(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;
}
}
}

@ -638,8 +638,10 @@ public class WmsEnumUtil {
KT_REWORK(380, "KT_REWORK", "KT返工"),
KT_MISCALCULATION(390, "KT_MISCALCULATION", "KT误判"),
KT_SORTING(400, "KT_SORTING", "KT分选"),
VDA_STATIC_CS(400,"VDA_STATIC_CS", "静态盘点"),
VDA_CS_SEARCH(410,"VDA_CS_SEARCH", "VDA盘点查询");
VDA_STATIC_CS(410,"VDA_STATIC_CS", "静态盘点"),
VDA_CS_SEARCH(420,"VDA_CS_SEARCH", "VDA盘点查询"),
KT_DEFINITE(430,"KT_DEFINITE", "KT合格"),
VDA_PACKAGE_MANAGE(440,"VDA_PACKAGE_MANAGE", "VDA编组管理");
private int value;
@ -821,7 +823,8 @@ public class WmsEnumUtil {
VDA_SN_("VDA_SN_MERGE", "VDA条码合并"),
VDA_SCAN_QUERY("VDA_SCAN_QUERY", "VDA扫描查询"),
VDA_TRANSACTION_QUERY("VDA_TRANSACTION_QUERY","VDA事务查询"),
VDA_STATIC_CS("VDA_STATIC_CS", "VDA静态盘点");
VDA_STATIC_CS("VDA_STATIC_CS", "VDA静态盘点"),
VDA_PACKAGE_MANAGE("VDA_PACKAGE_MANAGE", "VDA编组管理");
private String value;
private String description;

@ -0,0 +1,43 @@
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;
/**
* @Description :mes
* @Reference :
* @Author : yiming.gu
* @CreateDate : 2019-05-20
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_CUSTOMER_PART")
@Api("客户零件关系")
public class MesCustomerPart extends BaseBean {
@Column(name = "CUSTOMER_CODE")
@ApiParam("客户代码")
private String customerCode;
@Column(name = "PART_NO")
@ApiParam("物料号")
private String partNo;
@Column(name = "CUSTOMER_PART_NO")
@ApiParam("客户零件号")
private String customerPartNo;
}

@ -0,0 +1,17 @@
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.MesCustomerPart;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Reference:
* @Author: yiming.gu
* @CreateDate:2019-05-20
* @Modify:
**/
@Repository
public interface MesCustomerPartRepository extends BaseRepository<MesCustomerPart, Long> {
}
Loading…
Cancel
Save