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

yun-zuoyi
曾贞一 6 years ago
commit e603ac66a7

@ -289,10 +289,10 @@ public class MesEnumUtil {
}
/**
* mes-
* mes-
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_EQU_TASK_STANDARD_TASK_TYPE {
public enum MES_EQU_TASK_TYPE {
CHECK(10, "点检"),
MAINTAIN(20, "保养"),
@ -301,7 +301,7 @@ public class MesEnumUtil {
private int value;
private String description;
MES_EQU_TASK_STANDARD_TASK_TYPE(int value, String description) {
MES_EQU_TASK_TYPE(int value, String description) {
this.value = value;
this.description = description;
}

@ -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 :
@ -65,4 +67,20 @@ public class MesEquTask extends BaseBean {
@ApiParam("关联任务")
private String relateTask;
@Transient
@ApiParam(value = "设备代码")
private String equipmentCode;
@Transient
@ApiParam(value = "计划日期起始时间")
private String planTimeStart;
@Transient
@ApiParam(value = "计划日期结束时间")
private String planTimeEnd;
@Transient
@ApiParam(value ="明细列表")
private List<MesEquTaskDetail> mesEquTaskDetailList;
}

@ -0,0 +1,105 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
@Data
public class MesEquTaskDetailModel implements Serializable {
@ApiParam("id")
private Long id;
@ApiParam("作业任务编号")
private String taskNo;
@ApiParam("设备代码")
private String equipmentCode;
@ApiParam("设备名称")
private String equipmentName;
@ApiParam("执行状态")
private Integer actionStatus;
@ApiParam("整体结果")
private Integer finalResult;
@ApiParam("备注")
private String memo;
@ApiParam("维修标识")
private Integer repairFlag;
@ApiParam("作业类型")
private Integer taskType;
@ApiParam(value="生产线")
private String workCenterCode;
@ApiParam("组织代码")
public String organizeCode;
@ApiParam("有效性")
public Integer isValid;
@ApiParam("是否已删除")
public Integer isDeleted;
@ApiParam("创建用户")
public String createUser;
@ApiParam("创建日期")
public String createDatetime;
@ApiParam("修改人")
public String modifyUser;
@ApiParam("修改日期")
public String modifyDatetime;
@ApiParam("执行状态")
private String actionStatusName;
@ApiParam("整体结果")
private String finalResultName;
@ApiParam("维修标识")
private String repairFlagName;
@ApiParam("作业类型")
private String taskTypeName;
public MesEquTaskDetailModel() {
}
public MesEquTaskDetailModel(Long id, String taskNo, String equipmentCode, String equipmentName, String workCenterCode) {
this.id = id;
this.taskNo = taskNo;
this.equipmentCode = equipmentCode;
this.equipmentName = equipmentName;
this.workCenterCode = workCenterCode;
}
public MesEquTaskDetailModel(Long id, String taskNo, String equipmentCode, String equipmentName, Integer actionStatus, Integer finalResult, String memo, Integer repairFlag, Integer taskType, String workCenterCode, String organizeCode, Integer isValid, Integer isDeleted, String createUser, String createDatetime, String modifyUser, String modifyDatetime) {
this.id = id;
this.taskNo = taskNo;
this.equipmentCode = equipmentCode;
this.equipmentName = equipmentName;
this.actionStatus = actionStatus;
this.finalResult = finalResult;
this.memo = memo;
this.repairFlag = repairFlag;
this.taskType = taskType;
this.workCenterCode = workCenterCode;
this.organizeCode = organizeCode;
this.isValid = isValid;
this.isDeleted = isDeleted;
this.createUser = createUser;
this.createDatetime = createDatetime;
this.modifyUser = modifyUser;
this.modifyDatetime = modifyDatetime;
}
}

@ -0,0 +1,97 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
@Data
public class MesEquTaskModel implements Serializable {
@ApiParam("id")
private Long id;
@ApiParam("作业任务编号")
private String taskNo;
@ApiParam("作业类型")
private Integer taskType;
@ApiParam("作业状态")
private Integer taskStatus;
@ApiParam(value="生产线")
private String workCenterCode;
@ApiParam("计划日期")
private String planTime;
@ApiParam("任务来源")
private Integer taskSource;
@ApiParam("备注")
private String memo;
@ApiParam("通知标识")
private Integer notifyFlag;
@ApiParam("关联任务")
private String relateTask;
@ApiParam("组织代码")
public String organizeCode;
@ApiParam("有效性")
public Integer isValid;
@ApiParam("是否已删除")
public Integer isDeleted;
@ApiParam("创建用户")
public String createUser;
@ApiParam("创建日期")
public String createDatetime;
@ApiParam("修改人")
public String modifyUser;
@ApiParam("修改日期")
public String modifyDatetime;
@ApiParam("作业类型")
private String taskTypeName;
@ApiParam("作业状态")
private String taskStatusName;
@ApiParam("任务来源")
private String taskSourceName;
@ApiParam("通知标识")
private String notifyFlagName;
public MesEquTaskModel() {
}
public MesEquTaskModel(Long id, String taskNo, Integer taskType, Integer taskStatus, String workCenterCode, String planTime, Integer taskSource, String memo, Integer notifyFlag, String relateTask, String organizeCode, Integer isValid, Integer isDeleted, String createUser, String createDatetime, String modifyUser, String modifyDatetime) {
this.id = id;
this.taskNo = taskNo;
this.taskType = taskType;
this.taskStatus = taskStatus;
this.workCenterCode = workCenterCode;
this.planTime = planTime;
this.taskSource = taskSource;
this.memo = memo;
this.notifyFlag = notifyFlag;
this.relateTask = relateTask;
this.organizeCode = organizeCode;
this.isValid = isValid;
this.isDeleted = isDeleted;
this.createUser = createUser;
this.createDatetime = createDatetime;
this.modifyUser = modifyUser;
this.modifyDatetime = modifyDatetime;
}
}

@ -102,6 +102,15 @@ public class MesEquipmentModel implements Serializable {
}
public MesEquipmentModel(Long id, String equipmentCode, String equipmentName, Integer status, String workCenterCode, String equipmentCategory) {
this.id = id;
this.equipmentCode = equipmentCode;
this.equipmentName = equipmentName;
this.status = status;
this.workCenterCode = workCenterCode;
this.equipmentCategory = equipmentCategory;
}
public MesEquipmentModel(Long wcId, Long id, String equipmentCode, String equipmentName, Integer status, String workCenterCode, String workCellCode, String areaCode) {
this.wcId = wcId;
this.id = id;

@ -0,0 +1,22 @@
package cn.estsh.i3plus.pojo.model.wms;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* @Description Model
* @Reference
* @Author dragon
* @CreateDate 2019/10/18 1:18
* @Modify
*/
@Data
public class WmsWriteOffModel implements Serializable {
private static final long serialVersionUID = -5490167040159056107L;
private String locateNo;
private List<String> snList;
private List<Map<String, Object>> summaryList;
}

