yun-zuoyi
于学杰 6 years ago
commit b80a5b21ba

@ -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,80 @@
package cn.estsh.i3plus.pojo.andon.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.AndonEnumUtil;
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 javax.persistence.Transient;
/**
* @Description:
* @Reference:
* @Author: Crish
* @CreateDate:2019-11-11-14:23
* @Modify:
**/
@Data
@Entity
@Table(name="ANDON_MESSAGE_RECORD")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api("通知记录")
public class AndonMessageRecord extends BaseBean {
@Column(name = "WORK_CENTER_CODE")
@ApiParam(value = "工作中心")
private String workCenterCode;
@Column(name = "ANDON_ORDER_NO")
@ApiParam(value = "安灯队列编号")
private String andonOrderNo;
@Column(name = "ALARM_CODE")
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class,refForeignKey = "value",value = "description")
@ApiParam(value = "安灯类型")
private String alarmCode;
@Column(name = "STATUS_CODE")
@AnnoOutputColumn(refClass = AndonEnumUtil.ANDON_ACTION_TAG.class,refForeignKey = "code",value = "description")
@ApiParam(value = "安灯状态代码")
private String statusCode;
@Column(name = "RP_OBJECT_CODE")
@ApiParam(value = "通知对象代码")
private String rpObjectCode;
@Transient
@ApiParam(value = "通知对象名称")
private String rpObjectName;
@Column(name = "RP_CODE")
@AnnoOutputColumn(refClass = AndonEnumUtil.NOTICE_MESSAGE_SEND_TYPE.class,refForeignKey = "value",value = "description")
@ApiParam(value = "通知方式")
private String rpCode;
@Column(name = "RP_NAME")
@AnnoOutputColumn(refClass = AndonEnumUtil.NOTICE_MESSAGE_SEND_TYPE.class,refForeignKey = "value",value = "description")
@ApiParam(value = "通知方式名称")
private String rpName;
@Column(name = "RP_LEVEL")
@ApiParam(value = "通知等级")
private String rpLevel;
@Column(name = "IS_SUCCEED")
@ApiParam(value = "成功标识")
private String isSucceed;
@Column(name = "MEMO")
@ApiParam(value = "备注")
private String memo;
}

@ -0,0 +1,46 @@
package cn.estsh.i3plus.pojo.andon.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.AndonEnumUtil;
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:
* @Reference:
* @Author: Crish
* @CreateDate:2019-11-11-14:23
* @Modify:
**/
@Data
@Entity
@Table(name="ANDON_RESPONSE")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api("通知方式")
public class AndonResponse extends BaseBean {
@Column(name = "RESPONSE_CODE")
@AnnoOutputColumn(refClass = AndonEnumUtil.NOTICE_MESSAGE_SEND_TYPE.class,refForeignKey = "value",value = "description")
@ApiParam(value = "通知方式")
private String responseCode;
@Column(name = "RESPONSE_NAME")
@AnnoOutputColumn(refClass = AndonEnumUtil.NOTICE_MESSAGE_SEND_TYPE.class,refForeignKey = "value",value = "description")
@ApiParam(value = "通知名称")
private String responseName;
@Column(name = "RESPONSE_CONTENT")
@ApiParam(value = "通知内容")
private String responseContent;
}

@ -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;
}
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonMessageRecord;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Reference:
* @Author: Crish
* @CreateDate:2019-11-12-14:24
* @Modify:
**/
@Repository
public interface IAndonMessageRecordRepository extends BaseRepository<AndonMessageRecord, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonResponse;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description:
* @Reference:
* @Author: Crish
* @CreateDate:2019-11-11-15:12
* @Modify:
**/
@Repository
public interface IAndonResponseRepository extends BaseRepository<AndonResponse, Long> {
}

