yun-zuoyi
wei.peng 6 years ago
commit 0e79a6cdc9

@ -226,15 +226,15 @@ public class AndonManageQueue extends BaseBean {
@Transient
@ApiParam(value = "ANDON次数用于报表统计", example = "0")
private Integer andonCount;
private Long andonCount;
@Transient
@ApiParam(value = "平均响应时长", example = "0")
private Long avgSignTime;
private Double avgSignTime;
@Transient
@ApiParam(value = "平均解决时长", example = "0")
private Long avgResolveTime;
private Double avgResolveTime;
@Transient
@ApiParam(value = "查询条件ANDON状态")
@ -257,4 +257,85 @@ public class AndonManageQueue extends BaseBean {
public Integer getPriorityLevel() {
return this.priorityLevel == null ? 0 : this.priorityLevel;
}
/**
*
* @param workCenterCode
* @param workCellCode
* @param equipmentCode
* @param shiftCode
* @param alarmCode
* @param andonCount
*/
public AndonManageQueue(String workCenterCode, String workCellCode, String equipmentCode, String shiftCode, String alarmCode, Long andonCount) {
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.equipmentCode = equipmentCode;
this.shiftCode = shiftCode;
this.alarmCode = alarmCode;
this.andonCount = andonCount;
}
/**
*
* @param workCenterCode
* @param workCellCode
* @param alarmCode
* @param ecCode
* @param ecNameRdd
* @param emCode
* @param emNameRdd
* @param avgSignTime
* @param avgResolveTime
* @param andonCount
*/
public AndonManageQueue(String workCenterCode, String workCellCode, String alarmCode, String ecCode, String ecNameRdd, String emCode, String emNameRdd, Double avgSignTime, Double avgResolveTime, Long andonCount) {
this.alarmCode = alarmCode;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.ecCode = ecCode;
this.ecNameRdd = ecNameRdd;
this.emCode = emCode;
this.emNameRdd = emNameRdd;
this.andonCount = andonCount;
this.avgSignTime = avgSignTime;
this.avgResolveTime = avgResolveTime;
}
/**
*
* @param resetUser
* @param alarmCode
* @param andonCount
* @param proportion
* @param avgSignTime
* @param avgResolveTime
*/
public AndonManageQueue(String resetUser, String alarmCode, Long andonCount, Double proportion, Double avgSignTime, Double avgResolveTime) {
this.alarmCode = alarmCode;
this.resetUser = resetUser;
this.andonCount = andonCount;
this.avgSignTime = avgSignTime;
this.avgResolveTime = avgResolveTime;
this.proportion = proportion;
}
/**
*
* @param alarmCode
* @param ecCode
* @param ecNameRdd
* @param proportion
* @param andonCount
*/
public AndonManageQueue(String alarmCode, String ecCode, String ecNameRdd, Double proportion, Long andonCount) {
this.alarmCode = alarmCode;
this.ecCode = ecCode;
this.ecNameRdd = ecNameRdd;
this.andonCount = andonCount;
this.proportion = proportion;
}
public AndonManageQueue() {
}
}

@ -130,14 +130,26 @@ public class AndonManageRecord extends BaseBean {
@ApiParam(value = "呼叫人")
private String callUser;
@Transient
@ApiParam(value = "呼叫人名字")
private String callUserName;
@Column(name = "CONFIRM_USER")
@ApiParam(value = "响应人")
private String confirmUser;
@Transient
@ApiParam(value = "响应人名字")
private String confirmUserName;
@Column(name = "RESET_USER")
@ApiParam(value = "解决人")
private String resetUser;
@Transient
@ApiParam(value = "解决人名字")
private String resetUserName;
@Column(name = "IS_SHIFT_CALL")
@ApiParam(value = "是否转呼", example = "1")
private Integer isShiftCall;

@ -32,6 +32,10 @@ public class MesPLCConfigure extends BaseBean {
@ApiParam("设备ip")
private String ipAddress;
@Column(name="CHANNEL_NAME")
@ApiParam("通道名称")
private String channelName;
@Column(name="DEVICE_NAME")
@ApiParam("设备地址")
private String deviceName;

@ -28,6 +28,7 @@ import javax.persistence.Table;
@Table(name="MES_TORQUE_DETAIL")
@Api("扭矩信息记录表")
public class MesTorqueDetail extends BaseBean {
@Column(name="SN")
@ApiParam("过程条码")
private String serialNumber;
@ -61,8 +62,8 @@ public class MesTorqueDetail extends BaseBean {
private String ok;
@Column(name="PART_NO")
@ApiParam("扭矩是否合格")
private String partNO;
@ApiParam("物料号")
private String partNo;
@Column(name="p_set")
@ApiParam("螺丝枪PSET设置值")
@ -79,4 +80,16 @@ public class MesTorqueDetail extends BaseBean {
@Column(name="FINALANGLE")
@ApiParam("最终扭矩")
private Integer finalAngle;
@Column(name="WORK_ORDER_NO")
@ApiParam("工单号")
private String workOrderNo;
@Column(name="KEY_DATA_CODE")
@ApiParam("关键数据代码")
private String keyDataCode;
@Column(name="RESULT_MSG")
@ApiParam("扭矩判定结果")
private String resultMsg;
}

@ -33,17 +33,21 @@ public class MesPartScheduleBom extends BaseBean {
@Column(name="ITEM_PART_NO")
@ApiParam("关联物料号")
private Integer itemPartNo;
private String itemPartNo;
@Column(name="ITEM_QTY")
@ApiParam("用量")
private String itemQty;
private Double itemQty;
@Column(name="SCHEDULE_TYPE")
@ApiParam("排程类型")
private Double scheduleType;
private Integer scheduleType;
public double getItemQtyVal() {
return this.itemQty == null ? 0.0d : this.itemQty;
}
public double getScheduletTypeVal() {
return this.scheduleType == null ? 0.0d : this.scheduleType;
return this.scheduleType == null ? 0 : this.scheduleType;
}
}

@ -0,0 +1,45 @@
package cn.estsh.i3plus.pojo.mes.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.Table;
import javax.persistence.Transient;
import java.util.List;
/**
* @Description :
* @Reference :
* @Author : dragon.xu
* @CreateDate : 2019-05-22 17:58
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_WORK_CELL_POINT")
@Api("工站队列")
public class MesWorkCellPoint extends BaseBean {
@Column(name = "WORK_CELL_CODE")
@ApiParam("工作单元代码")
private String workCellCode;
@Column(name = "QUEUE_SEQ")
@ApiParam("队列主表序号")
private String queueSeq;
@Column(name = "QUEUE_DETAIL_SEQ")
@ApiParam("队列明细表序号")
private String queueDetailSeq;
}

@ -1,7 +1,5 @@
package cn.estsh.i3plus.pojo.model.mes;
package cn.estsh.i3plus.pojo.mes.model;
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;

@ -1,9 +1,8 @@
package cn.estsh.i3plus.pojo.model.mes;
package cn.estsh.i3plus.pojo.mes.model;
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;

@ -0,0 +1,46 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description : JITModel
* @Reference :
* @Author : dragon.xu
* @CreateDate : 2019-05-22 16:34
* @Modify:
**/
@Data
@Api("JIT队列列表Model")
public class QueueOrderModel implements Serializable {
@ApiParam("队列ID")
public Long queueId;
@ApiParam("队列明细ID")
public Long queueDetailId;
@ApiParam("队列序号")
public Integer queueSeq;
@ApiParam("队列明细序号")
public Integer queDetailSeq;
@ApiParam("客户标识号")
public String custFlagNo;
@ApiParam("产品配置名称")
public String prodCfgName;
@ApiParam("产品类型名称")
public String categoryName;
@ApiParam("产品条码")
public String serialNumber;
@ApiParam("物料号")
public String partNo;
@ApiParam("物料ID")
public Long partId;
@ApiParam("条码状态")
public Integer snStatus;
@ApiParam("生产类型")
public String workType;
}

@ -0,0 +1,46 @@
package cn.estsh.i3plus.pojo.mes.model;
import cn.estsh.i3plus.pojo.mes.bean.MesArea;
import io.swagger.annotations.ApiParam;
import javax.persistence.Transient;
import java.util.List;
public class SysOrganizeModel {
@Transient
@ApiParam(value ="父节点")
private Long parentId;
@Transient
@ApiParam(value ="名称")
private String name;
@Transient
@ApiParam(value ="子集列表")
private List<MesArea> childTreeList;
public List<MesArea> getChildTreeList() {
return childTreeList;
}
public void setChildTreeList(List<MesArea> childTreeList) {
this.childTreeList = childTreeList;
}
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

@ -632,4 +632,86 @@ public class MesHqlPack {
return packBean;
}
/**
* MES
* @param partCategory
* @return
*/
public static DdlPackBean getMesPartCategory(MesPartCategory partCategory, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(partCategory, organizeCode);
if (StringUtils.isNotEmpty(partCategory.getCategoryCode())){
DdlPreparedPack.getStringEqualPack(partCategory.getCategoryCode(), "categoryCode", packBean);
}
if (StringUtils.isNotEmpty(partCategory.getCategoryName())){
DdlPreparedPack.getStringLikerPack(partCategory.getCategoryName(), "categoryName", packBean);
}
return packBean;
}
/**
* MES
* @param packSpec
* @return
*/
public static DdlPackBean getMesPackSpec(MesPackSpec packSpec, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(packSpec, organizeCode);
if (StringUtils.isNotEmpty(packSpec.getSpecCode())){
DdlPreparedPack.getStringEqualPack(packSpec.getSpecCode(), "specCode", packBean);
}
if (StringUtils.isNotEmpty(packSpec.getSpecName())){
DdlPreparedPack.getStringLikerPack(packSpec.getSpecName(), "specName", packBean);
}
return packBean;
}
/**
* MES
* @param produceCategory
* @return
*/
public static DdlPackBean getMesProduceCategory(MesProduceCategory produceCategory, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(produceCategory, organizeCode);
if (StringUtils.isNotEmpty(produceCategory.getProduceCategoryCode())){
DdlPreparedPack.getStringEqualPack(produceCategory.getProduceCategoryCode(), "produceCategoryCode", packBean);
}
if (StringUtils.isNotEmpty(produceCategory.getProduceCategoryName())){
DdlPreparedPack.getStringLikerPack(produceCategory.getProduceCategoryName(), "produceCategoryName", packBean);
}
return packBean;
}
/**
* MES
* @param kpsnRule
* @return
*/
public static DdlPackBean getMesKpsnRule(MesKpsnRule kpsnRule, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(kpsnRule, organizeCode);
if (StringUtils.isNotEmpty(kpsnRule.getPartNo())){
DdlPreparedPack.getStringEqualPack(kpsnRule.getPartNo(), "partNo", packBean);
}
return packBean;
}
/**
* MES
* @param partScheduleBom
* @return
*/
public static DdlPackBean getMesPartScheduleBom(MesPartScheduleBom partScheduleBom, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(partScheduleBom, organizeCode);
if (StringUtils.isNotEmpty(partScheduleBom.getPartNo())){
DdlPreparedPack.getStringEqualPack(partScheduleBom.getPartNo(), "partNo", packBean);
}
if (StringUtils.isNotEmpty(partScheduleBom.getItemPartNo())){
DdlPreparedPack.getStringLikerPack(partScheduleBom.getItemPartNo(), "itemPartNo", packBean);
}
return packBean;
}
}

@ -1,23 +0,0 @@
package cn.estsh.i3plus.pojo.model.mes;
import cn.estsh.i3plus.pojo.mes.bean.MesArea;
import cn.estsh.i3plus.pojo.platform.bean.SysOrganize;
import io.swagger.annotations.ApiParam;
import javax.persistence.Transient;
import java.util.List;
public class SysOrganizeModel extends SysOrganize{
@Transient
@ApiParam(value ="子集列表")
private List<MesArea> childTreeList;
public List<MesArea> getChildTreeList() {
return childTreeList;
}
public void setChildTreeList(List<MesArea> childTreeList) {
this.childTreeList = childTreeList;
}
}

@ -127,7 +127,7 @@ public class SwebHqlPack {
}
/**
* where sql
* where sql
* @param details
* @return
*/
@ -136,6 +136,7 @@ public class SwebHqlPack {
DdlPreparedPack.getStringEqualPack(details.getOrderNo(), "orderNo", result);
DdlPreparedPack.getStringEqualPack(details.getVendorCode(), "vendorCode", result);
DdlPreparedPack.getNumEqualPack(details.getOrderType(), "orderType", result);
DdlPreparedPack.getNumEqualPack(SwebEnumUtil.ORDER_DETAILS_STATUS.CREATE.getValue(), "itemStatus", result);
return buildHql(details, result);
}

@ -10,10 +10,7 @@ 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;
import javax.persistence.*;
/**
* @Description :
@ -67,6 +64,7 @@ public class WmsActionGroup extends BaseBean {
@ApiParam(value = "任务自动初始化", example = "0")
private Integer autoInit;
@Lob
@Column(name = "POSITION")
@ApiParam(value = "GOJS位置")
private String position;

Loading…
Cancel
Save