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

yun-zuoyi
bleakney.liu 6 years ago
commit 4409f34e0f

@ -157,6 +157,10 @@ public class AndonManageQueue extends BaseBean {
@ApiParam(value = "解决人")
private String resetUser;
@Column(name = "SOURCE_TYPE")
@ApiParam(value = "安灯来源类型")
private String sourceType = AndonEnumUtil.ALARM_SOURCE_TYPE.SOFT.getValue();
@Transient
@ApiParam(value = "解决人名字")
private String resetUserName;
@ -279,6 +283,10 @@ public class AndonManageQueue extends BaseBean {
@ApiParam(value = "发送标志")
private String sendFlag;
@Column(name = "SIGN_SEND_FLAG")
@ApiParam(value = "响应已通知标识")
private String signSendFlag;
/**
* 10=20=
*/
@ -325,6 +333,10 @@ public class AndonManageQueue extends BaseBean {
@ApiParam(value = "驳回意见")
private String rejectOpinion;
@Column(name = "OPEN_INFO")
@ApiParam(value = "放行说明")
private String openInfo;
@Transient
@ApiParam(value = "安灯状态集合")
private List<String> statusCodeList;

@ -264,6 +264,10 @@ public class AndonManageRecord extends BaseBean {
@ApiParam(value = "驳回意见")
private String rejectOpinion;
@Column(name = "OPEN_INFO")
@ApiParam(value = "放行说明")
private String openInfo;
// 是否转呼
public Integer getIsShiftCall() {
return this.isShiftCall == null ? 0 : this.isShiftCall;

@ -0,0 +1,46 @@
package cn.estsh.i3plus.pojo.andon.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 : crish
* @CreateDate : 2019-09-27 19:58
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="ANDON_MANAGE_ATTACH")
@Api(value="安灯任务附属信息")
public class AndonQueueAttach extends BaseBean {
@Column(name="PROD_INFO")
@ApiParam(value ="产品信息" , example ="-1")
private String prodInfo;
@Column(name="LINE_INFO")
@ApiParam(value ="产线信息")
private String lineInfo;
@Column(name="ANDON_ORDER_NO")
@ApiParam(value ="安灯任务编号")
private String andonOrderNo;
@Column(name="STATUS_CODE")
@ApiParam(value ="安灯状态")
private String statusCode;
}

@ -49,6 +49,10 @@ public class MesWorkCell extends BaseBean {
private String areaCode;
@Transient
@ApiParam(value ="工作单元中安灯队列标识")
private String workCellSignal;
@Transient
@ApiParam(value ="子集列表")
@AnnoOutputColumn(hidden = true)
private List<MesEquipment> childTreeList;

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.andon.repository;
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmCause;
import cn.estsh.i3plus.pojo.andon.bean.AndonQueueAttach;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : crish
* @CreateDate : 2019-09-28
* @Modify:
**/
@Repository
public interface IAndonQueueAttachRepository extends BaseRepository<AndonQueueAttach, Long> {
}

@ -134,7 +134,7 @@ public abstract class BaseBean implements Serializable {
String result = "";
if (orderByParam!=null&&orderByParam.trim().length()>0) {
result = " order by " + orderByParam;
if(ascOrDesc!= null && ascOrDesc == CommonEnumUtil.ASC_OR_DESC.ASC.getValue()) {
if(ascOrDesc == CommonEnumUtil.ASC_OR_DESC.ASC.getValue()) {
result += " asc";
}else{
result += " desc";

@ -58,6 +58,51 @@ public class AndonEnumUtil {
}
/**
* = 10 = 20
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_CELL_TYPE{
NORMAL("10","标准类型"),
ABNORMAL("20","异常类型");
private String value;
private String description;
WORK_CELL_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].value,val)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String descriptionOfValue(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].description, val)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* 10=20=30=40=100=
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ -199,7 +244,7 @@ public class AndonEnumUtil {
/**
*
* =10 =20 =30, 线=40, =50, =60
* =10 =20 =30, 线=40, =50, =60, =70 =80
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ALARM_BUSI_FLAG{
@ -208,7 +253,9 @@ public class AndonEnumUtil {
READ_FLAG("30", "安灯读取状态"),
STOP_FLAG("40", "停线状态"),
DETAIL_TYPE("50", "安灯子类型"),
AC_CODE("60", "原因代码");
AC_CODE("60", "原因代码"),
PROD_INFO("70", "产品信息"),
LINE_INFO("80", "产量信息");
private String value;
private String description;
@ -362,6 +409,51 @@ public class AndonEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ALARM_SOURCE_TYPE{
PHYSICAL("10","物理安灯"),
SOFT("20","软件安灯");
private String value;
private String description;
ALARM_SOURCE_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].value, val)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String descriptionOfValue(String val) {
String tmp = "";
for (int i = 0; i < values().length; i++) {
if (StringUtils.equalsIgnoreCase(values()[i].description, val)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* ANDONMM= QM= EQ= GY= JC=
@ -625,7 +717,8 @@ public class AndonEnumUtil {
CANCEL_ACTION("40", "撤销动作"),
COMMIT_ACTION("50","提交动作"),
PASS_ACTION("60","审批动作"),
REJECT_ACTION("70", "驳回动作");
REJECT_ACTION("70", "驳回动作"),
OPEN_ACTION("80","放行动作");
private String value;
private String description;

@ -767,7 +767,11 @@ public class WmsEnumUtil {
INSTOCK("INSTOCK", "入库"),
MOVESTOCK("MOVESTOCK", "移库"),
CS("CS", "盘点"),
VDARC("VDARC", "VDA收货");
VDARC("VDARC", "VDA收货"),
VDAINSTOCK("VDAINSTOCK", "VDA入库"),
VDAMOVESTOCK("VDAMOVESTOCK", "VDA内部移库"),
VDA_FAST_STOCK("VDA_FAST_STOCK", "VDA采购快速入库"),
VDAREPORT("VDAREPORT", "VDA生产报工");
private String value;
private String description;

@ -0,0 +1,72 @@
package cn.estsh.i3plus.pojo.model.wms;
import lombok.Data;
import java.io.Serializable;
@Data
public class wmsCSOrderDetailsModel implements Serializable {
/******
*
*
*/
public String locateNo;
/******
*
*
*/
public String orderNo;
/******
*
*
*/
public String partNo;
/******
*
*
*/
public String partNameRdd;
/******
*
*
*/
public String qty;
/******
*
*
*/
public String factQty;
/******
*
*
*/
public String sn;
/******
*
*
*/
public String whNo;
/******
*
*
*/
public String zoneNo;
/******
*
*
*/
public String wmStatus;
}
Loading…
Cancel
Save