@ -20,7 +20,38 @@ import org.apache.commons.lang3.StringUtils;
* @Modify:
**/
public class AndonHqlPack {
/***************** crish 工作单元呼叫原因配置, 处理方法配置, 处理事件原因配置, 事件现象配置 Start ***********/
/**
*
* @param andonResponse
* @return
*/
public static DdlPackBean getAndonResponse(AndonResponse andonResponse) {
DdlPackBean packBean = DdlPackBean.getDdlPackBean();
DdlPreparedPack.getStringEqualPack(andonResponse.getOrganizeCode(), "organizeCode", packBean);
DdlPreparedPack.getStringEqualPack(andonResponse.getResponseCode(), "responseCode", packBean);
return packBean;
}
/**
*
* @param andonMessageRecord
* @return
*/
public static DdlPackBean getAndonMessageRecord(AndonMessageRecord andonMessageRecord) {
DdlPackBean packBean = DdlPackBean.getDdlPackBean();
DdlPreparedPack.getStringEqualPack(andonMessageRecord.getOrganizeCode(), "organizeCode", packBean);
DdlPreparedPack.getStringEqualPack(andonMessageRecord.getAlarmCode(), "alarmCode", packBean);
DdlPreparedPack.getStringEqualPack(andonMessageRecord.getAndonOrderNo(), "andonOrderNo", packBean);
DdlPreparedPack.getStringEqualPack(andonMessageRecord.getRpCode(), "rpCode", packBean);
DdlPreparedPack.getStringEqualPack(andonMessageRecord.getRpObjectCode(), "rpObjectCode", packBean);
DdlPreparedPack.getStringEqualPack(andonMessageRecord.getStatusCode(), "statusCode", packBean);
if(StringUtils.isNotBlank(andonMessageRecord.getCreateDateTimeStart()) || StringUtils.isNotBlank(andonMessageRecord.getCreateDateTimeEnd())){
DdlPreparedPack.timeBuilder(andonMessageRecord.getCreateDateTimeStart(), andonMessageRecord.getCreateDateTimeEnd(), "createDatetime", packBean, true);
}
return packBean;
}
/**
*
* @param andonCellAlarmCause
@ -137,7 +168,6 @@ public class AndonHqlPack {
DdlPreparedPack.getNumEqualPack(andonQueueAttach.getIsValid(),"isValid",packBean);
return packBean;
}
/***************** crish 工作单元呼叫原因配置, 处理方法配置, 处理事件原因配置, 事件现象配置 End ************/
/**

@ -12,6 +12,201 @@ import org.apache.commons.lang3.StringUtils;
**/
public class AndonEnumUtil {
/**
*
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ANDON_SUCCESS_FLAG{
SUCCESS(1, "1","成功"),
FAIL(2, "2","失败");
private int value;
private String code;
private String description;
ANDON_SUCCESS_FLAG(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode(){ return code; }
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 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 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;
}
public static String descriptionOfCode(String val) {
String tmp = "";
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].description, val)) {
tmp = values()[i].code;
}
}
return tmp;
}
}
/**
*
*
*/
@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 {
LINE("{A}","workCenterCode","产线代码"),
LINE_NAME("{B}","workCenterName","产线名称"),
CELL("{C}","workCellCode","工位代码"),
CELL_NAME("{D}","workCellName","工位名称"),
ALARM_CODE("{E}","alarmCode","安灯类型代码"),
ALARM_NAME("{F}","alarmName","安灯类型名称"),
CALL_USER("{G}","callUser","呼叫人名称"),
ALARM_DETAIL("{H}","alarmDetailCode","安灯子类型"),
ALARM_DETAIL_NAME("{L}","alarmDetailNameRdd","安灯子类型名称"),
AC_CODE("{J}","acCode","事件描述代码"),
AC_NAME("{K}","acNameRdd","事件描述名称");
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 +712,6 @@ public class AndonEnumUtil {
}
}
/**
*
* 10 - 20 - 30 -

@ -13,6 +13,44 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil {
/**
* MesIf
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IF_CONNECT_TYPE {
DB("10", "DB"),
WEBSERVICE("20", "webservice "),
RESTFUL("30", "restful");
private String value;
private String description;
IF_CONNECT_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* Mes
*/
@ -26,7 +64,6 @@ public class MesEnumUtil {
MES_PCN_SYNC_CFG("MesPcnSyncCfg", "MES_PCN_SYNC_CFG", "同步配置"),
MES_BUTTON_STATUS("MesButtonStatus", "MES_BUTTON_STATUS", "按钮状态配置表"),
MES_WORK_CELL_PARAM("MesWorkCellParam", "MES_WORK_CELL_PARAM", "工作单元参数"),
MES_STATUS_CFG("MesStatusCfg", "MES_STATUS_CFG", "状态配置"),
MES_EVENT("MesEvent", "MES_EVENT", "事件清单"),
MES_METHOD("MesMethod", "MES_METHOD", "方法清单"),
MES_ACTION("MesAction", "MES_ACTION", "动作"),

@ -13,6 +13,93 @@ import org.apache.commons.lang3.StringUtils;
public class MesPcnEnumUtil {
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_PRODUCE_SN_TYPE {
NORMAL(10, "正常件"),
FIRST_INSPECTION(20, "首检件");
private int value;
private String description;
MES_PRODUCE_SN_TYPE(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;
}
}
/**
* pcn
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_OPERATE_TYPE {
WORKSTATION_SCAN(10, "工位扫描"),
QUALITY_JUDGEMENT(20, "质量判定"),
MATERIAL_DISMANTLING(30, "物料拆解"),
REWORK(40, "返修作业"),
WORKSTATION_MONITORING(50, "工位监控");
private int value;
private String description;
MES_OPERATE_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
// 根据value返回枚举类型,主要在switch中使用
public static MES_OPERATE_TYPE getByValue(int value) {
for (MES_OPERATE_TYPE mesInsertExcel : values()) {
if (mesInsertExcel.getValue() == value) {
return mesInsertExcel;
}
}
return null;
}
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;
}
}
/**
* MesProductEncodeCfg
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -1985,6 +2072,46 @@ public class MesPcnEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STATION_DATA_TYPE {
TABLE("table", "表格"),
TEXT("text", "正常文本"),
EXP_TEXT("exp_text", "异常文本"),
FILE("file", "定制内容文件"),
IMAGE("image", "图片"),
BUTTON("button", "按钮");
private String value;
private String description;
STATION_DATA_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (val.equals(values()[i].value)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ONLINE_SEND_TYPE {
@ -2054,5 +2181,77 @@ public class MesPcnEnumUtil {
}
}
/**
* MES_PACKAGE
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PACKAGE_PACKLEVEL {
FIRST(1, "第一层"),
SECOND(2, "第二层"),
THIRD(3, "第三层"),
FOURTH(4, "第四层");
private int value;
private String description;
PACKAGE_PACKLEVEL(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;
}
}
@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,11 @@ 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编组管理"),
KT_PURCHASE_RC(450,"KT_PURCHASE_RC", "采购收货");
private int value;
@ -821,7 +824,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;
@ -896,7 +900,8 @@ public class WmsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TASK_INFO_STATUS {
CREATE(10, "创建"), FINISH(20, "处理中"), FAIL(30, "已处理");
CREATE(10, "创建"), FINISH(20, "处理中"), FAIL(30, "已处理")
, CLOSE(40, "已关闭");
private int value;
private String description;
@ -929,24 +934,27 @@ public class WmsEnumUtil {
}
}
/**
*
*
* 1=10=20=30=40=50=60=70=
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IS_GENERAL_TASK {
CREATE(10, "CREATE", "创建"),
INIT(20, "INIT", "初始化"),
IS_GENERAL(30, "IS_GENERAL", "已生成"),
NO_GENERAL(40, "NO_GENERAL", "不生成"),
CANCEL(50, "CANCEL", "撤销");
public enum STOCK_SN_STATUS {
CREATE(10, "创建"),
QUALITY_CONTROL(20, "质检中"),
PRE_INSTOCK(30, "待入库"),
INSTOCKED(40, "入库"),
PICKED(50, "配料"),
OUT_STOCK(60, "出库"),
COMMING(80, "在途");
private int value;
private String code;
private String description;
IS_GENERAL_TASK(int value, String code, String description) {
STOCK_SN_STATUS(int value, String description) {
this.value = value;
this.code = code;
this.description = description;
}
@ -958,10 +966,6 @@ public class WmsEnumUtil {
return description;
}
public String getCode() {
return code;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
@ -972,6 +976,10 @@ public class WmsEnumUtil {
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
@ -981,32 +989,25 @@ public class WmsEnumUtil {
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
* 1=10=20=30=40=50=60=70=
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STOCK_SN_STATUS {
CREATE(10, "创建"),
QUALITY_CONTROL(20, "质检中"),
PRE_INSTOCK(30, "待入库"),
INSTOCKED(40, "入库"),
PICKED(50, "配料"),
OUT_STOCK(60, "出库"),
COMMING(80, "在途");
public enum IS_GENERAL_TASK {
CREATE(10, "CREATE", "创建"),
INIT(20, "INIT", "初始化"),
IS_GENERAL(30, "IS_GENERAL", "已生成"),
NO_GENERAL(40, "NO_GENERAL", "不生成"),
CANCEL(50, "CANCEL", "撤销");
private int value;
private String code;
private String description;
STOCK_SN_STATUS(int value, String description) {
IS_GENERAL_TASK(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
@ -1018,6 +1019,10 @@ public class WmsEnumUtil {
return description;
}
public String getCode() {
return code;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
@ -1028,10 +1033,6 @@ public class WmsEnumUtil {
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
@ -1041,8 +1042,11 @@ public class WmsEnumUtil {
}
return tmp;
}
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*/
@ -1354,20 +1358,22 @@ public class WmsEnumUtil {
}
/**
*
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QC_INFO_TYPE {
FEED(10, "进料检验"),
ONLINE(20, "在线检验"),
EMDPRODUCT(30, "成品检验"),
SHIPMENTS(40, "出货检验");
public enum QC_INFO_STATUS {
CREATE(10, "新建"),
FINISH(20, "处理中"),
FAIL(30, "已完成"),
CLOSE(40, "已关闭"),
CANCEL(50, "已取消");
private int value;
private String description;
QC_INFO_TYPE(int value, String description) {
QC_INFO_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
@ -1389,27 +1395,20 @@ public class WmsEnumUtil {
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QC_INFO_STATUS {
CREATE(10, "新建"),
FINISH(20, "处理中"),
FAIL(30, "已完成"),
CLOSE(40, "已关闭"),
CANCEL(50, "已取消");
public enum QC_ITEM_STATUS {
NORMAL(10, "正常"),
CANCELLATION(20, "已处理");
private int value;
private String description;
QC_INFO_STATUS(int value, String description) {
QC_ITEM_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
@ -1432,19 +1431,20 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QC_ITEM_STATUS {
NORMAL(10, "正常"),
CANCELLATION(20, "已处理");
public enum QC_INFO_TYPE {
FEED(10, "进料检验"),
ONLINE(20, "在线检验"),
EMDPRODUCT(30, "成品检验"),
SHIPMENTS(40, "出货检验");
private int value;
private String description;
QC_ITEM_STATUS(int value, String description) {
QC_INFO_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
@ -1466,8 +1466,11 @@ public class WmsEnumUtil {
}
return tmp;
}
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*/
@ -3745,7 +3748,8 @@ public class WmsEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SN_OPERATE_TYPE {
REPORT(10, "REPORT", "生产报工"),
BOXING_ERROR_PROOFING(20, "BOXING_ERROR_PROOFING", "装箱防错");
BOXING_ERROR_PROOFING(20, "BOXING_ERROR_PROOFING", "装箱防错"),
REPORT_CANCEL(30, "REPORT_CANCEL", "报工撤销");
private int value;
private String code;

@ -48,7 +48,7 @@ public class MesPackage extends BaseBean {
private Double packSpecQty;
@Column(name = "UNIT")
@ApiParam("包装规格数量")
@ApiParam("danwei")
private String unit;
@Column(name = "LOT_NO")

@ -0,0 +1,64 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesPackage;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesWorkOrder;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @Author: wangjie
* @CreateDate: 2019/9/23 8:06 PM
* @Description:
**/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("产品包装model")
public class ProdPackageModel {
@ApiParam("工单号")
private String workOrderNo;
@ApiParam("生产线")
private String workCenterCode;
@ApiParam("客户代码")
private String custCode;
@ApiParam("班次")
private String shiftCode;
@ApiParam("物料号")
private String partNo;
@ApiParam("物料名称")
private String partNameRdd;
@ApiParam("单位")
private String unit;
@ApiParam("工单数量")
private Double workOrderQty;
@ApiParam("完成数量")
private Double completeQty;
@ApiParam("包装规格数量")
private Double packSpecQty;
@ApiParam("包装规格")
private String packSpec;
@ApiParam("包装集合")
private List<MesPackage> packageList;
@ApiParam("工单集合")
private List<MesWorkOrder> workOrderList;
}

@ -0,0 +1,38 @@
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;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\13 11:47
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_ACTION_IF")
@Api("动作接口配置")
public class MesActionIf extends BaseBean {
@Column(name = "ACTION_CODE")
@ApiParam("动作代码")
private String actionCode;
@Column(name = "IF_CODE")
@ApiParam("接口代码")
private String ifCode;
}

@ -0,0 +1,46 @@
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;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\13 11:43
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_IF")
@Api("接口清单")
public class MesIf extends BaseBean {
@Column(name = "IF_CODE")
@ApiParam("接口代码")
private String ifCode;
@Column(name = "IF_NAME")
@ApiParam("接口名称")
private String ifName;
@Column(name = "IF_CONNECT_TYPE")
@ApiParam("交互方式")
private String ifConnectType;
@Column(name = "IF_CLASS")
@ApiParam("接口实现类")
private String ifClass;
}

@ -0,0 +1,46 @@
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;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\13 11:40
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_KEY_ACTION")
@Api("关键动作")
public class MesKeyAction extends BaseBean {
@Column(name = "ACTION_CODE")
@ApiParam("动作代码")
private String actionCode;
@Column(name = "ACTION_NAME")
@ApiParam("动作名称")
private String actionName;
@Column(name = "ACTION_DESC")
@ApiParam("动作描述")
private String actionDesc;
@Column(name = "ACTION_CLASS")
@ApiParam("动作关联类")
private String actionClass;
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesActionIf;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\13 11:53
* @Modify:
**/
public interface MesActionIfRepository extends BaseRepository<MesActionIf, Long> {
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesIf;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\13 11:51
* @Modify:
**/
public interface MesIfRepository extends BaseRepository<MesIf, Long> {
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesKeyAction;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\13 11:50
* @Modify:
**/
public interface MesKeyActionRepository extends BaseRepository<MesKeyAction, Long> {
}

@ -973,9 +973,6 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(packSpec.getSpecName())) {
DdlPreparedPack.getStringLikerPack(packSpec.getSpecName(), "specName", packBean);
}
// if (!StringUtils.isEmpty(packSpec.getSpecCode())) {
// DdlPreparedPack.getStringEqualPack(packSpec.getSpecCode(), "parentSpec", packBean);
// }
return packBean;
}
@ -1670,7 +1667,7 @@ public class MesHqlPack {
DdlPreparedPack.getStringEqualPack(mesProdPack.getPartNo(), "partNo", packBean);
}
if (!StringUtils.isEmpty(mesProdPack.getCustomerCode())) {
DdlPreparedPack.getStringEqualPack(mesProdPack.getCustomerCode(), "customerCode", packBean);
DdlPreparedPack.getStringLikerPack(mesProdPack.getCustomerCode(), "customerCode", packBean);
}
if (!StringUtils.isEmpty(mesProdPack.getPackSpec())) {
DdlPreparedPack.getStringLikerPack(mesProdPack.getPackSpec(), "packSpec", packBean);
@ -1746,4 +1743,84 @@ public class MesHqlPack {
"createDatetime", packBean, true);
return packBean;
}
/**
*
* @param mesLabelTemplate
* @param organizeCode
* @return
*/
public static DdlPackBean getMesLabelTemplate(MesLabelTemplate mesLabelTemplate, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesLabelTemplate, organizeCode);
if (!StringUtils.isEmpty(mesLabelTemplate.getTemplateCode())) {
DdlPreparedPack.getStringLikerPack(mesLabelTemplate.getTemplateCode(), "templateCode", packBean);
}
if (!StringUtils.isEmpty(mesLabelTemplate.getTemplateName())) {
DdlPreparedPack.getStringLikerPack(mesLabelTemplate.getTemplateName(), "codeType", packBean);
}
return packBean;
}
/**
*
* @param mesKeyAction
* @param organizeCode
* @return
*/
public static DdlPackBean getMesKeyAction(MesKeyAction mesKeyAction, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesKeyAction, organizeCode);
if (!StringUtils.isEmpty(mesKeyAction.getActionCode())) {
DdlPreparedPack.getStringLikerPack(mesKeyAction.getActionCode(), "actionCode", packBean);
}
if (!StringUtils.isEmpty(mesKeyAction.getActionName())) {
DdlPreparedPack.getStringLikerPack(mesKeyAction.getActionName(), "actionName", packBean);
}
if (!StringUtils.isEmpty(mesKeyAction.getActionDesc())) {
DdlPreparedPack.getStringLikerPack(mesKeyAction.getActionDesc(), "actionDesc", packBean);
}
if (!StringUtils.isEmpty(mesKeyAction.getActionClass())) {
DdlPreparedPack.getStringLikerPack(mesKeyAction.getActionClass(), "actionClass", packBean);
}
return packBean;
}
/**
*
* @param mesActionIf
* @param organizeCode
* @return
*/
public static DdlPackBean getMesActionIf(MesActionIf mesActionIf, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesActionIf, organizeCode);
if (!StringUtils.isEmpty(mesActionIf.getActionCode())) {
DdlPreparedPack.getStringLikerPack(mesActionIf.getActionCode(), "actionCode", packBean);
}
if (!StringUtils.isEmpty(mesActionIf.getIfCode())) {
DdlPreparedPack.getStringLikerPack(mesActionIf.getIfCode(), "ifCode", packBean);
}
return packBean;
}
/**
*
* @param mesIf
* @param organizeCode
* @return
*/
public static DdlPackBean getMesIf(MesIf mesIf, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesIf, organizeCode);
if (!StringUtils.isEmpty(mesIf.getIfCode())) {
DdlPreparedPack.getStringLikerPack(mesIf.getIfCode(), "ifCode", packBean);
}
if (!StringUtils.isEmpty(mesIf.getIfName())) {
DdlPreparedPack.getStringLikerPack(mesIf.getIfName(), "ifName", packBean);
}
if (!StringUtils.isEmpty(mesIf.getIfConnectType())) {
DdlPreparedPack.getStringLikerPack(mesIf.getIfConnectType(), "ifConnectType", packBean);
}
if (!StringUtils.isEmpty(mesIf.getIfClass())) {
DdlPreparedPack.getStringLikerPack(mesIf.getIfClass(), "ifClass", packBean);
}
return packBean;
}
}

@ -32,7 +32,6 @@ import javax.persistence.Transient;
@Api("容器类型")
public class WmsContainerType extends BaseBean {
private static final long serialVersionUID = 4849044986767609347L;
@Column(name = "CT_CODE",unique = true)
@ApiParam(value = "容器类型代码")
private String ctCode;

@ -233,13 +233,13 @@ public class WmsMoveSn extends BaseBean {
this.refSrc = refSrc;
}
public WmsMoveSn(String partNo, String srcLocateNo, String destLocateNo, String createUser, String createDatetime, Integer busiTypeCode, Double destQty) {
public WmsMoveSn(String partNo, String srcLocateNo, String destLocateNo, String createUser, String createDatetime, String transTypeName, Double destQty) {
this.partNo = partNo;
this.srcLocateNo = srcLocateNo;
this.destLocateNo = destLocateNo;
this.createUser = createUser;
this.createDatetime = createDatetime;
this.busiTypeCode = busiTypeCode;
this.transTypeName = transTypeName;
this.destQty = destQty;
}

Loading…
Cancel
Save