Merge remote-tracking branch 'origin/dev' into test

yun-zuoyi
jenkins 6 years ago
commit 21d3c053ca

@ -143,6 +143,10 @@ public class AndonManageQueue extends BaseBean {
@ApiParam(value = "解决人")
private String resetUser;
@Transient
@ApiParam(value = "异常时长")
private String resetUserName;
@Column(name = "IS_SHIFT_CALL")
@ApiParam(value = "是否转呼", example = "1")
private Integer isShiftCall;
@ -226,6 +230,22 @@ public class AndonManageQueue extends BaseBean {
@ApiParam(value = "响应时长", example = "0")
private Long signTime;
@Transient
@ApiParam(value = "ANDON次数用于报表统计", example = "0")
private Integer andonCount;
@Transient
@ApiParam(value = "平均响应时长", example = "0")
private Long avgSignTime;
@Transient
@ApiParam(value = "平均解决时长", example = "0")
private Long avgResolveTime;
@Transient
@ApiParam(value = "比例", example = "0")
private Double proportion;
@Column(name = "SEND_FLAG")
@ApiParam(value = "发送标志")
private String sendFlag;

@ -608,5 +608,40 @@ public class MesEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum STEP_PARAM_TYPE{
QUALIFIED(10,"数字"),
DEFECTED(20,"字符串"),
SCRAPED(30,"可选值");
private int value;
private String description;
STEP_PARAM_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;
}
}
}

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description :
@ -51,10 +52,19 @@ public class MesProdRouteOptParam extends BaseBean {
@ApiParam("工步参数代码")
private String paramCode;
@Column(name = "PARAM_TYPE")
@ApiParam("工步参数类型")
private Integer paramType;
@Column(name = "PARAM_VALUE")
@ApiParam("工步参数值")
private String paramValue;
@Transient
@Column(name = "PARAM_ATTRIBUTE")
@ApiParam("参数属性")
private String paramAttribute;
public long getProdRouteCfgIdVal() {
return this.prodRouteCfgId == null ? 0l : this.prodRouteCfgId;
}
@ -62,4 +72,8 @@ public class MesProdRouteOptParam extends BaseBean {
public int getStepSeq() {
return this.stepSeq == null ? 0 : this.stepSeq;
}
public int getParamTypeVal() {
return this.paramType == null ? 0 : this.paramType;
}
}

@ -34,4 +34,8 @@ public class MesRoute extends BaseBean {
@Column(name = "ROUTE_NAME")
@ApiParam("流程名称")
private String routeName;
@Column(name = "POSITION")
@ApiParam("GOJS位置")
private String position;
}

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description :
@ -39,19 +40,32 @@ public class MesRouteProcessStep extends BaseBean {
@ApiParam("工步代码")
private String stepCode;
@Column(name = "STEP_SEQ")
@ApiParam("工步顺序")
private Integer stepSeq;
@Column(name = "SEQ")
@ApiParam("顺序")
private Integer seq;
@Column(name = "PARAM_CODE")
@ApiParam("工步参数代码")
private String paramCode;
@Column(name = "PARAM_TYPE")
@ApiParam("工步参数类型")
private Integer paramType;
@Column(name = "PARAM_VALUE")
@ApiParam("工步参数值")
private String paramValue;
@Transient
@Column(name = "PARAM_ATTRIBUTE")
@ApiParam("参数属性")
private String paramAttribute;
public int getStepSeqVal() {
return this.stepSeq == null ? 0 : this.stepSeq;
return this.seq == null ? 0 : this.seq;
}
public int getParamTypeVal() {
return this.paramType == null ? 0 : this.paramType;
}
}

@ -31,6 +31,10 @@ public class MesStepParam extends BaseBean {
@ApiParam("工步代码")
private String stepCode;
@Column(name = "PARAM_TYPE")
@ApiParam("参数类型")
private Integer paramType;
@Column(name = "PARAM_CODE")
@ApiParam("参数代码")
private String paramCode;

@ -19,6 +19,7 @@ public class MesHqlPack {
/**
*
*
* @param organizeCode
* @return
*/
@ -32,6 +33,7 @@ public class MesHqlPack {
/**
*
*
* @param mesPlanOrder
* @return
*/
@ -72,13 +74,14 @@ public class MesHqlPack {
"createDatetime", packBean, true);
// 排序
DdlPreparedPack.getOrderDefault(mesPlanOrder);
DdlPreparedPack.getOrderByPack(new Object[]{"2"},new String[]{mesPlanOrder.getOrderByParam()} , packBean);
DdlPreparedPack.getOrderDefault(mesPlanOrder);
DdlPreparedPack.getOrderByPack(new Object[]{"2"}, new String[]{mesPlanOrder.getOrderByParam()}, packBean);
return packBean;
}
/**
*
*
* @param mesPart
* @return
*/
@ -105,12 +108,13 @@ public class MesHqlPack {
}
DdlPreparedPack.getOrderDefault(mesPart);
DdlPreparedPack.getOrderByPack(new Object[]{"2"},new String[]{mesPart.getOrderByParam()} , packBean);
DdlPreparedPack.getOrderByPack(new Object[]{"2"}, new String[]{mesPart.getOrderByParam()}, packBean);
return packBean;
}
/**
*
*
* @param mesWorkOrder
* @return
*/
@ -151,12 +155,13 @@ public class MesHqlPack {
// mesWorkOrder.getEndTimeEnd(),
// "endTime", packBean, true);
DdlPreparedPack.getOrderDefault(mesWorkOrder);
DdlPreparedPack.getOrderByPack(new Object[]{"2"},new String[]{mesWorkOrder.getOrderByParam()} , packBean);
DdlPreparedPack.getOrderByPack(new Object[]{"2"}, new String[]{mesWorkOrder.getOrderByParam()}, packBean);
return packBean;
}
/**
*
*
* @param mesQueueOrder
* @return
*/
@ -185,12 +190,13 @@ public class MesHqlPack {
// DdlPreparedPack.getOrderDefault(mesQueueOrder);
// 按照队列序列号倒序
DdlPreparedPack.getOrderByPack(new Object[]{"2"},new String[]{"seq"} , packBean);
DdlPreparedPack.getOrderByPack(new Object[]{"2"}, new String[]{"seq"}, packBean);
return packBean;
}
/**
*
*
* @param organizeCode
* @return
*/
@ -204,6 +210,7 @@ public class MesHqlPack {
/**
* MES
*
* @param mesArea
* @return
*/
@ -218,6 +225,7 @@ public class MesHqlPack {
/**
* MES
*
* @param mesWorkCenter
* @return
*/
@ -226,7 +234,7 @@ public class MesHqlPack {
if (StringUtils.isNotEmpty(mesWorkCenter.getWorkCenterCode())) {
DdlPreparedPack.getStringEqualPack(mesWorkCenter.getWorkCenterCode(), "workCenterCode", packBean);
}
if (StringUtils.isNotEmpty(mesWorkCenter.getAreaCode())){
if (StringUtils.isNotEmpty(mesWorkCenter.getAreaCode())) {
DdlPreparedPack.getStringEqualPack(mesWorkCenter.getAreaCode(), "areaCode", packBean);
}
@ -235,6 +243,7 @@ public class MesHqlPack {
/**
* MES
*
* @param mesWorkCell
* @return
*/
@ -243,10 +252,10 @@ public class MesHqlPack {
if (StringUtils.isNotEmpty(mesWorkCell.getWorkCenterCode())) {
DdlPreparedPack.getStringEqualPack(mesWorkCell.getWorkCenterCode(), "workCenterCode", packBean);
}
if (StringUtils.isNotEmpty(mesWorkCell.getAreaCode())){
if (StringUtils.isNotEmpty(mesWorkCell.getAreaCode())) {
DdlPreparedPack.getStringEqualPack(mesWorkCell.getAreaCode(), "areaCode", packBean);
}
if (StringUtils.isNotEmpty(mesWorkCell.getWorkCellCode())){
if (StringUtils.isNotEmpty(mesWorkCell.getWorkCellCode())) {
DdlPreparedPack.getStringEqualPack(mesWorkCell.getWorkCellCode(), "workCellCode", packBean);
}
@ -254,19 +263,30 @@ public class MesHqlPack {
}
/**
* MES
* @param mesEquipment
*
*
* @param mesRoute
* @return
*/
public static DdlPackBean getMesEquipment(MesEquipment mesEquipment, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesEquipment, organizeCode);
if (StringUtils.isNotEmpty(mesEquipment.getWorkCellCode())){
DdlPreparedPack.getStringEqualPack(mesEquipment.getWorkCellCode(), "workCellCode", packBean);
}
if (StringUtils.isNotEmpty(mesEquipment.getEquipmentCode())){
DdlPreparedPack.getStringEqualPack(mesEquipment.getEquipmentCode(), "equipmentCode", packBean);
}
public static DdlPackBean packHqlMesRoute(MesRoute mesRoute, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesRoute, organizeCode);
DdlPreparedPack.getStringLikerPack(mesRoute.getRouteCode(), "routeCode", packBean);
DdlPreparedPack.getStringLikerPack(mesRoute.getRouteName(), "routeName", packBean);
packBean.setOrderByStr(mesRoute.orderBy());
return packBean;
}
/**
*
*
* @param mesProdRouteCfg
* @param organizeCode
* @return
*/
public static DdlPackBean packHqlMesProdRouteCfg(MesProdRouteCfg mesProdRouteCfg, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesProdRouteCfg, organizeCode);
DdlPreparedPack.getStringEqualPack(mesProdRouteCfg.getPartNo(), "partNo", packBean);
DdlPreparedPack.getStringEqualPack(mesProdRouteCfg.getWorkCenterCode(), "workCenterCode", packBean);
packBean.setOrderByStr(mesProdRouteCfg.orderBy());
return packBean;
}

@ -0,0 +1,30 @@
package cn.estsh.i3plus.pojo.model.mes;
import cn.estsh.i3plus.pojo.mes.bean.MesRouteProcess;
import cn.estsh.i3plus.pojo.model.wms.WmsActionGroupDetailsModel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description : Model
* @Reference :
* @Author : dragon.xu
* @CreateDate : 2019-05-15 13:27
* @Modify:
**/
@Data
@Api("流程Model")
public class MesRouteModel implements Serializable {
@ApiParam("流程代码")
public String routeCode;
@ApiParam("工厂代码")
public String organizeCode;
@ApiParam("GOJS位置")
public String position;
@ApiParam("流程明细Model集合")
public List<MesRouteProcessModel> mesRouteProcessModelList;
}

@ -0,0 +1,30 @@
package cn.estsh.i3plus.pojo.model.mes;
import cn.estsh.i3plus.pojo.mes.bean.MesProdRouteOptParam;
import cn.estsh.i3plus.pojo.mes.bean.MesRouteProcess;
import cn.estsh.i3plus.pojo.mes.bean.MesRouteProcessStep;
import cn.estsh.i3plus.pojo.wms.bean.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
import java.util.Map;
/**
* @Description : Model
* @Reference :
* @Author : dragon.xu
* @CreateDate : 2019-04-29 15:39
* @Modify:
**/
@Data
@Api("流程工序Model")
public class MesRouteProcessModel {
@ApiParam("流程工序")
public MesRouteProcess mesRouteProcess;
@ApiParam("流程工步参数配置表(根据Seq分组)")
public Map<String, List<MesRouteProcessStep>> mesRouteProcessStepMap;
@ApiParam("流程工步参数配置表(根据Seq分组)")
public Map<String, List<MesProdRouteOptParam>> mesProdRouteOptParamMap;
}
Loading…
Cancel
Save