@ -42,7 +42,7 @@ public class WmsMoveMaster extends BaseBean {
*/
@Column(name = "ORDER_STATUS")
@ApiParam(value = "状态", example = "0")
@AnnoOutputColumn(refClass = WmsEnumUtil.MOVE_ORDER_STATUS.class,refForeignKey = "value",value = "description")
@AnnoOutputColumn(refClass = WmsEnumUtil.MOVE_ORDER_STATUS.class, refForeignKey = "value", value = "description")
public Integer orderStatus;
@Column(name = "REMARK")
@ -58,7 +58,7 @@ public class WmsMoveMaster extends BaseBean {
@ApiParam(value = "错误信息")
private String errorMessage;
@Column(name="IS_URGENT")
@Column(name = "IS_URGENT")
@ApiParam(value = "是否紧急", example = "0")
public Integer isUrgent;
@ -68,7 +68,7 @@ public class WmsMoveMaster extends BaseBean {
@Column(name = "BUSI_TYPE_CODE")
@ApiParam(value = "业务类型编码")
@AnnoOutputColumn(refClass = WmsEnumUtil.OUT_MOVEMENT_BUSI_TYPE.class,refForeignKey = "value",value = "description")
@AnnoOutputColumn(refClass = WmsEnumUtil.OUT_MOVEMENT_BUSI_TYPE.class, refForeignKey = "value", value = "description")
private Integer busiTypeCode;
@Column(name = "REF_ORDER_NO")
@ -81,7 +81,7 @@ public class WmsMoveMaster extends BaseBean {
@Transient
@ApiParam("状态")
@AnnoOutputColumn(refClass = WmsEnumUtil.MOVE_ORDER_STATUS.class,refForeignKey = "value",value = "description")
@AnnoOutputColumn(refClass = WmsEnumUtil.MOVE_ORDER_STATUS.class, refForeignKey = "value", value = "description")
private Integer itemStatus;
@Transient
@ -140,7 +140,7 @@ public class WmsMoveMaster extends BaseBean {
@ApiParam("交易类型名称")
private String transTypeName;
@Column(name="FIX_ID")
@Column(name = "FIX_ID")
@ApiParam(value = "设备编号")
public String fixId;
@ -164,16 +164,17 @@ public class WmsMoveMaster extends BaseBean {
return isSnapshot == null ? 0 : isSnapshot.intValue();
}
public WmsMoveMaster(){};
public WmsMoveMaster() {
}
public WmsMoveMaster(String orderNo, Integer orderStatus, String transTypeCode, String errorMessage,
Integer isUrgent,String carNo, Integer busiTypeCode, String refOrderNo, String refSrc,String partNo, Integer itemStatus,String remark,
String organizeCode,String createDatetime,String createUser,String modifyDatetime,String modifyUser,String fixId,
public WmsMoveMaster(String orderNo, Integer orderStatus, String transTypeCode, String errorMessage,
Integer isUrgent, String carNo, Integer busiTypeCode, String refOrderNo, String refSrc, String partNo, Integer itemStatus, String remark,
String organizeCode, String createDatetime, String createUser, String modifyDatetime, String modifyUser, String fixId,
Double sumTranQty) {
this.orderNo = orderNo;
this.orderStatus = orderStatus;
this.remark = remark;
this.isUrgent=isUrgent;
this.isUrgent = isUrgent;
this.transTypeCode = transTypeCode;
this.errorMessage = errorMessage;
this.busiTypeCode = busiTypeCode;
@ -182,18 +183,18 @@ public class WmsMoveMaster extends BaseBean {
this.refOrderNo = refOrderNo;
this.carNo = carNo;
this.refSrc = refSrc;
this.organizeCode =organizeCode;
this.createDatetime= createDatetime;
this.organizeCode = organizeCode;
this.createDatetime = createDatetime;
this.createUser = createUser;
this.modifyDatetime =modifyDatetime;
this.modifyUser =modifyUser;
this.modifyDatetime = modifyDatetime;
this.modifyUser = modifyUser;
this.fixId = fixId;
this.transQty = sumTranQty;
}
public WmsMoveMaster(Long id,String orderNo,String organizeCode,String partNo,String partNameRdd,String transTypeCode,String transTypeName,Integer itemStatus,
String unit,String srcWhNo,String srcZoneNo,String destWhNo,String destZoneNo,Double transQty, Double rejectQty,String fixId,Integer busiTypeCode,String refSrc,
String createDatetime,String createUser,String modifyUser,String modifyDatetime) {
public WmsMoveMaster(Long id, String orderNo, String organizeCode, String partNo, String partNameRdd, String transTypeCode, String transTypeName, Integer itemStatus,
String unit, String srcWhNo, String srcZoneNo, String destWhNo, String destZoneNo, Double transQty, Double rejectQty, String fixId, Integer busiTypeCode, String refSrc,
String createDatetime, String createUser, String modifyUser, String modifyDatetime) {
this.id = id;
this.orderNo = orderNo;
this.organizeCode = organizeCode;
@ -212,16 +213,17 @@ public class WmsMoveMaster extends BaseBean {
this.fixId = fixId;
this.busiTypeCode = busiTypeCode;
this.refSrc = refSrc;
this.createDatetime= createDatetime;
this.createDatetime = createDatetime;
this.createUser = createUser;
this.modifyUser =modifyUser;
this.modifyDatetime =modifyDatetime;
this.modifyUser = modifyUser;
this.modifyDatetime = modifyDatetime;
}
public Double getTransQty(){
public Double getTransQty() {
return this.transQty == null ? 0 : this.transQty.doubleValue();
}
public int getBusiTypeCodeVal(){
public int getBusiTypeCodeVal() {
return this.busiTypeCode == null ? 0 : this.busiTypeCode.intValue();
}
}

Loading…
Cancel
Save