Merge branch 'test'

yun-zuoyi
crish 6 years ago
commit 18161e8191

@ -28,7 +28,7 @@ import javax.persistence.Transient;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api("ANDON_呼叫原因")
@Api(value = "ANDON_呼叫原因")
public class AndonAlarmCause extends BaseBean {
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class,refForeignKey = "value",value = "description")
@ -40,6 +40,7 @@ public class AndonAlarmCause extends BaseBean {
@ApiParam(value = "呼叫原因代码")
private String acCode;
@AnnoOutputColumn(hidden = true)
@Column(name = "PARENT_AC_CODE")
@ApiParam(value = "父阶原因代码")
private String parentAcCode;
@ -48,10 +49,12 @@ public class AndonAlarmCause extends BaseBean {
@ApiParam(value = "呼叫原因描述")
private String acName;
@AnnoOutputColumn(hidden = true)
@Transient
@ApiParam(value = "工作中心")
private String workCenterCode;
@AnnoOutputColumn(hidden = true)
@Transient
@ApiParam(value = "工作单元")
private String workCellCode;

@ -31,15 +31,15 @@ import javax.persistence.Table;
public class AndonAlarmDetailType extends BaseBean {
@Column(name = "ALARM_DETAIL_CODE")
@ApiParam(value = "安灯类型代码")
@ApiParam(value = "安灯子类型编码")
private String alarmDetailCode;
@Column(name = "ALARM_DETAIL_NAME")
@ApiParam(value = "安灯类型名称")
@ApiParam(value = "安灯类型名称")
private String alarmDetailName;
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class,refForeignKey = "value",value = "description")
@Column(name = "ALARM_CODE")
@ApiParam(value = "安灯类型代码")
@ApiParam(value = "安灯类型")
private String alarmCode;
}

@ -32,16 +32,16 @@ public class AndonAlarmResponseCfg extends BaseBean {
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class,refForeignKey = "value",value = "description")
@Column(name = "ALARM_CODE")
@ApiParam(value = "安灯类型代码")
@ApiParam(value = "安灯类型")
private String alarmCode;
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_STATUS.class,refForeignKey = "value",value = "description")
@AnnoOutputColumn(refClass = AndonEnumUtil.ANDON_ACTION_TAG.class,refForeignKey = "code",value = "description")
@Column(name = "ANDON_STATUS")
@ApiParam(value = "安灯状态")
private String andonStatus;
@Column(name = "RP_WHERE")
@ApiParam(value = "通知条件时长")
@ApiParam(value = "通知时间")
private String rpWhere;
@AnnoOutputColumn(refClass = AndonEnumUtil.NOTICE_MESSAGE_SEND_TYPE.class,refForeignKey = "value",value = "description")
@ -50,7 +50,7 @@ public class AndonAlarmResponseCfg extends BaseBean {
private String rpCode;
@Column(name = "RP_OBJECT_CODE")
@ApiParam(value = "通知对象代码")
@ApiParam(value = "通知对象")
private String rpObjectCode;
@AnnoOutputColumn(refClass = AndonEnumUtil.NOTICE_MESSAGE_SEND_LEVEL.class,refForeignKey = "value",value = "description")
@ -59,9 +59,10 @@ public class AndonAlarmResponseCfg extends BaseBean {
private String rpLevel;
@Column(name = "WORK_CENTER_CODE")
@ApiParam(value = "工作中心代码")
@ApiParam(value = "工作中心")
private String workCenterCode;
@AnnoOutputColumn(hidden = true)
@Column(name = "WORK_CENTER_NAME_RDD")
@ApiParam(value = "工作中心名称")
private String workCenterNameRdd;

@ -29,22 +29,20 @@ import javax.persistence.Table;
@EqualsAndHashCode(callSuper = true)
@Api("ANDON_工作单元呼叫原因配置")
public class AndonCellAlarmCause extends BaseBean {
@Column(name = "WORK_CENTER_CODE")
@ApiParam(value = "工作中心代码")
private String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam(value = "工作单元代码")
@ApiParam(value = "工代码")
private String workCellCode;
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class, refForeignKey = "value",value = "description")
@Column(name = "ALARM_CODE")
@ApiParam(value = "安灯类型")
private String alarmCode;
@Column(name = "AC_CODE")
@ApiParam(value = "呼叫原因代码")
@ApiParam(value = "事件描述")
private String acCode;
}

@ -1,6 +1,8 @@
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;
@ -33,15 +35,16 @@ public class AndonCellEventCause extends BaseBean {
private String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam(value = "工作单元代码")
@ApiParam(value = "工代码")
private String workCellCode;
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class,refForeignKey = "value",value = "description")
@Column(name = "ALARM_CODE")
@ApiParam(value = "安灯类型")
private String alarmCode;
@Column(name = "EC_CODE")
@ApiParam(value = "事件原因代码")
@ApiParam(value = "事件原因")
private String ecCode;

@ -29,22 +29,20 @@ import javax.persistence.Table;
@EqualsAndHashCode(callSuper = true)
@Api("ANDON_工作单元处理方法配置")
public class AndonCellEventMethod extends BaseBean {
@Column(name = "WORK_CENTER_CODE")
@ApiParam(value = "工作中心代码")
private String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam(value = "工作单元代码")
@ApiParam(value = "工代码")
private String workCellCode;
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class,refForeignKey = "value",value = "description")
@Column(name = "ALARM_CODE")
@ApiParam(value = "安灯类型")
private String alarmCode;
@Column(name = "EM_CODE")
@ApiParam(value = "事件方法代码")
@ApiParam(value = "处理方法")
private String emCode;
}

@ -13,6 +13,8 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description : ANDON_
@ -35,24 +37,24 @@ public class AndonDisposalCfg extends BaseBean {
private String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam(value = "工作单元代码")
@ApiParam(value = "工代码")
private String workCellCode;
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class,refForeignKey = "value",value = "description")
@Column(name = "ALARM_CODE")
@ApiParam(value = "安灯类型代码")
@ApiParam(value = "安灯类型")
private String alarmCode;
@Column(name = "AC_CODE")
@ApiParam(value = "呼叫原因代码")
@ApiParam(value = "事件描述编码")
private String acCode;
@Column(name = "AC_NAME_RDD")
@ApiParam(value = "呼叫原因描述")
@ApiParam(value = "事件描述名称")
private String acNameRdd;
@Column(name = "EM_CODE")
@ApiParam(value = "事件方法代码")
@ApiParam(value = "处理方法")
private String emCode;
@Column(name = "EM_NAME_RDD")
@ -67,4 +69,9 @@ public class AndonDisposalCfg extends BaseBean {
@Column(name = "FLOW_MEMO")
@ApiParam(value = "审批意见")
private String flowMemo;
@Transient
@ApiParam(value = "审批意见集合")
@AnnoOutputColumn(hidden = true)
private Integer[] flowStatusArray;
}

