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

yun-zuoyi
钮海涛 5 years ago
commit 228d3dd2ab

@ -15,6 +15,7 @@ import org.springframework.data.mongodb.core.index.Indexed;
import javax.persistence.*; import javax.persistence.*;
import java.io.Serializable; import java.io.Serializable;
import java.util.LinkedHashMap;
/** /**
* @Description : * @Description :
@ -142,13 +143,18 @@ public abstract class BaseBean implements Serializable {
public transient Integer ascOrDesc = 1; public transient Integer ascOrDesc = 1;
public int getIsValidVal() { public int getIsValidVal() {
return this.isValid == null ? 0 : this.isValid.intValue(); return this.isValid == null ? 0 : this.isValid;
} }
public int getIsDeletedVal() { public int getIsDeletedVal() {
return this.isDeleted == null ? 0 : this.isDeleted.intValue(); return this.isDeleted == null ? 0 : this.isDeleted;
} }
// @Transient
// @ApiParam(value = "多列排序")
// @AnnoOutputColumn(hidden = true)
// public LinkedHashMap<String,Integer> sortParamMap;
//排序方式 //排序方式
public String orderBy(){ public String orderBy(){
String result = ""; String result = "";
@ -162,4 +168,5 @@ public abstract class BaseBean implements Serializable {
} }
return result; return result;
} }
} }

@ -6246,19 +6246,21 @@ public class WmsEnumUtil {
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WEEK_TYPE { public enum WEEK_TYPE {
MONDAY(20, "星期一"), MONDAY(20, 1, "星期一"),
TUESDAY(30, "星期二"), TUESDAY(30, 2, "星期二"),
WEDNESDAY(40, "星期三"), WEDNESDAY(40, 3, "星期三"),
THURSDAY(50, "星期四"), THURSDAY(50, 4, "星期四"),
FRIDAY(60, "星期五"), FRIDAY(60, 5, "星期五"),
SATURDAY(70, "星期六"), SATURDAY(70, 6, "星期六"),
SUNDAY(10, "星期日"); SUNDAY(10, 0, "星期日");
private final int value; private final int value;
private final int code;
private final String description; private final String description;
WEEK_TYPE(int value, String description) { WEEK_TYPE(int value, int code, String description) {
this.value = value; this.value = value;
this.code = code;
this.description = description; this.description = description;
} }
@ -6266,6 +6268,10 @@ public class WmsEnumUtil {
return value; return value;
} }
public int getCode() {
return code;
}
public String getDescription() { public String getDescription() {
return description; return description;
} }
@ -6288,6 +6294,15 @@ public class WmsEnumUtil {
} }
return tmp; return tmp;
} }
public static int getValByCode(int code) {
for (int i = 0; i < values().length; i++) {
if (values()[i].code == code) {
return values()[i].value;
}
}
return 0;
}
} }
/** /**
@ -8854,6 +8869,52 @@ public class WmsEnumUtil {
} }
/** /**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RC_BOARD_STATUS {
FINISH(10, "已完成(绿色)"),
OVER_TIME(20, "已超时(红色)"),
UNRECEIVED(30, "未收货(蓝色)"),
VARIANT(40, "有差异(黄色)");
private int value;
private String description;
RC_BOARD_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static RC_BOARD_STATUS codeOf(int value) {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
return null;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -0,0 +1,50 @@
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;
import java.io.Serializable;
/**
* @Author: Wynne.Lu
* @CreateDate: 2019/9/21 1:45 PM
* @Description:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_WC_CURRENT_STATUS")
@Api("工位实时状态表")
public class MesWcCurrentStatus extends BaseBean implements Serializable {
private static final long serialVersionUID = -4224360275760211780L;
@Column(name = "WORK_CENTER_CODE")
@ApiParam("工作中心")
private String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam("工作单元")
private String workCellCode;
@Column(name = "VIN_CODE")
@ApiParam("当前VIN号")
private String vinCode;
@Column(name = "LAST_VIN_CODE")
@ApiParam("上一VIN号")
private String lastVinCode;
}

@ -135,7 +135,7 @@ public class StationRequestBean implements Serializable {
private MesStateMachineStatus curFsmState; private MesStateMachineStatus curFsmState;
@ApiParam("是否重选进入") @ApiParam("是否重选进入")
private boolean isRechoose; private boolean isReselect;
@JsonIgnore @JsonIgnore
@ApiParam("展示组件") @ApiParam("展示组件")

@ -30,4 +30,7 @@ public class TorqueReviewModel {
@ApiParam("是否大枪") @ApiParam("是否大枪")
private Integer isPf; private Integer isPf;
@ApiParam("对象代码")
private String objectCode;
} }

@ -0,0 +1,13 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesWcCurrentStatus;
/**
* @Author: Wynne.Lu
* @CreateDate: 2019/9/23 7:30 PM
* @Description:
**/
public interface MesWcCurrentStatusRepository extends BaseRepository<MesWcCurrentStatus, Long> {
}

@ -90,6 +90,10 @@ public class SysLogTaskTime extends BaseBean {
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description") @AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description")
private Integer taskStatus; private Integer taskStatus;
public int getTaskStatusVal() {
return taskStatus == null ? CommonEnumUtil.TRUE_OR_FALSE.TRUE.getValue() : taskStatus;
}
@Column(name="TASK_LOG_ERROR") @Column(name="TASK_LOG_ERROR")
@ApiParam(value ="任务异常日志") @ApiParam(value ="任务异常日志")
private String taskLogError; private String taskLogError;