@ -28,7 +28,7 @@ import javax.persistence.Transient;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api("ANDON_事件原因")
@Api(value = "ANDON_事件原因")
public class AndonEventCause extends BaseBean {
@Column(name = "EC_CODE")
@ -41,6 +41,7 @@ public class AndonEventCause extends BaseBean {
@Column(name = "PARENT_EC_CODE")
@ApiParam(value = "父阶原因代码")
@AnnoOutputColumn(hidden = true)
private String parentEcCode;
@AnnoOutputColumn(refClass = AndonEnumUtil.ALARM_TYPE.class,refForeignKey = "value",value = "description")
@ -50,9 +51,11 @@ public class AndonEventCause extends BaseBean {
@Transient
@ApiParam(value = "工作中心")
@AnnoOutputColumn(hidden = true)
private String workCenterCode;
@Transient
@ApiParam(value = "工作单元")
@AnnoOutputColumn(hidden = true)
private String workCellCode;
}

@ -28,7 +28,7 @@ import javax.persistence.Transient;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api("ANDON_事件处理方法")
@Api(value = "ANDON_事件处理方法")
public class AndonEventMethod extends BaseBean {
@Column(name = "EM_CODE")
@ -39,6 +39,7 @@ public class AndonEventMethod extends BaseBean {
@ApiParam(value = "事件方法描述")
private String emName;
@AnnoOutputColumn(hidden = true)
@Column(name = "PARENT_EM_CODE")
@ApiParam(value = "父阶方法代码")
private String parentEmCode;
@ -48,10 +49,12 @@ public class AndonEventMethod extends BaseBean {
@ApiParam(value = "安灯类型")
private String alarmCode;
@AnnoOutputColumn(hidden = true)
@Transient
@ApiParam(value = "工作中心")
private String workCenterCode;
@AnnoOutputColumn(hidden = true)
@Transient
@ApiParam(value = "工作单元")
private String workCellCode;

@ -44,10 +44,12 @@ public class AndonEventPhenoMenon extends BaseBean {
@ApiParam(value = "安灯类型")
private String alarmCode;
@AnnoOutputColumn(hidden = true)
@Transient
@ApiParam(value = "工作中心")
private String workCenterCode;
@AnnoOutputColumn(hidden = true)
@Transient
@ApiParam(value = "工作单元")
private String workCellCode;

@ -29,7 +29,7 @@ import javax.persistence.Table;
public class AndonHaltType extends BaseBean {
@Column(name = "HALT_CODE")
@ApiParam(value = "停机类型码")
@ApiParam(value = "停机类型码")
private String haltCode;
@Column(name = "HALT_NAME")

@ -34,5 +34,4 @@ public class AndonKnowledgeBase extends BaseManageQueue {
@Column(name = "FLOW_MEMO")
@ApiParam(value = "审批意见")
private String flowMemo;
}

@ -32,15 +32,15 @@ import javax.persistence.Table;
public class AndonPLC extends BaseBean {
@Column(name = "WORK_CENTER_CODE")
@ApiParam(value = "工作中心代码")
@ApiParam(value = "工作中心")
private String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam(value = "工作单元代码")
@ApiParam(value = "工代码")
private String workCellCode;
@Column(name = "NODE_CODE")
@ApiParam(value = "控制节点码")
@ApiParam(value = "控制节点码")
private String nodeCode;
@Column(name = "NODE_IP")
@ -52,7 +52,7 @@ public class AndonPLC extends BaseBean {
private String channelName;
@Column(name = "TAG_NAME")
@ApiParam(value = "标签名")
@ApiParam(value = "标签名")
private String tagName;
@Column(name = "TAG_ADDRESS")
@ -77,9 +77,9 @@ public class AndonPLC extends BaseBean {
@ApiParam(value = "标签业务类型")
private String tagBusinessType;
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description")
@AnnoOutputColumn(refClass = AndonEnumUtil.IS_ALARM_STATUS.class,refForeignKey = "value",value = "description")
@Column(name = "IS_ALARM_STATUS")
@ApiParam(value = "是否按灯状态", example = "1")
@ApiParam(value = "是否安灯")
private Integer isAlarmStatus;
public int getIsAlarmStatusVal(){

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.andon.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
@ -11,6 +12,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description :
@ -29,14 +31,19 @@ import javax.persistence.Table;
public class AndonResponseObject extends BaseBean {
@Column(name = "RP_OBJECT_CODE")
@ApiParam(value = "对象代码")
@ApiParam(value = "通知对象对象编码")
private String rpObjectCode;
@Column(name = "RP_OBJECT_NAME")
@ApiParam(value = "对象名称")
@ApiParam(value = "通知对象名称")
private String rpObjectName;
@Column(name = "RP_OBJECT_VALUE")
@ApiParam(value = "对象值")
@ApiParam(value = "通知对象值")
private String rpObjectValue;
@AnnoOutputColumn(hidden = true)
@Transient
@ApiParam(value = "通知对象")
private String rpObjectValueRdd;
}

@ -279,13 +279,10 @@ public class AndonHqlPack {
*/
public static DdlPackBean packHqlAndonAlarmCauseLike(AndonAlarmCause andonAlarmCause){
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(andonAlarmCause.getAlarmCode(), "alarmCode", result);
DdlPreparedPack.getStringLikerPack(andonAlarmCause.getAcCode(),"acCode", result);
DdlPreparedPack.getStringLikerPack(andonAlarmCause.getAcName(),"acName", result);
getStringBuilderPack(andonAlarmCause, result);
return result;
}
@ -296,10 +293,8 @@ public class AndonHqlPack {
*/
public static DdlPackBean packHqlAndonAlarmEventMethod(AndonEventMethod andonEventMethod){
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(andonEventMethod.getAlarmCode(), "alarmCode", result);
getStringBuilderPack(andonEventMethod, result);
return result;
}
@ -310,10 +305,8 @@ public class AndonHqlPack {
*/
public static DdlPackBean packHqlAndonEventCause(AndonEventCause andonEventCause){
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(andonEventCause.getAlarmCode(), "alarmCode", result);
getStringBuilderPack(andonEventCause, result);
return result;
}
@ -348,6 +341,23 @@ public class AndonHqlPack {
* @param andonManageQueue
* @return
*/
public static DdlPackBean packHqlAndonManageQueueUseByPlc(AndonManageQueue andonManageQueue, Object[] obj){
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(andonManageQueue.getOrganizeCode(), "organizeCode", result);
DdlPreparedPack.getStringEqualPack(andonManageQueue.getWorkCellCode(), "workCellCode", result);
DdlPreparedPack.getStringEqualPack(andonManageQueue.getWorkCenterCode(), "workCenterCode", result);
DdlPreparedPack.getStringEqualPack(andonManageQueue.getEquipmentCode(), "equipmentCode", result);
DdlPreparedPack.getInPackArray(obj, "statusCode", result);
DdlPreparedPack.getStringEqualPack(andonManageQueue.getAlarmCode(), "alarmCode", result);
getStringBuilderPack(andonManageQueue, result);
return result;
}
/**
*
* @param andonManageQueue
* @return
*/
public static DdlPackBean packHqlAndonManageQueue(AndonManageQueue andonManageQueue, Object[] obj){
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(andonManageQueue.getOrganizeCode(), "organizeCode", result);
@ -365,7 +375,6 @@ public class AndonHqlPack {
if(StringUtils.isNotBlank(andonManageQueue.getCallTimeStart()) || StringUtils.isNotBlank(andonManageQueue.getCallTimeEnd())){
DdlPreparedPack.timeBuilder(andonManageQueue.getCallTimeStart(), andonManageQueue.getCallTimeEnd(), "callTime", result, true);
}
getStringBuilderPack(andonManageQueue, result);
// 根据优先级倒序,序号升序排序
// DdlPreparedPack.getOrderByPack(new Object[]{2, 1},
@ -388,6 +397,7 @@ public class AndonHqlPack {
DdlPreparedPack.getStringEqualPack(andonDisposalCfg.getWorkCellCode(),"workCellCode", result);
DdlPreparedPack.getStringEqualPack(andonDisposalCfg.getAlarmCode(),"alarmCode", result);
DdlPreparedPack.getStringEqualPack(andonDisposalCfg.getAcCode(),"acCode", result);
DdlPreparedPack.getInPackArray(andonDisposalCfg.getFlowStatusArray(), "flowStatus", result);
DdlPreparedPack.getNumEqualPack(andonDisposalCfg.getFlowStatus(),"flowStatus", result);
getStringBuilderPack(andonDisposalCfg, result);
@ -540,14 +550,13 @@ public class AndonHqlPack {
*/
public static DdlPackBean packAndonAlarmResponseCfg(AndonAlarmResponseCfg responseCfg) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(responseCfg.getAlarmCode(), "alarmCode", result);
DdlPreparedPack.getStringEqualPack(responseCfg.getAndonStatus(), "andonStatus", result);
DdlPreparedPack.getStringEqualPack(responseCfg.getRpLevel(), "rpLevel", result);
DdlPreparedPack.getStringEqualPack(responseCfg.getWorkCenterCode(), "workCenterCode", result);
DdlPreparedPack.getStringEqualPack(responseCfg.getRpObjectCode(), "rpObjectCode", result);
DdlPreparedPack.getStringEqualPack(responseCfg.getOrganizeCode(), "organizeCode", result);
DdlPreparedPack.getStringEqualPack(responseCfg.getRpCode(), "rpCode", result);
getStringBuilderPack(responseCfg, result);
return result;
@ -626,9 +635,7 @@ public class AndonHqlPack {
DdlPreparedPack.getStringEqualPack(andonResponseObject.getRpObjectCode(), "rpObjectCode", result);
DdlPreparedPack.getStringEqualPack(andonResponseObject.getRpObjectName(), "rpObjectName", result);
DdlPreparedPack.getStringLikerPack(andonResponseObject.getRpObjectValue(), "rpObjectValue", result);
getStringBuilderPack(andonResponseObject, result);
return result;
}
@ -639,13 +646,10 @@ public class AndonHqlPack {
*/
public static DdlPackBean packAndonEventCause(AndonEventCause andonEventCause) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(andonEventCause.getAlarmCode(), "alarmCode", result);
DdlPreparedPack.getStringLikerPack(andonEventCause.getEcCode(), "ecCode", result);
DdlPreparedPack.getStringLikerPack(andonEventCause.getEcName(), "ecName", result);
getStringBuilderPack(andonEventCause, result);
return result;
}
@ -672,6 +676,11 @@ public class AndonHqlPack {
DdlPreparedPack.getStringLikerPack(eventPhenoMenon.getEpmCode(), "epmCode", result);
DdlPreparedPack.getStringLikerPack(eventPhenoMenon.getEpmName(), "epmName", result);
DdlPreparedPack.getStringEqualPack(eventPhenoMenon.getAlarmCode(), "alarmCode", result);
DdlPreparedPack.getOrderByPack(
new Object[]{CommonEnumUtil.ASC_OR_DESC.DESC.getValue()},
new String[]{eventPhenoMenon.getOrderByParam()},
result
);
getStringBuilderPack(eventPhenoMenon, result);
@ -680,18 +689,15 @@ public class AndonHqlPack {
/**
* ANDON_
* @param eventPhenoMenon
* @param eventMethod
* @return
*/
public static DdlPackBean packAndonEventMethod(AndonEventMethod eventPhenoMenon) {
public static DdlPackBean packAndonEventMethod(AndonEventMethod eventMethod) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(eventPhenoMenon.getAlarmCode(), "alarmCode", result);
DdlPreparedPack.getStringLikerPack(eventPhenoMenon.getEmName(), "emName", result);
DdlPreparedPack.getStringLikerPack(eventPhenoMenon.getEmCode(), "emCode", result);
getStringBuilderPack(eventPhenoMenon, result);
DdlPreparedPack.getStringEqualPack(eventMethod.getAlarmCode(), "alarmCode", result);
DdlPreparedPack.getStringLikerPack(eventMethod.getEmName(), "emName", result);
DdlPreparedPack.getStringLikerPack(eventMethod.getEmCode(), "emCode", result);
getStringBuilderPack(eventMethod, result);
return result;
}
@ -702,13 +708,14 @@ public class AndonHqlPack {
*/
public static DdlPackBean packAndonPLC(AndonPLC plc) {
DdlPackBean result = new DdlPackBean();
DdlPreparedPack.getStringEqualPack(plc.getAlarmCode(), "alarmCode", result);
DdlPreparedPack.getStringLikerPack(plc.getTagAddress(),"tagAddress",result);
DdlPreparedPack.getStringLikerPack(plc.getTagName(),"tagName",result);
DdlPreparedPack.getStringEqualPack(plc.getChannelName(),"channelName",result);
DdlPreparedPack.getStringEqualPack(plc.getGroupNo(),"groupNo",result);
DdlPreparedPack.getStringEqualPack(plc.getWorkCenterCode(), "workCenterCode", result);
DdlPreparedPack.getStringEqualPack(plc.getWorkCellCode(), "workCellCode", result);
DdlPreparedPack.getStringEqualPack(plc.getAlarmCode(), "alarmCode", result);
getStringBuilderPack(plc, result);
return result;
}

@ -0,0 +1,48 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.enums.USE_TYPE;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-09-22
* @Modify:
**/
@Data
@Entity
@Table(name = "APS_ASSIST_RESOURCE_SET_TIME")
@Api("副资源设置时间")
public class AssistResourceSetTime extends BaseAPS {
@Column(name="RES_CODE")
@ApiParam(value ="资源编码")
private String resCode;
@Column(name="TYPE")
@ApiParam(value ="副资源使用类型")
private USE_TYPE type;
@Column(name="PREV_RESOURCE")
@ApiParam(value ="前资源编码")
private String prevResource;
@Column(name="POST_RESOURCE")
@ApiParam(value ="后资源编码")
private String postResource;
@Column(name="TIME")
@ApiParam(value ="设置时间")
private String time;
@Column(name="PRIORITY")
@ApiParam(value ="优先级")
private int priority;
}

@ -0,0 +1,57 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.enums.DYNAMIC_SET_CALC;
import cn.estsh.i3plus.pojo.aps.enums.DYNAMIC_SET_TYPE;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-09-22
* @Modify:
**/
@Data
@Entity
@Table(name = "APS_DYNAMIC_SET_TIME")
@Api("动态设置时间")
public class DynamicSetTime extends BaseAPS {
@Column(name="RES_CODE")
@ApiParam(value ="资源代码")
private String resCode;
@Column(name="TYPE")
@ApiParam(value ="应用工作计划类型")
private DYNAMIC_SET_TYPE type;
@Column(name="CONSIDER_ASS_RES")
@ApiParam(value ="是否启用副资源动态设置时间")
private Boolean considerAssRes;
@Column(name="CONSIDER_MATERIAL")
@ApiParam(value ="是否启用物料动态设置时间")
private Boolean considerMaterial;
@Column(name="ASS_RES_CALC")
@ApiParam(value ="副资源动态设置计算方式")
private DYNAMIC_SET_CALC assResCalc;
@Column(name="MATERIAL_CALC")
@ApiParam(value ="物料动态设置时间计算方式")
private DYNAMIC_SET_CALC materialCalc;
@Column(name="STATIC_CALC")
@ApiParam(value ="与静态设置时间计算方式")
private DYNAMIC_SET_CALC staticCalc;
@Column(name="PRIORITY")
@ApiParam(value ="优先级")
private int priority;
}

@ -0,0 +1,28 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import io.swagger.annotations.Api;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-10-22
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="APS_FURNACE_PLAN")
@Api("炉资源计划")
public class FurnacePlan extends BaseAPS {
}

@ -0,0 +1,43 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-09-22
* @Modify:
**/
@Data
@Entity
@Table(name = "APS_MATERIAL_SET_TIME")
@Api("物料设置时间")
public class MaterialSetTime extends BaseAPS {
@Column(name="RES_CODE")
@ApiParam(value ="资源编码")
private String resCode;
@Column(name="PREV_MATERIAL")
@ApiParam(value ="前物料编码")
private String prevMaterial;
@Column(name="POST_MATERIAL")
@ApiParam(value ="后物料编码")
private String postMaterial;
@Column(name="TIME")
@ApiParam(value ="设置时间")
private String time;
@Column(name="PRIORITY")
@ApiParam(value ="优先级")
private int priority;
}

@ -35,9 +35,9 @@ public class OperResource extends BaseAPS {
@ApiParam(value ="前设置时间")
private String prevTime;
@Column(name="MANUF_TIME")
@Column(name="PRODUCE_TIME")
@ApiParam(value ="生产时间")
private String manufTime;
private String produceTime;
@Column(name="POST_TIME")
@ApiParam(value ="后设置时间")
@ -47,9 +47,9 @@ public class OperResource extends BaseAPS {
@ApiParam(value ="最大前设置中断时间")
private String maxPrevSdTime;
@Column(name="MAX_MANUF_SD_TIME")
@Column(name="MAX_PRODUCE_SD_TIME")
@ApiParam(value ="最大生产中断时间")
private String maxManufSdTime;
private String maxProduceSdTime;
@Column(name="MAX_POST_SD_TIME")
@ApiParam(value ="最大后设置中断时间")

@ -2,6 +2,7 @@ package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.common.BaseCode;
import cn.estsh.i3plus.pojo.aps.enums.RESOURCE_CLASS;
import cn.estsh.i3plus.pojo.aps.enums.RESOURCE_LOCK_TYPE;
import cn.estsh.i3plus.pojo.aps.enums.RESOURCE_TYPE;
import cn.estsh.i3plus.pojo.aps.enums.TIME_ROUND_TYPE;
import io.swagger.annotations.Api;
@ -48,37 +49,37 @@ public class Resource extends BaseCode {
@ApiParam(value ="后缓冲时间")
private String postBuffer;
@Column(name="MAX_MANUF_BATCH")
@Column(name="MAX_PRODUCE_BATCH")
@ApiParam(value ="最大生产批量")
private Double maxManufBatch;
private Double maxProduceBatch;
@Column(name="MANUF_ADJ_UNIT_TM")
@ApiParam(value ="生产时间尾数调整")
private String manufAdjUnitTm;
@Column(name="TIME_TAIL_ADJUST")
@ApiParam(value ="时间尾数调整")
private String timeTailAdjust;
@Column(name="MANUF_ADJ_UNIT")
@ApiParam(value ="生产时刻尾数调整")
private String manufAdjUnit;
@Column(name="TIME_ADJUST")
@ApiParam(value ="时间调整")
private String timeAdjust;
@Column(name="MAX_PREV_SD_TIME")
@ApiParam(value ="最大前设置中断时间")
private String maxPrevSdTime;
@Column(name="MAX_MANUF_SD_TIME")
@Column(name="MAX_PRODUCE_SD_TIME")
@ApiParam(value ="最大生产中断时间")
private String maxManufSdTime;
private String maxProduceSdTime;
@Column(name="MAX_POST_SD_TIME")
@ApiParam(value ="最大后设置中断时间")
private String maxPostSdTime;
@Column(name="ROUND_TYPE")
@ApiParam(value ="时间圆整类型")
@ApiParam(value ="时间与时间尾数圆整类型")
private TIME_ROUND_TYPE roundType;
@Column(name="MANUF_EFFECT")
@ApiParam(value ="生产效率影响")
private Integer manufEffect;
@Column(name="EFFICIENCY_EFFECT")
@ApiParam(value ="效率影响类型")
private Integer EfficiencyEffect;
@Column(name="TIME_ROUND")
@ApiParam(value ="时间圆整影响")
@ -88,4 +89,11 @@ public class Resource extends BaseCode {
@ApiParam(value ="时间尾数影响")
private Integer timeTailRound;
@Column(name="LOCK_TYPE")
@ApiParam(value ="锁定类型")
private RESOURCE_LOCK_TYPE lockType;
@Column(name="LOCK_TIME")
@ApiParam(value ="锁定时间长度")
private String lockTime;
}

@ -5,14 +5,17 @@ import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
import cn.estsh.i3plus.pojo.aps.holders.EWorkPlan;
import cn.estsh.i3plus.pojo.aps.holders.EWorkRelation;
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.util.Date;
import java.util.List;
/**
* @Description :
@ -29,24 +32,70 @@ import java.util.Date;
@Table(name="APS_WORK_PLAN")
@Api("工作计划")
public class WorkPlan extends BaseAPS {
private Date prevSetStart;
@Column(name="PREV_SET_BEGIN")
@ApiParam(value ="前设置开始时间")
private Date prevSetBegin;
@Column(name="PREV_SET_END")
@ApiParam(value ="前设置结束时间")
private Date prevSetEnd;
private String prevSetTime;
private Date produceStart;
@Column(name="PREV_SET_TIME")
@ApiParam(value ="前设置时间")
private Integer prevSetTime;
@Column(name="PRODUCE_BEGIN")
@ApiParam(value ="生产开始时间")
private Date produceBegin;
@Column(name="PRODUCE_END")
@ApiParam(value ="生产结束时间")
private Date produceEnd;
private String produceTime;
private Date postSetStart;
@Column(name="PRODUCE_TIME")
@ApiParam(value ="生产时间")
private Integer produceTime;
@Column(name="POST_SET_BEGIN")
@ApiParam(value ="后设置开始时间")
private Date postSetBegin;
@Column(name="POST_SET_END")
@ApiParam(value ="后设置结束时间")
private Date postSetEnd;
private String postSetTime;
private Date lockStart;
@Column(name="POST_SET_TIME")
@ApiParam(value ="后设置时间")
private Integer postSetTime;
@Column(name="LOCK_BEGIN")
@ApiParam(value ="锁定开始时间")
private Date lockBegin;
@Column(name="LOCK_END")
@ApiParam(value ="锁定结束时间")
private Date lockEnd;
private String lockTime;
private Date edgeTime;
@Column(name="LOCK_TIME")
@ApiParam(value ="锁定时间")
private Integer lockTime;
@Column(name="WORK_ID")
@ApiParam(value ="工作对象id")
private Long workId;
@Column(name="RESOURCE_ID")
@ApiParam(value ="资源对象id")
private Long resourceId;
@Column(name="WORK_RESOURCE_ID")
@ApiParam(value ="工作资源对象id")
private Long workResourceId;
@Column(name="MAIN_PLAN_ID")
@ApiParam(value ="主计划对象id")
private Long mainPlanId;
public Work getWork() { return BeanRelation.get(this, EWorkPlan.Work); }
public void setWork(Work work) {
@ -60,4 +109,20 @@ public class WorkPlan extends BaseAPS {
this.resourceId = resource != null ? resource.getId() : 0l;
BeanRelation.set(this, EWorkPlan.Resource, resource);
}
public WorkResource getWorkResource() { return BeanRelation.get(this, EWorkPlan.WorkResource); }
public void setWorkResource(WorkResource workResource) {
this.workResourceId = workResource != null ? workResource.getId() : 0l;
BeanRelation.set(this, EWorkPlan.WorkResource, workResource);
}
public WorkPlan getMainPlan() { return BeanRelation.get(this, EWorkPlan.MainPlan); }
public void setMainPlan(WorkPlan plan) {
this.mainPlanId = plan != null ? plan.getId() : 0l;
BeanRelation.set(this, EWorkPlan.MainPlan, plan);
}
public List<WorkPlan> getAssPlans() { return BeanRelation.list(this, EWorkPlan.AssPlans); }
}

@ -34,9 +34,9 @@ public class WorkResource extends BaseAPS {
@ApiParam(value ="前设置时间")
private Long prevTime;
@Column(name="MANUF_TIME")
@Column(name="PRODUCE_TIME")
@ApiParam(value ="制造时间")
private Long manufTime;
private Long produceTime;
@Column(name="POST_TIME")
@ApiParam(value ="后设置时间")
@ -50,9 +50,9 @@ public class WorkResource extends BaseAPS {
@ApiParam(value ="最大前设置中断时间")
private String maxPrevSdTime;
@Column(name="MAX_MANUF_SD_TIME")
@Column(name="MAX_PRODUCE_SD_TIME")
@ApiParam(value ="最大制造中断时间")
private String maxManufSdTime;
private String maxProduceSdTime;
@Column(name="MAX_POST_SD_TIME")
@ApiParam(value ="最大后设置中断时间")

@ -69,6 +69,13 @@ public class BeanRelation {
return temp;
}
/**
*
* @param bean
* @param holder
* @param <T>
* @return
*/
public static <T extends BaseBean> T get(BaseBean bean, Enum<?> holder) {
List<T> beans = (List<T>)get(bean).get(holder);
if (beans == null || beans.isEmpty()) {
@ -77,10 +84,27 @@ public class BeanRelation {
return beans.get(0);
}
/**
*
* @param bean
* @param holder
* @param args
* @param <T>
* @return
*/
public static <T extends BaseBean> T get(BaseBean bean, Enum<?> holder, Enum<?>... args) {
return get(bean, null, holder, args);
}
/**
*
* @param bean
* @param pred Lambdatrue
* @param holder
* @param args
* @param <T>
* @return
*/
public static <T extends BaseBean> T get(BaseBean bean, Predicate<T> pred, Enum<?> holder, Enum<?>... args) {
List<BaseBean> nextBeans = list(bean, holder);
for (BaseBean nextEntity : nextBeans) {
@ -111,6 +135,13 @@ public class BeanRelation {
return null;
}
/**
*
* @param bean
* @param holder
* @param <T>
* @return List
*/
public static <T extends BaseBean> List<T> list(BaseBean bean, Enum<?> holder) {
List<T> beans = (List<T>)get(bean).get(holder);
if (beans == null) {
@ -119,10 +150,27 @@ public class BeanRelation {
return beans;
}
/**
*
* @param bean
* @param holder
* @param args
* @param <T>
* @return List
*/
public static <T extends BaseBean> List<T> list(BaseBean bean, Enum<?> holder, Enum<?>... args) {
return list(bean, null, holder, args);
}
/**
*
* @param bean
* @param pred Lambdatrue
* @param holder
* @param args
* @param <T>
* @return List
*/
public static <T extends BaseBean> List<T> list(BaseBean bean, Predicate<T> pred, Enum<?> holder, Enum<?>... args) {
List<T> result = new ArrayList<>();
List<BaseBean> nextBeans = list(bean, holder);
@ -157,6 +205,38 @@ public class BeanRelation {
}
}
public static <T extends BaseBean> List<T> lastList(BaseBean entity, Enum<?>... args) {
List<T> result = new ArrayList<T>();
lastListImpl(result, entity, null, args, 0);
return result;
}
public static <T extends BaseBean> List<T> lastList(BaseBean entity, Predicate<T> filter, Enum<?>... args) {
List<T> result = new ArrayList<T>();
lastListImpl(result, entity, filter, args, 0);
return result;
}
@SuppressWarnings("unchecked")
private final static <T extends BaseBean> boolean lastListImpl(List<T> result, BaseBean entity, Predicate<T> filter,
Enum<?>[] args, int index) {
if (index >= args.length) {
index = 0;
}
boolean bNotLast = true;
List<BaseBean> relaEntities = list(entity, args[index]);
for (BaseBean relaEntity : relaEntities) {
if (lastListImpl(result, relaEntity, filter, args, index + 1)) {
result.add((T)relaEntity);
bNotLast = false;
}
}
return index == 0 && bNotLast;
}
/**
*
*
@ -282,4 +362,42 @@ public class BeanRelation {
}
}
}
/**
* lambdalambdafalse退
* @param bean
* @param fun
* @param holders
* @param <T>
*/
public static <T extends BaseBean> void recursion(BaseBean bean, Predicate<T> fun, Enum<?>... holders) {
if (holders.length == 0) {
return;
}
recursionImpl(bean, fun, holders, 0);
}
/**
* 广
* @param bean
* @param fun
* @param holders
* @param index
* @param <T>
*/
@SuppressWarnings("unchecked")
private final static <T extends BaseBean> void recursionImpl(BaseBean bean, Predicate<T> fun,
Enum<?>[] holders, int index) {
if (index >= holders.length) {
if (!fun.test((T) bean)) {
return;
}
index = 0;
}
List<BaseBean> relaBeans = list(bean, holders[index]);
for (BaseBean relaBean : relaBeans) {
recursionImpl(relaBean, fun, holders, index + 1);
}
}
}

@ -0,0 +1,7 @@
package cn.estsh.i3plus.pojo.aps.enums;
public enum DYNAMIC_SET_CALC {
MIN, // 取最小值
MAX, // 取最大值
SUM // 求和
}

@ -0,0 +1,7 @@
package cn.estsh.i3plus.pojo.aps.enums;
public enum DYNAMIC_SET_TYPE {
PREV_SET, // 只对前设置影响
POST_SET, // 只对后设置影响
ALL // 对前后设置都产生影响
}

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.aps.enums;
public enum EFFICIENCY_EFFECT {
NONE(0),
PREV_SET(1),
PRODUCE(2),
POST_SET(4);
private int _value;
EFFICIENCY_EFFECT(int value){
_value = value;
}
public int value() {
return this._value;
}
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.aps.enums;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-09-17
* @Modify:
**/
public enum PLAN_TYPE {
PREV_SET,
PRODUCE,
POST_SET,
LOCK
}

@ -0,0 +1,7 @@
package cn.estsh.i3plus.pojo.aps.enums;
public enum RESOURCE_LOCK_TYPE {
NONE, // 不锁定
PRODUCE_BEGIN, // 与后工序生产开始时刻有关
PRODUCE_END // 与后工序生产结束时刻有关
}

@ -8,7 +8,6 @@ package cn.estsh.i3plus.pojo.aps.enums;
* @Modify:
**/
public enum TIME_ROUND_TYPE {
NONE, // 不圆整
UP, // 向上
DOWN, // 向下
ROUNDING // 四舍五入

@ -15,7 +15,6 @@ public enum WORK_SORT_RULE {
ORDER_COUNT, // 订单数量
ORDER_RECEIVE_DATE,// 订单接单日期
ORDER_LET_SUB_EST,// 订单交货期与订单最早开始时刻之差
ORDER_PRESSURE, // 订单紧迫程度
ORDER_SURPLUS, // 订单余裕度
NOPLAN_OPERATION_SIZE,// 残留工序数
REMAIN_PRODUCE_TIME, // 残留生产时间

@ -0,0 +1,5 @@
package cn.estsh.i3plus.pojo.aps.holders;
public enum EFurnacePlan {
WorkPlans
}

@ -3,5 +3,10 @@ package cn.estsh.i3plus.pojo.aps.holders;
public enum EWorkPlan {
Work,
Resource,
AssPlans // 关联的为副资源的工作计划
WorkResource,
MainPlan, // 关联的为主资源的工作计划
AssPlans, // 关联的为副资源的工作计划
PrevPlan,
PostPlan,
FurnacePlan,
}

@ -3,8 +3,32 @@ package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.base.common.Pager;
import lombok.Data;
import java.util.List;
@Data
public class APSPager extends Pager {
public static class SortData {
// 排序对象
private String name;
// 排序类型1为升序0为降序
private int orderType;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getOrderType() {
return orderType;
}
public void setOrderType(int orderType) {
this.orderType = orderType;
}
}
private String filter;
private String sort;
private List<SortData> sorts;
}

@ -0,0 +1,9 @@
package cn.estsh.i3plus.pojo.aps.repository;
import cn.estsh.i3plus.pojo.aps.bean.AssistResourceSetTime;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface AssistResourceSetTimeRepository extends CrudRepository<AssistResourceSetTime, Long> {
}

@ -0,0 +1,9 @@
package cn.estsh.i3plus.pojo.aps.repository;
import cn.estsh.i3plus.pojo.aps.bean.DynamicSetTime;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface DynamicSetTimeRepository extends CrudRepository<DynamicSetTime, Long> {
}

@ -0,0 +1,9 @@
package cn.estsh.i3plus.pojo.aps.repository;
import cn.estsh.i3plus.pojo.aps.bean.FurnacePlan;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface FurnacePlanRepository extends CrudRepository<FurnacePlan, Long> {
}

@ -0,0 +1,9 @@
package cn.estsh.i3plus.pojo.aps.repository;
import cn.estsh.i3plus.pojo.aps.bean.MaterialSetTime;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface MaterialSetTimeRepository extends CrudRepository<MaterialSetTime, Long> {
}

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Class name="FurnacePlan">
<Relation field="WorkPlans" name="WorkPlan" reverse="FurnacePlan" type="ONE_TO_MULTI" owner="true">
</Relation>
</Class>

@ -12,6 +12,8 @@
</Relation>
<Relation field="Operation" name="Operation" type="MULTI_TO_ONE" owner="false">
</Relation>
<Relation field="WorkPlan" name="WorkPlan" reverse="Work" type="ONE_TO_ONE" owner="true">
</Relation>
<Relation field="PlanFeedbacks" name="PlanFeedback" reverse="Work" type="ONE_TO_MULTI" owner="true">
</Relation>
</Class>

@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Class name="WorkPlan">
<Relation field="Work" name="Work" reverse="WorkPlan" type="ONE_TO_ONE" owner="true">
</Relation>
<Relation field="Resource" name="Resource" type="MULTI_TO_ONE" owner="false">
</Relation>
<Relation field="AssPlans" name="WorkPlan" type="ONE_TO_MULTI" owner="false">
<Relation field="WorkResource" name="WorkResource" type="ONE_TO_ONE" owner="false">
</Relation>
<Relation field="AssPlans" name="WorkPlan" reverse="MainPlan" type="ONE_TO_MULTI" owner="false">
</Relation>
<Relation field="PrevPlan" name="WorkPlan" reverse="PostPlan" type="MULTI_TO_MULTI" owner="false">
</Relation>
</Class>

@ -67,14 +67,14 @@ public abstract class BaseBean implements Serializable {
@Column(name="IS_VALID")
@ApiParam(value = "有效性",example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description")
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description", hidden = true)
public Integer isValid; //CommonEnumUtil.IS_VAILD;
@Column(name="IS_DELETED")
@ApiParam(value = "是否已删除",example = "2")
@AnnoOutputColumn(hidden = true)
//逻辑删除,软删除
public Integer isDeleted; //CommonEnumUtil.TRUE_OR_FALSE
public Integer isDeleted; //CommonEnumUtil.TRUE_OR_FALSEA
@Column(name="CREATE_USER",updatable = false)
@ApiParam(value = "创建用户")

@ -292,6 +292,58 @@ public class AndonEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IS_ALARM_STATUS {
TRUE(10, "是"), FALSE(20, "否");
private int value;
private String description;
private IS_ALARM_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getValueStr() {
return value + "";
}
public String getDescription() {
return description;
}
public static String valueOf(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 descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {return valueOf(val);}
public static int descriptionOfValue(String desc) {return descOf(desc);}
}
/**
*
* 10-20-
*/
@ -453,6 +505,16 @@ public class AndonEnumUtil {
}
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;
}
}

@ -31,7 +31,7 @@ public class CommonEnumUtil {
JOBFLOW(23,"block-jobflow","智能作业流"),
SOFTSWITCH(24,"block-softswitch","软件适配器"),
HARDSWITCH(25,"block-hardswitch","硬件适配器"),
LAC(26,"link-connect","连接适配器"),
LAC(26,"lac","连接适配器"),
ANDON(27,"andon","安灯"),
CENTER(99,"icloud-server","注册中心"),
SURFACE(98,"i3surface","对外服务"),

@ -12,6 +12,159 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil {
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_SIDE_LOCATION {
A_SIDE(10, "A面"),
B_SIDE(20, "B面"),
C_SIDE(30, "C面"),
D_SIDE(40, "D面");
private int value;
private String description;
MES_SIDE_LOCATION(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;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_DEFECT_TYPE {
DEFECT_TYPE1(10, "缺陷类型1"),
DEFECT_TYPE2(20, "缺陷类型2"),
DEFECT_TYPE3(30, "缺陷类型3");
private int value;
private String description;
MES_DEFECT_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;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_TYPE_CFG_BUSIN_TYPE {
BUSIN_TYPE1(10, "业务类型1"),
BUSIN_TYPE2(20, "业务类型2"),
BUSIN_TYPE3(30, "业务类型3");
private int value;
private String description;
MES_TYPE_CFG_BUSIN_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;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_DEFECT_CAUSE_TYPE {
QUALITY_DEFECTS(10, "质量缺陷"),
PROCESS_DEFECTS(20, "工艺缺陷"),
EQUIPMENT_DEFECT(30, "设备缺陷");
private int value;
private String description;
MES_DEFECT_CAUSE_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;
}
}
/**
* mes-
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -50,6 +203,43 @@ public class MesEnumUtil {
}
/**
* mes-
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_EQU_TASK_DETAIL_CHECK_RESULT {
YES(10, "合格"),
NO(20, "不合格");
private int value;
private String description;
MES_EQU_TASK_DETAIL_CHECK_RESULT(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;
}
}
/**
* mes-
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -330,7 +520,7 @@ public class MesEnumUtil {
public enum MES_EQU_TASK_NOTIFY_CFG_PATTERN {
EMAIL(10, "邮件"),
USERPHONE(10, "手机号");
USERPHONE(20, "手机号");
private int value;
private String description;
@ -452,8 +642,8 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_WORK_CELL_TYPE {
NORMAL(1, "正常"),
REWORK(2, "返修");
NORMAL(10, "正常"),
REWORK(20, "返修");
private int value;
private String description;
@ -500,8 +690,8 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_ACTION_TYPE {
BIND(1, "绑定"),
UNTYING(2, "解绑");
BIND(10, "绑定"),
UNTYING(20, "解绑");
private int value;
private String description;
@ -548,8 +738,8 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_IS_KEY {
IS_KEY(1, "是"),
NO_KEY(2, "否");
IS_KEY(10, "是"),
NO_KEY(20, "否");
private int value;
private String description;
@ -596,8 +786,8 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_REPAIR_STATUS {
REPAIRED(1, "已维修"),
NO_REPAIR(2, "待维修");
REPAIRED(10, "已维修"),
NO_REPAIR(20, "待维修");
private int value;
private String description;
@ -644,11 +834,11 @@ public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_OPERATE_TYPE {
WORKSTATION_SCAN(1, "工位扫描"),
QUALITY_JUDGEMENT(2, "质量判定"),
MATERIAL_DISMANTLING(3, "物料拆解"),
REWORK(4, "返修作业"),
WORKSTATION_MONITORING(5, "工位监控");
WORKSTATION_SCAN(10, "工位扫描"),
QUALITY_JUDGEMENT(20, "质量判定"),
MATERIAL_DISMANTLING(30, "物料拆解"),
REWORK(40, "返修作业"),
WORKSTATION_MONITORING(50, "工位监控");
private int value;
private String description;
@ -1323,9 +1513,7 @@ public class MesEnumUtil {
public enum PASS_FAIL {
PASS(1, "合格"),
FAIL(2, "不合格"),
SCRAP(3, "报废"),
DISMANTLED(4, "已拆解");
FAIL(2, "不合格");
private int value;
private String description;
@ -1796,7 +1984,8 @@ public class MesEnumUtil {
QUALIFIED(10, "合格"),
DEFECTED(20, "不合格"),
SCRAPED(30, "报废");
SCRAPED(30, "报废"),
DISMANTLED(40, "已拆解");
private int value;
private String description;
@ -2104,7 +2293,8 @@ public class MesEnumUtil {
UPDATE_SYNC_TIME(50, "UPDATE_SYNC_TIME"),
PCN_PULL(60, "PCN_PULL"),
PCN_PUSH(70, "PCN_PUSH"),
FDFS_DOWNLOAD(80, "FDFS_DOWNLOAD");
FDFS_DOWNLOAD(80, "FDFS_DOWNLOAD"),
REWORK_REPAIR(90, "REWORK_REPAIR");
private int value;
private String description;

@ -13,6 +13,168 @@ import org.apache.commons.lang3.StringUtils;
public class MesPcnEnumUtil {
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_DEFECT_CAUSE_TYPE {
QUALITY_DEFECTS(10, "质量缺陷"),
PROCESS_DEFECTS(20, "工艺缺陷"),
EQUIPMENT_DEFECT(30, "设备缺陷");
private int value;
private String description;
MES_DEFECT_CAUSE_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;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_SIDE_LOCATION {
A_SIDE(10, "A面"),
B_SIDE(20, "B面"),
C_SIDE(30, "C面"),
D_SIDE(40, "D面");
private int value;
private String description;
MES_SIDE_LOCATION(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;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_REPAIR_STATUS {
REPAIRED(10, "已维修"),
NO_REPAIR(20, "待维修");
private int value;
private String description;
MES_REPAIR_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;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_QC_CHECK_TYPE {
FIRST_CHECK(10, "首检"),
ON_SITE_CHECK(20, "巡检"),
END_CHECK(30, "尾检");
private int value;
private String description;
MES_QC_CHECK_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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* mes-pcn
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -797,7 +797,9 @@ public class WmsEnumUtil {
VDAREPORT("VDAREPORT", "VDA生产报工"),
VDA_FINISH_GOODS("VDA_FINISH_GOODS", "VDA生产快速入库"),
VDA_PICKING_GOODS("VDA_PICKING_GOODS", "VDA生产领料"),
VDA_ONE_PICKING_GOODS("VDA_ONE_PICKING_GOODS", "VDA单箱领料");
VDA_NC_FREEZE("VDA_NC_FREEZE", "VDA_NC冻结"),
VDA_ONE_PICKING_GOODS("VDA_ONE_PICKING_GOODS", "VDA单箱领料"),
VDA_NC_UN_FREEZE("VDA_NC_UN_FREEZE", "VDA_NC解冻");
private String value;
private String description;

@ -13,5 +13,11 @@
<artifactId>i3plus-pojo-lac</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-base</artifactId>
</dependency>
</dependencies>
</project>

@ -0,0 +1,95 @@
package cn.estsh.i3plus.pojo.lac.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
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.Lob;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 19-10-18 6:04
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="LAC_COMMAND_STACK_RECORD")
@Api(value="适配记录",description = "适配记录")
public class LacCommandStackRecord extends BaseBean {
private static final long serialVersionUID = -2775980024345181459L;
@Column(name="commandStackId")
@ApiParam(value ="指令集ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long commandStackId;
@Column(name="COMMAND_STACK_NAME_RDD")
@ApiParam(value ="指令集名称")
private String commandStackNameRdd;
@Column(name="COMMAND_STACK_CODE_RDD")
@ApiParam(value ="指令集代码")
private String commandStackCodeRdd;
@Column(name="COMMAND_STACK_TYPE_ID")
@ApiParam(value ="指令集类型")
@JsonSerialize(using = ToStringSerializer.class)
private Long commandStackTypeId;
@Column(name="STEP_INDEX")
@ApiParam(value ="当前步骤")
private Integer stepIndex;
@Column(name="STEP_NUM")
@ApiParam(value ="步骤总数")
private Integer stepNum;
@Column(name="TASK_COMPLETE_NUM")
@ApiParam(value ="任务完成数量")
private Integer taskCompleteNum;
@Column(name="TASK_NUM")
@ApiParam(value ="任务总数")
private Integer taskNum;
@Lob
@Column(name="INPUT_PARAMETER")
@ApiParam(value ="执行入参")
private String inputParameter;
@Column(name="STACK_START_TIME")
@ApiParam(value ="执行开始时间")
private String stackStartTime;
@Column(name="STACK_END_TIME")
@ApiParam(value ="执行结束时间")
private String stackEndTime;
@Column(name="STACK_SPEND")
@ApiParam(value ="执行耗时")
private Integer stackSpend;
@Column(name="STACK_STATUS")
@ApiParam(value ="执行状态")
private Integer stackStatus;
@Column(name="EXECUTION_DESCRIPTION")
@ApiParam(value ="执行说明")
private String executionDescription;
}

@ -0,0 +1,44 @@
package cn.estsh.i3plus.pojo.lac.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 : wei.peng
* @CreateDate : 19-10-22 3:29
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="LAC_COMMAND_STACK_TYPE")
@Api(value="指令集类型",description = "指令集类型")
public class LacCommandStackType extends BaseBean {
@Column(name="TYPE_NAME")
@ApiParam(value ="类型名称")
private String typeName;
@Column(name="TYPE_REF_NUM")
@ApiParam(value ="适配器使用数量")
private Integer typeRefNum;
@Column(name="TYPE_DESCRIPTION")
@ApiParam(value ="类型描述")
private String typeDescription;
}

@ -0,0 +1,106 @@
package cn.estsh.i3plus.pojo.lac.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
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.Lob;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 19-10-18 6:04
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="LAC_LOG_TASK")
@Api(value="适配任务记录",description = "适配任务记录")
public class LacLogTask extends BaseBean {
private static final long serialVersionUID = 674009105885048131L;
@Column(name="commandStackId")
@ApiParam(value ="指令集ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long commandStackId;
@Column(name="COMMAND_STACK_NAME_RDD")
@ApiParam(value ="指令集名称")
private String commandStackNameRdd;
@Column(name="COMMAND_STACK_CODE_RDD")
@ApiParam(value ="指令集代码")
private String commandStackCodeRdd;
@Column(name="COMMAND_STACK_TYPE_ID")
@ApiParam(value ="指令集类型")
@JsonSerialize(using = ToStringSerializer.class)
private Long commandStackTypeId;
@Column(name="STEP_ID")
@ApiParam(value ="步骤ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long stepId;
@Column(name="STEP_NAME_RDD")
@ApiParam(value ="步骤名称")
private String stepNameRdd;
@Column(name="STEP_SEQUENCE")
@ApiParam(value ="步骤顺序")
private String stepSequence;
@Column(name="TASK_ID")
@ApiParam(value ="任务ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long taskId;
@Column(name="TASK_NAME_RDD")
@ApiParam(value ="任务名称")
private String taskNameRdd;
@Column(name="TASK_NAME_TYPE")
@ApiParam(value ="任务类型")
@JsonSerialize(using = ToStringSerializer.class)
private Long taskNameType;
@Column(name="adapterId")
@ApiParam(value ="适配器ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long adapterId;
@Lob
@Column(name="INPUT_PARAMETER")
@ApiParam(value ="任务入参")
private String inputParameter;
@Column(name="TASK_START_TIME")
@ApiParam(value ="任务开始时间")
private String taskStartTime;
@Column(name="TASK_END_TIME")
@ApiParam(value ="任务结束时间")
private String taskEndTime;
@Column(name="TASK_SPEND")
@ApiParam(value ="任务耗时")
private Integer taskSpend;
@Column(name="TASK_STATUS")
@ApiParam(value ="任务状态")
private Integer taskStatus;
}

@ -0,0 +1,94 @@
package cn.estsh.i3plus.pojo.lac.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
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.Lob;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 19-10-18 6:04
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="LAC_LOG_TASK_DETAIL")
@Api(value="适配任务记录明细",description = "适配任务记录明细")
public class LacLogTaskDetail extends BaseBean {
private static final long serialVersionUID = -4918694502072594064L;
@Column(name="commandStackId")
@ApiParam(value ="指令集ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long commandStackId;
@Column(name="COMMAND_STACK_TYPE_ID")
@ApiParam(value ="指令集类型")
@JsonSerialize(using = ToStringSerializer.class)
private Long commandStackTypeId;
@Column(name="STEP_ID")
@ApiParam(value ="步骤ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long stepId;
@Column(name="TASK_ID")
@ApiParam(value ="任务ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long taskId;
@Column(name="TASK_NAME_TYPE")
@ApiParam(value ="任务类型")
@JsonSerialize(using = ToStringSerializer.class)
private Long taskNameType;
@Column(name="adapterId")
@ApiParam(value ="适配器ID" , example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long adapterId;
@Column(name="TASK_START_TIME")
@ApiParam(value ="任务开始时间")
private String taskStartTime;
@Column(name="TASK_END_TIME")
@ApiParam(value ="任务结束时间")
private String taskEndTime;
@Lob
@Column(name="INPUT_PARAMETER")
@ApiParam(value ="任务入参")
private String inputParameter;
@Lob
@Column(name="INPUT_PARAMETER_BODY")
@ApiParam(value ="任务入参处理完成后")
private String inputParameterBody;
@Lob
@Column(name="OUTPUT_PARAMETER")
@ApiParam(value ="任务出参")
private String outputParameter;
@Lob
@Column(name="OUTPUT_PARAMETER_BODY")
@ApiParam(value ="任务出参处理后")
private String outputParameterBody;
}

@ -0,0 +1,42 @@
package cn.estsh.i3plus.pojo.lac.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 : wei.peng
* @CreateDate : 19-10-22 3:32
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="LAC_TASK_TYPE")
@Api(value="任务类型",description = "任务类型")
public class LacTaskType extends BaseBean {
@Column(name="TYPE_NAME")
@ApiParam(value ="类型名称")
private String typeName;
@Column(name="TYPE_REF_NUM")
@ApiParam(value ="适配器使用数量")
private Integer typeRefNum;
@Column(name="TYPE_DESCRIPTION")
@ApiParam(value ="类型描述")
private String typeDescription;
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.lac.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.lac.bean.LacCommandStackRecord;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 19-10-22 5:19
* @Modify:
**/
public interface LacCommandStackRecordRepository extends BaseRepository<LacCommandStackRecord, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.lac.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.lac.bean.LacCommandStackType;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 19-10-22 5:19
* @Modify:
**/
public interface LacCommandStackTypeRepository extends BaseRepository<LacCommandStackType, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.lac.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.lac.bean.LacLogTaskDetail;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 19-10-22 5:19
* @Modify:
**/
public interface LacLogTaskDetailRepository extends BaseRepository<LacLogTaskDetail, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.lac.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.lac.bean.LacLogTask;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 19-10-22 5:19
* @Modify:
**/
public interface LacLogTaskRepository extends BaseRepository<LacLogTask, Long> {
}

@ -0,0 +1,15 @@
package cn.estsh.i3plus.pojo.lac.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.lac.bean.LacTaskType;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 19-10-22 5:19
* @Modify:
**/
public interface LacTaskTypeRepository extends BaseRepository<LacTaskType, Long> {
}

@ -0,0 +1,47 @@
package cn.estsh.i3plus.pojo.lac.sqlpack;
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
import cn.estsh.i3plus.pojo.lac.bean.*;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @CreateDate : 19-10-22 5:34
* @Modify:
**/
public class LacHqlPack {
private LacHqlPack() {
}
public static DdlPackBean packHqlLacTaskType(LacTaskType bean){
DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean();
return ddlPackBean;
}
public static DdlPackBean packHqlLacLogTaskDetail(LacLogTaskDetail bean){
DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean();
return ddlPackBean;
}
public static DdlPackBean packHqlLacLogTask(LacLogTask bean){
DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean();
return ddlPackBean;
}
public static DdlPackBean packHqlLacCommandStackType(LacCommandStackType bean){
DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean();
return ddlPackBean;
}
public static DdlPackBean packHqlLacCommandStackRecord(LacCommandStackRecord bean){
DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean();
return ddlPackBean;
}
}

@ -11,6 +11,8 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description:
@ -39,4 +41,12 @@ public class MesDefect extends BaseBean {
@Column(name = "DEFECT_TYPE")
@ApiParam("缺陷类型")
private String defectType;
@Transient
@ApiParam("缺陷位置")
private String defectLocation;
@Transient
@ApiParam("缺陷类型子集")
private List<MesDefect> mesDefectList;
}

@ -11,6 +11,8 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description:
@ -49,7 +51,7 @@ public class MesDefectRecord extends BaseBean {
@Column(name="DEFECT_LOCATION")
@ApiParam("缺陷位置")
private Integer defectLocation;
private String defectLocation;
@Column(name="REPAIR_STATUS")
@ApiParam("维修状态")
@ -66,4 +68,7 @@ public class MesDefectRecord extends BaseBean {
@Column(name="MEMO")
@ApiParam("备注")
private String memo;
@Transient
private List<MesDefect> mesDefectList;
}

@ -82,5 +82,5 @@ public class MesDismantleRecord extends BaseBean {
@Column(name = "MEMO")
@ApiParam("备注")
private String meno;
private String memo;
}

@ -87,7 +87,7 @@ public class MesProdBindRecord extends BaseBean {
@Column(name = "IS_KEY")
@ApiParam(value = "是否关键件")
private String isKey;
private Integer isKey;
@Column(name = "ACTION_TYPE")
@ApiParam(value = "动作类型")

@ -80,7 +80,7 @@ public class MesQcCheckData extends BaseBean {
@Column(name = "QTY")
@ApiParam("产品数量")
private String qty;
private Integer qty;
@Column(name = "MEMO")
@ApiParam("备注")

@ -34,7 +34,7 @@ public class MesRepair extends BaseBean {
@Column(name = "REPAIR_NAME")
@ApiParam("维修名称")
private String repariName;
private String repairName;
@Column(name = "REPAIR_TYPE")
@ApiParam("维修类型")

@ -11,6 +11,8 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description:
@ -82,5 +84,17 @@ public class MesRepairRecord extends BaseBean {
@Column(name = "MEMO")
@ApiParam("备注")
private String meno;
private String memo;
@Transient
@ApiParam("备注")
private String spareMemo;
@Transient
@ApiParam("不良记录id")
private Long defectRecordId;
@Transient
@ApiParam("缺陷集合")
private List<MesDefect> mesDefectList;
}

@ -46,7 +46,7 @@ public class MesScrapRecord extends BaseBean {
@Column(name = "SCRAP_CODE")
@ApiParam("报废代码")
private String repairCode;
private String scrapCode;
@Column(name = "SCRAP_NAME")
@ApiParam("报废名称")
@ -66,5 +66,5 @@ public class MesScrapRecord extends BaseBean {
@Column(name = "MEMO")
@ApiParam("备注")
private String meno;
private String memo;
}

@ -47,4 +47,16 @@ public class MesShift extends BaseBean {
@Column(name = "WORK_TIMES")
@ApiParam("作业时长")
private Double workTimes;
@Column(name="SHIFT_SEQ")
@ApiParam("班次顺序")
private Integer shiftSeq;
public int getShiftSeqVal() {
return this.shiftSeq == null ? 0 : this.shiftSeq;
}
public double getWorkTimesVal() {
return this.workTimes == null ? 0.0d : this.workTimes;
}
}

@ -45,5 +45,5 @@ public class MesWorkCell extends BaseBean {
@Column(name = "WORK_CELL_TYPE")
@ApiParam("工位类型")
private String workCellType;
private Integer workCellType;
}

@ -0,0 +1,31 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesDefect;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\24 22:04
* @Modify:
**/
@Data
public class MesDefectModel {
private String defectCode;
@ApiParam("缺陷名称")
private String defectName;
@ApiParam("缺陷类型")
private String defectType;
@Transient
@ApiParam("缺陷分类子集")
private List<MesDefect> mesDefectList;
}

@ -1,36 +0,0 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\18 19:15
* @Modify:
**/
@Data
@Api("mes 物料BOM")
public class MesPartBomModel {
@ApiParam("物料编号")
private String partNo;
@ApiParam("物料名称")
private String partName;
@ApiParam("数量")
private Integer qty;
public MesPartBomModel() {
}
public MesPartBomModel(String partNo, String partName, Integer qty) {
this.partNo = partNo;
this.partName = partName;
this.qty = qty;
}
}

@ -0,0 +1,61 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\24 22:04
* @Modify:
**/
@Data
public class MesProcessBomModel {
private Long id;
@ApiParam("子物料编码")
private String itemPartNo;
@ApiParam("子物料名称")
private String itemPartName;
@ApiParam("产品数量")
private Double qty;
private Integer isValid;
private Integer isDeleted;
private String organizeCode;
private Integer isFeed;
private String workCenterCode;
private String workCellCode;
@ApiParam("拆解数")
private Double dismantleQty;
@ApiParam("产品物料编码")
private String parentPartNo;
@ApiParam("产品物料名称")
private String parentPartName;
@ApiParam("合格数")
private Integer okQty;
@ApiParam("缺失数")
private Integer missQty;
@ApiParam("报废数")
private Integer scrapQty;
public MesProcessBomModel() {
}
public MesProcessBomModel(Long id, String itemPartNo, String itemPartName, Double qty, Integer isValid, Integer isDeleted, String organizeCode, Integer isFeed, String workCenterCode, String workCellCode, String parentPartNo, String parentPartName) {
this.id = id;
this.itemPartNo = itemPartNo;
this.itemPartName = itemPartName;
this.qty = qty;
this.isValid = isValid;
this.isDeleted = isDeleted;
this.organizeCode = organizeCode;
this.isFeed = isFeed;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.parentPartNo = parentPartNo;
this.parentPartName = parentPartName;
}
}

@ -0,0 +1,75 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\10\24 22:05
* @Modify:
**/
@Data
public class MesProdBindRecordModel {
private Long id;
private String itemPartNo;
private String itemPartName;
private Double qty;
private Integer isValid;
private Integer isDeleted;
private String organizeCode;
private Integer isFeed;
private String workCenterCode;
private String workCellCode;
private String kpSn;
@ApiParam("拆解数")
private Double dismantleQty;
@ApiParam("产品物料编码")
private String parentPartNo;
@ApiParam("产品物料名称")
private String parentPartName;
@ApiParam("合格数")
private Integer okQty;
@ApiParam("缺失数")
private Integer missQty;
@ApiParam("报废数")
private Integer scrapQty;
public MesProdBindRecordModel() {
}
public MesProdBindRecordModel(Long id, String itemPartNo, String itemPartName, Double qty, Integer isValid, Integer isDeleted, String organizeCode, Integer isFeed, String workCenterCode, String workCellCode, String kpSn, String parentPartNo, String parentPartName, Double dismantleQty) {
this.id = id;
this.itemPartNo = itemPartNo;
this.itemPartName = itemPartName;
this.qty = qty;
this.isValid = isValid;
this.isDeleted = isDeleted;
this.organizeCode = organizeCode;
this.isFeed = isFeed;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.kpSn = kpSn;
this.parentPartNo = parentPartNo;
this.parentPartName = parentPartName;
this.dismantleQty = dismantleQty;
}
public MesProdBindRecordModel(Long id, String itemPartNo, String itemPartName, Double qty, Integer isValid, Integer isDeleted, String organizeCode, Integer isFeed, String workCenterCode, String workCellCode, String kpSn, String parentPartNo, String parentPartName) {
this.id = id;
this.itemPartNo = itemPartNo;
this.itemPartName = itemPartName;
this.qty = qty;
this.isValid = isValid;
this.isDeleted = isDeleted;
this.organizeCode = organizeCode;
this.isFeed = isFeed;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.kpSn = kpSn;
this.parentPartNo = parentPartNo;
this.parentPartName = parentPartName;
}
}

@ -40,7 +40,7 @@ public class MesEquTask extends BaseBean {
private Integer taskType;
@Column(name = "TASK_STATUS")
@ApiParam("作业状态")
@ApiParam("任务状态")
private Integer taskStatus;
@Column(name = "WORK_CENTER_CODE")
@ -80,6 +80,10 @@ public class MesEquTask extends BaseBean {
private String planTimeEnd;
@Transient
@ApiParam(value = "用于设备点检保养维修作业页面开窗查询任务,点检保养=1维修=2")
private String pageType;
@Transient
@ApiParam(value ="明细列表")
private List<MesEquTaskDetail> mesEquTaskDetailList;

@ -12,6 +12,8 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description :
@ -57,5 +59,28 @@ public class MesEquTaskDetail extends BaseBean {
@ApiParam("维修标识")
private Integer repairFlag;
@Transient
@ApiParam(value = "点检保养记录")
private List<MesEquTaskStandardRecord> equTaskStandardRecordList;
@Transient
@ApiParam(value = "工位")
private String workCellCode;
@Transient
@ApiParam(value = "生产线")
private String workCenterCode;
@Transient
@ApiParam(value = "故障现象")
private String fpCode;
@Transient
@ApiParam(value = "故障原因")
private String fcCode;
@Transient
@ApiParam(value = "处理方法")
private String fmCode;
}

@ -0,0 +1,68 @@
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 : wangjie
* @CreateDate : 2019-10-11
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_EQU_TASK_REPAIR_RECORD")
@Api("设备维修作业记录")
public class MesEquTaskRepairRecord extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("作业任务编号")
private String taskNo;
@Column(name = "TASK_TYPE")
@ApiParam("作业类型")
private Integer taskType;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
@Column(name = "EQUIPMENT_NAME")
@ApiParam("设备名称")
private String equipmentName;
@Column(name = "FP_CODE")
@ApiParam("故障现象")
private String fpCode;
@Column(name = "FC_CODE")
@ApiParam("故障原因")
private String fcCode;
@Column(name = "FM_CODE")
@ApiParam("处理方法")
private String fmCode;
@Column(name = "FINAL_RESULT")
@ApiParam("整体结果")
private Integer finalResult;
@Column(name = "MEMO")
@ApiParam("备注")
private String memo;
}

@ -0,0 +1,77 @@
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 javax.persistence.Transient;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-10-11
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_EQU_TASK_STANDARD_RECORD")
@Api("设备点检保养作业记录")
public class MesEquTaskStandardRecord extends BaseBean {
@Column(name = "TASK_NO")
@ApiParam("作业任务编号")
private String taskNo;
@Column(name = "TASK_TYPE")
@ApiParam("作业类型")
private Integer taskType;
@Column(name = "EQUIPMENT_CODE")
@ApiParam("设备代码")
private String equipmentCode;
@Column(name = "EQUIPMENT_NAME")
@ApiParam("设备名称")
private String equipmentName;
@Column(name = "ACTION_ITEM")
@ApiParam("操作项")
private String actionItem;
@Column(name = "ACTION_STANDARD")
@ApiParam("操作标准")
private String actionStandard;
@Column(name = "ACTION_GUIDE")
@ApiParam("操作指导")
private String actionGuide;
@Column(name = "CHECK_VALUE")
@ApiParam("检测值")
private String checkValue;
@Column(name = "CHECK_RESULT")
@ApiParam("判定结果")
private Integer checkResult;
@Column(name = "FINAL_RESULT")
@ApiParam("整体结果")
private Integer finalResult;
@Column(name = "MEMO")
@ApiParam("备注")
private String memo;
}

@ -38,5 +38,5 @@ public class MesRepair extends BaseBean {
@Column(name = "REPAIR_TYPE")
@ApiParam("维修类型")
private Integer repairType;
private String repairType;
}

@ -82,5 +82,5 @@ public class MesRepairRecord extends BaseBean {
@Column(name = "MEMO")
@ApiParam("备注")
private String meno;
private String memo;
}

@ -62,5 +62,5 @@ public class MesScrapRecord extends BaseBean {
@Column(name = "MEMO")
@ApiParam("备注")
private String meno;
private String memo;
}

@ -47,4 +47,16 @@ public class MesShift extends BaseBean {
@Column(name = "WORK_TIMES")
@ApiParam("作业时长")
private Double workTimes;
@Column(name="SHIFT_SEQ")
@ApiParam("班次顺序")
private Integer shiftSeq;
public int getShiftSeqVal() {
return this.shiftSeq == null ? 0 : this.shiftSeq;
}
public double getWorkTimesVal() {
return this.workTimes == null ? 0.0d : this.workTimes;
}
}

@ -49,7 +49,7 @@ public class MesWorkCell extends BaseBean {
@Column(name = "WORK_CELL_TYPE")
@ApiParam("工位类型")
private String workCellType;
private Integer workCellType;
@Transient
@ApiParam(value = "子集列表")

@ -0,0 +1,86 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Description : mesmodel
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-05-10 17:16
* @Modify:
**/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("mes同步设备安灯维修任务model")
public class AndonEquRepairModel extends BaseBean {
@ApiParam(value = "安灯队列编号")
public String andonOrderNo;
@ApiParam(value = "工作中心代码")
public String workCenterCode;
@ApiParam(value = "工作中心名称")
public String workCenterNameRdd;
@ApiParam(value = "工作单元名称")
public String workCellNameRdd;
@ApiParam(value = "工作单元代码")
public String workCellCode;
@ApiParam(value = "设备代码")
public String equipmentCode;
@ApiParam(value = "设备名称")
public String equipmentNameRdd;
@ApiParam(value = "安灯状态代码")
public String statusCode;
@ApiParam(value="解决时间",example = "2018-01-01 01:00:00")
public String resetTime;
@ApiParam(value = "呼叫原因代码")
public String acCode;
@ApiParam(value = "呼叫原因描述")
public String acNameRdd;
@ApiParam(value = "呼叫具体原因")
public String acDesc;
@ApiParam(value = "事件原因代码")
public String ecCode;
@ApiParam(value = "事件原因描述")
public String ecNameRdd;
@ApiParam(value = "事件具体原因")
public String ecDesc;
@ApiParam(value = "事件方法代码")
public String emCode;
@ApiParam(value = "事件方法描述")
public String emNameRdd;
@ApiParam(value = "事件具体方法")
public String emDesc;
@ApiParam(value = "事件现象代码")
private String epmCode;
@ApiParam(value = "事件现象描述")
private String epmNameRdd;
@ApiParam(value = "组织名称")
private String organizeNameRdd;
}

@ -31,8 +31,8 @@ import java.util.List;
@Api("用户信息model")
public class EquTaskNotifyUserModel extends BaseBean {
@ApiParam(value ="人员ID")
private Long userId;
@ApiParam(value ="账户ID")
private Long userInfoId;
@Column(name="USER_NAME_RDD")
@ApiParam(value ="用户名称" , access ="账号名称")

@ -1,9 +1,11 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesEquTaskStandardRecord;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class MesEquTaskDetailModel implements Serializable {
@ -70,6 +72,12 @@ public class MesEquTaskDetailModel implements Serializable {
@ApiParam("作业类型")
private String taskTypeName;
@ApiParam("设备点检保养记录修改标识")
private Boolean isUpdate;
@ApiParam("设备点检保养记录")
private List<MesEquTaskStandardRecord> equTaskStandardRecordList;
public MesEquTaskDetailModel() {

@ -0,0 +1,77 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description : 线
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-10-22
* @Modify:
**/
@Data
public class ProductBiModel {
@ApiParam("工作中心代码")
private String workCenterCode;
@ApiParam("工作中心名称")
private String workCenterName;
@ApiParam("生产区域代码")
private String areaCode;
@ApiParam("运行状态")
private Integer runningStatus;
@ApiParam(value = "物料号")
private String partNo;
@ApiParam(value = "物料名称")
private String partName;
@ApiParam(value = "计划数量")
private double planQty;
@ApiParam(value = "产量")
private double outputQty;
@ApiParam(value = "完成率")
private double CompleteRate;
@ApiParam(value = "合格数量")
private double passQty;
@ApiParam(value = "不良数量")
private double ngQty;
@ApiParam(value = "合格率")
private double passRate;
@ApiParam(value = "不良率")
private double ngRate;
@ApiParam("客户代码")
private String customerCode;
@ApiParam("客户名称")
private String customerName;
@ApiParam("x坐标内容")
private List<String> xAxis;
@ApiParam("图表显示的数据")
private List<ProductBiSeriesModel> series;
public double getCompleteRate() {
if(this.planQty != 0) {
this.CompleteRate = outputQty / planQty;
} else {
this.CompleteRate = 0;
}
return this.CompleteRate;
}
}

@ -0,0 +1,24 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description : 线
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-10-22
* @Modify:
**/
@Data
public class ProductBiSeriesModel {
@ApiParam("名称")
private String name;
@ApiParam("类型")
private String type;
@ApiParam("显示的数据")
private List<Double> data;
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesEquTaskRepairRecord;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-10-11
* @Modify:
**/
@Repository
public interface MesEquTaskRepairRecordRepository extends BaseRepository<MesEquTaskRepairRecord, Long> {
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesEquTaskStandardRecord;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : wangjie
* @CreateDate : 2019-10-11
* @Modify:
**/
@Repository
public interface MesEquTaskStandardRecordRepository extends BaseRepository<MesEquTaskStandardRecord, Long> {
}

@ -1530,4 +1530,27 @@ public class MesHqlPack {
}
return packBean;
}
/**
* mes
* @param mesEquTaskDetail
* @param organizeCode
* @return
*/
public static DdlPackBean getMesEquTaskDetailByTaskNo(MesEquTaskDetail mesEquTaskDetail, String organizeCode) {
DdlPackBean packBean = getMesAllData(organizeCode);
if (!StringUtils.isEmpty(mesEquTaskDetail.getTaskNo())) {
DdlPreparedPack.getStringEqualPack(mesEquTaskDetail.getTaskNo(), "taskNo", packBean);
}
if (!StringUtils.isEmpty(mesEquTaskDetail.getEquipmentCode())) {
DdlPreparedPack.getStringLikerPack(mesEquTaskDetail.getEquipmentCode(), "equipmentCode", packBean);
}
if (!StringUtils.isEmpty(mesEquTaskDetail.getActionStatus())) {
DdlPreparedPack.getNumEqualPack(mesEquTaskDetail.getActionStatus(), "actionStatus", packBean);
}
if (!StringUtils.isEmpty(mesEquTaskDetail.getFinalResult())) {
DdlPreparedPack.getNumEqualPack(mesEquTaskDetail.getFinalResult(), "finalResult", packBean);
}
return packBean;
}
}

@ -36,6 +36,11 @@
<dependency>
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-andon</artifactId>
</dependency>
<dependency>
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-wms</artifactId>
</dependency>
<dependency>

@ -0,0 +1,27 @@
package cn.estsh.i3plus.pojo.model.andon;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description: mesDTO
* @Reference:
* @Author: Crish
* @CreateDate:2019-10-25-14:40
* @Modify:
**/
@Data
public class AndonManageQueueSyncModel{
@ApiParam("同步时间")
private String syscTime;
@ApiParam("安灯状态")
private List<Object> statusList;
@ApiParam("组织代码")
private String organizeCode;
}

@ -1,6 +1,6 @@
package cn.estsh.i3plus.pojo.model.wms;
import cn.estsh.i3plus.pojo.wms.bean.WmsMoveSn;
import cn.estsh.i3plus.pojo.wms.bean.WmsMoveDetails;
import lombok.Data;
import java.io.Serializable;
@ -18,5 +18,6 @@ public class WmsWriteOffModel implements Serializable {
private static final long serialVersionUID = -5490167040159056107L;
private String locateNo;
private List<String> snList;
private List<WmsMoveSn> summaryList;
private List<WmsMoveDetails> summaryList;
private String organizeCode;
}

@ -13,6 +13,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description :
@ -84,6 +85,18 @@ public class WmsBom extends BaseBean {
@Column(name = "EFF_END_TIME")
private String effEndTime;
@ApiParam(value = "目标存储区")
@Transient
public String destZoneNo;
@ApiParam(value = "交易类型")
@Transient
public String transTypeCode;
@ApiParam(value = "线路代码")
@Transient
public String routingCode;
public Double getQty() {
return this.qty == null ? 0 : this.qty.doubleValue();
}

@ -0,0 +1,71 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description :
* @Reference :
* @author: jessica.chen
* @date: 2019/10/22 17:10
* @Modify:
*/
@Data
@Api(value="领料单模板",description = "领料单模板")
public class WmsBomTemplate extends BaseBean {
private static final long serialVersionUID = 2167743108452607611L;
@ApiParam(value = "父物料号")
@AnnoOutputColumn
private String partNo;
@ApiParam(value = "父物料描述")
@AnnoOutputColumn
private String partName;
@ApiParam(value = "父计量单位")
@AnnoOutputColumn
private String unit;
@ApiParam(value = "父级数量")
@AnnoOutputColumn
private Double qty;
@ApiParam(value = "子物料号")
@AnnoOutputColumn
private String itemPartNo;
@ApiParam(value = "子物料描述")
@AnnoOutputColumn
private String itemPartName;
@ApiParam(value = "子计量单位")
@AnnoOutputColumn
private String itemUnit;
@ApiParam(value = "子用量")
@AnnoOutputColumn
private Double itemQty;
@ApiParam(value = "BOM编号")
@AnnoOutputColumn
private String bomNum;
@ApiParam(value = "BOM版本号")
@AnnoOutputColumn
private String bomVersion;
@ApiParam(value = "有效起始日期")
@AnnoOutputColumn
private String effStartTime;
@ApiParam(value = "有效截止日期")
@AnnoOutputColumn
private String effEndTime;
}

@ -107,6 +107,10 @@ public class WmsCSFactTrans extends BaseBean {
@ApiParam("是否范围内")
public Integer isScope;
@Column(name = "VENDOR_NO")
@ApiParam(value = "供应商编码")
public String vendorNo;
@Transient
@ApiParam(value = "实盘箱数", example = "1")
public Long countBoxQty;
@ -163,9 +167,9 @@ public class WmsCSFactTrans extends BaseBean {
this.zoneNo = zoneNo;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
}
}

@ -101,6 +101,10 @@ public class WmsCSOrderDetails extends BaseBean {
@AnnoOutputColumn(refClass = WmsEnumUtil.CS_TRANS_STATUS.class,refForeignKey = "value",value = "description")
public Integer transStatus;
@Column(name = "VENDOR_NO")
@ApiParam(value = "供应商编码")
public String vendorNo;
@Transient
@ApiParam(value = "实盘数量", example = "1")
public Double factQty;

@ -225,7 +225,12 @@ public class WmsMoveDetails extends BaseBean {
public Long getFinishedCounts() {
return finishedCounts == null ? 0L : this.finishedCounts;
}
public WmsMoveDetails(String partNo, String partNameRdd, String unit, Double transQty) {
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.unit = unit;
this.transQty = transQty;
}
public WmsMoveDetails(String organizeCode, String partNo, String partNameRdd, String workCenterCode, String fPartNo, String fPartName, String unit, Double qty,
String createDateTime, String sn, String srcZoneNo) {
this.organizeCode = organizeCode;

@ -202,14 +202,6 @@ public class WmsMoveSn extends BaseBean {
public WmsMoveSn() {
}
public WmsMoveSn(String partNo, String partNameRdd, String unit, String lotNo, Double qty) {
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.unit = unit;
this.lotNo = lotNo;
this.qty = qty;
}
public Long getWaitingCounts() {
return waitingCounts == null ? 0L : this.waitingCounts;
}

@ -116,6 +116,10 @@ public class WmsPOMaster extends BaseBean {
@ApiParam("集装箱号")
public String containerNo;
@Column(name = "PRIOR_RC")
@ApiParam("预收货")
public Integer priorRC;
@Transient
@ApiParam(value = "工厂名称")
public String organizeName;

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save