@ -93,7 +93,7 @@ public class WmsAutoForkCallBackDetails extends BaseBean {
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT) @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
private String robotCode; private String robotCode;
@Column(name = "STATUS", nullable = false, columnDefinition = "default 10") @Column(name = "STATUS", nullable = false, columnDefinition = "int default 10")
@ApiParam("处理标准") @ApiParam("处理标准")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, dataSrc = "AUTO_FORK_TASK_STATUS") @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isRequire = 2, dataSrc = "AUTO_FORK_TASK_STATUS")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description", hidden = true) @AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description", hidden = true)

@ -161,6 +161,18 @@ public class WmsPOMaster extends BaseBean {
private String planDateEnd; private String planDateEnd;
@Transient @Transient
@ApiParam("计划日期")
private String planDate;
@Transient
@ApiParam("计划时间")
private String planTime;
@Transient
@ApiParam("看板状态")
private Integer boardStatus;
@Transient
private List<String> orderNoList; private List<String> orderNoList;
@Column(name = "DOCK", columnDefinition = "varchar(50) default ''") @Column(name = "DOCK", columnDefinition = "varchar(50) default ''")
@ -197,6 +209,15 @@ public class WmsPOMaster extends BaseBean {
this.createDatetime = createDateTime; this.createDatetime = createDateTime;
this.createDateTimeStart = receiveDateTime; this.createDateTimeStart = receiveDateTime;
} }
public WmsPOMaster(String orderNo, Integer poStatus, String vendorNo,
String dockCode, String planDate, String planTime) {
this.orderNo = orderNo;
this.poStatus = poStatus;
this.vendorNo = vendorNo;
this.dock = dockCode;
this.planDate = planDate;
this.planTime = planTime;
}
public int getPoStatusVal() { public int getPoStatusVal() {
return this.poStatus == null ? 0 : this.poStatus; return this.poStatus == null ? 0 : this.poStatus;

@ -128,6 +128,10 @@ public class WmsPOMasterDetails extends BaseBean {
@ApiParam(value = "是否免费", example = "1") @ApiParam(value = "是否免费", example = "1")
private Integer isFree; private Integer isFree;
@Column(name = "REMARK")
@ApiParam("备注")
private String remark;
@Transient @Transient
@ApiParam(value = "散件收货输入数量", example = "0") @ApiParam(value = "散件收货输入数量", example = "0")
private Double inputRcQty; private Double inputRcQty;
@ -185,9 +189,6 @@ public class WmsPOMasterDetails extends BaseBean {
@ApiParam("结束时间") @ApiParam("结束时间")
private String planEndDate; private String planEndDate;
@Column(name = "REMARK")
@ApiParam("备注")
private String remark;
public Double getSnpVal() { public Double getSnpVal() {
return snp; return snp;
@ -245,4 +246,14 @@ public class WmsPOMasterDetails extends BaseBean {
this.modifyDatetime = modifyDatetime; this.modifyDatetime = modifyDatetime;
this.remark = remark; this.remark = remark;
} }
public WmsPOMasterDetails(String partNo,String partNameRdd,String planDate,
Double snp,Long totalBoxes,Double qty){
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.planDate = planDate;//批次号yyyyMMdd
this.snp=snp;
this.totalBoxes = totalBoxes.intValue();
this.qty = qty;
}
} }

@ -14,6 +14,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient;
/** /**
* @Description : * @Description :
@ -87,4 +88,24 @@ public class WmsZonePart extends BaseBean{
@ApiParam(value = "安全量", example = "0") @ApiParam(value = "安全量", example = "0")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2) @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER, isRequire = 2)
private Double safetyQty; private Double safetyQty;
@Transient
@ApiParam(value = "总件数")
private Double totalSnQty ;
@Transient
@ApiParam(value = "库存是否正常")
private Integer isNormal ;
public WmsZonePart() {
}
public WmsZonePart(String zoneNo, String partNo, String partNameRdd, Double min, Double max, Double totalSnQty) {
this.zoneNo = zoneNo;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.min = min;
this.max = max;
this.totalSnQty = totalSnQty;
}
} }

@ -572,7 +572,7 @@ public class WmsHqlPack {
DdlPreparedPack.getNumEqualPack(wmsLocate.getLocateType(), "locateType", result); DdlPreparedPack.getNumEqualPack(wmsLocate.getLocateType(), "locateType", result);
DdlPreparedPack.getStringEqualPack(wmsLocate.getWhNo(), "whNo", result); DdlPreparedPack.getStringEqualPack(wmsLocate.getWhNo(), "whNo", result);
if (wmsLocate.getZoneNo() != null) { if (wmsLocate.getZoneNo() != null) {
DdlPreparedPack.getInPack(StringUtils.join(new ArrayList<String>(Arrays.asList(wmsLocate.getZoneNo().split(","))), ","), "zoneNo", result); DdlPreparedPack.getInPackArray(wmsLocate.getZoneNo().split(","), "zoneNo", result);
} }
if (wmsLocate.getLocateNoArr() != null) { if (wmsLocate.getLocateNoArr() != null) {
DdlPreparedPack.getInPackArray(wmsLocate.getLocateNoArr(), "locateNo", result); DdlPreparedPack.getInPackArray(wmsLocate.getLocateNoArr(), "locateNo", result);

Loading…
Cancel
Save