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

yun-zuoyi
许心洁 6 years ago
commit 176d5d22f9

@ -7,6 +7,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.Interceptor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
@ -41,7 +42,6 @@ public class AndonCellGroupCfg extends BaseBean {
@ApiParam(value = "工作单元组")
private String cellGroup;
@Column(name = "GROUP_CODE")
@ApiParam(value = "分组代码")
private String groupCode;
@ -49,4 +49,20 @@ public class AndonCellGroupCfg extends BaseBean {
@Column(name = "GROUP_NAME")
@ApiParam(value = "分组名称")
private String groupName;
@Column(name = "HORIZONTAL_AXIS")
@ApiParam(value = "横坐标")
private Float horizontalAxis ;
@Column(name = "VERTICAL_AXIS")
@ApiParam(value = "纵坐标")
private Float verticalAxis;
@Column(name = "ABNORMAL_SRC")
@ApiParam(value = "异常图片")
private String abnormalSrc;
@Column(name = "NORMAL_SRC")
@ApiParam(value = "正常图片")
private String normalSrc;
}

@ -111,6 +111,10 @@ public class AndonManageQueue extends BaseManageQueue {
private Double avgSignTime;
@Transient
@ApiParam(value = "解决时长", example = "0")
private Long resolveTime;
@Transient
@ApiParam(value = "平均解决时长", example = "0")
private Double avgResolveTime;

@ -15,20 +15,51 @@ import java.io.Serializable;
@Data
public class AndonBoardModel {
@ApiParam("工作单元代码")
private String workCellCode;
@ApiParam("工作单元名称")
private String workCellName;
@ApiParam("安灯任务编号")
private String andonOrderNo;
@ApiParam("安灯类型")
private String alarmCode;
@ApiParam("安灯类型名称")
private String alarmName;
@ApiParam("故障时长 单位:分钟")
private Long exceptionTimeCount = 0L;
@ApiParam("响应时长 单位:分钟")
private Long responseTimeCount = 0L;
@ApiParam("解决时长 单位:分钟")
private Long resetTimeCount = 0L;
@ApiParam("安灯正常处理的次数")
private Integer inTime;
private Integer inTime = 0;
@ApiParam("安灯超时次数")
private Integer overTime;
private Integer overTime = 0;
@ApiParam("安灯总次数")
private Integer totalTime;
private Integer totalTime = 0;
@ApiParam("安灯类型百分比")
private float propagation = 0;
@ApiParam("事件描述代码")
private String acCode;
@ApiParam("事件描述详情")
private String acDesc;
@ApiParam("工位运行状态")
private String cellStatus;
public int getTotalTimeVal() {
return totalTime == null ? 0 : totalTime;
@ -42,5 +73,18 @@ public class AndonBoardModel {
return inTime == null ? 0 : inTime;
}
public double getExceptionCountVal() {
return exceptionTimeCount == null ? 0 : exceptionTimeCount;
}
public double getResponseTimeCountVal() {
return responseTimeCount == null ? 0 : responseTimeCount;
}
public double getResetTimeCountVal() {
return resetTimeCount == null ? 0 : resetTimeCount;
}
}

@ -0,0 +1,89 @@
package cn.estsh.i3plus.pojo.andon.model;
import cn.estsh.i3plus.pojo.andon.bean.AndonManageQueue;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description: Model
* @Reference:
* @Author: Crish
* @CreateDate:2019-11-22-13:44
* @Modify:
**/
@Data
public class AndonMenuInterfaceModel{
@ApiParam("工作中心代码")
private String workCenterCode;
@ApiParam("工作中心名称")
private String workCenterName;
@ApiParam("产线运行状态")
private String workCenterStatus;
@ApiParam("安灯类型")
private String alarmCode;
@ApiParam("安灯类型名称")
private String alarmName;
@ApiParam("故障总时长 单位:分钟")
private Long exceptionTime = 0L;
@ApiParam("当前安灯类型故障时长 单位:分钟")
private Long currentExceptionTime = 0L;
@ApiParam("当前安灯类型故障比例")
private Double proportion = 0D;
@ApiParam("当前工厂的产线故障统计")
private List<AndonMenuInterfaceModel> andonWorkcenterList;
@ApiParam("当前产线的所有故障统计")
private List<AndonBoardModel> alarmBrokenInfoList;
@ApiParam("当前产线的未解决故障统计")
private List<AndonBoardModel> pendingSolveBrokenInfoList;
@ApiParam("当前产线的响应时长top10")
private List<AndonBoardModel> responseInfoList;
@ApiParam("当前产线的解决时长top10")
private List<AndonBoardModel> solveInfoList;
@ApiParam("当前产线的异常时长top10")
private List<AndonBoardModel> exceptionInfoList;
@ApiParam("当前产线的站点状态统计")
private List<CellGroupStatusModel> andonCellGroupStatusList;
public double getExceptionTimeVal() {
return exceptionTime == null ? 0 : exceptionTime;
}
public double getCurrentExceptionTimeVal() {
return currentExceptionTime == null ? 0 : currentExceptionTime;
}
public double getProportionVal() {
return proportion == null ? 0 : proportion;
}
@Override
public String toString() {
return "AndonMenuInterfaceModel{" +
"workCenterCode='" + workCenterCode + '\'' +
", workCenterName='" + workCenterName + '\'' +
", workCenterStatus='" + workCenterStatus + '\'' +
", alarmCode='" + alarmCode + '\'' +
", alarmName='" + alarmName + '\'' +
", exceptionTime=" + exceptionTime +
", currentExceptionTime=" + currentExceptionTime +
", proportion=" + proportion +
'}';
}
}

@ -0,0 +1,55 @@
package cn.estsh.i3plus.pojo.andon.model;
/**
* @Description: model
* @Reference:
* @Author: Crish
* @CreateDate:2019-11-22-16:02
* @Modify:
**/
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Column;
import java.util.List;
/**
* model
*/
@Data
public class CellGroupStatusModel{
@ApiParam("工作中心代码")
private String workCenterCode;
@ApiParam("安灯类型")
private String groupCode;
@ApiParam("安灯类型名称")
private String groupName;
@ApiParam("安灯类型名称")
private String workCellCode;
@ApiParam("安灯类型名称")
private String workCellName;
@ApiParam("站点运行状态")
private String cellGroupStatus;
@ApiParam(value = "横坐标")
private Float horizontalAxis = 0f;
@ApiParam(value = "纵坐标")
private Float verticalAxis = 0f;
@ApiParam(value = "异常图片")
private String abnormalSrc;
@ApiParam(value = "正常图片")
private String normalSrc;
@ApiParam("当前站点下的工位故障统计")
private List<AndonBoardModel> andonBoardModelList;
}

@ -17,6 +17,10 @@
<groupId>i3plus.pojo</groupId>
<artifactId>i3plus-pojo-base</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
</dependencies>
</project>

@ -0,0 +1,18 @@
package cn.estsh.i3plus.pojo.aps.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @Description : bean
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-11-29
* @Modify:
**/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcludeImportExport {
}

@ -0,0 +1,26 @@
package cn.estsh.i3plus.pojo.aps.annotation;
import cn.estsh.i3plus.pojo.aps.validator.MainKeyValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @Description :
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-11-29
* @Modify:
**/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy={MainKeyValidator.class})
public @interface MainKey {
String message() default "主键重复";
Class<?>[] groups() default {};
Class<? extends Payload>[] payload() default {};
}

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.common.BaseCode;
@ -13,6 +14,8 @@ import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;
@ -27,6 +30,7 @@ import java.util.List;
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
@Api("订单基类")
@ExcludeImportExport
public class BaseOrder extends BaseCode {
@Column(name="MATERIAL_ID")
@ -37,6 +41,7 @@ public class BaseOrder extends BaseCode {
@Column(name="COUNT")
@ApiParam(value ="数量")
@FieldAnnotation(notEmpty = true)
@Min(0)
private Double count;
@Column(name="PRIORITY")

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import io.swagger.annotations.Api;
@ -21,6 +22,7 @@ import javax.persistence.MappedSuperclass;
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
@Api("规则参数基类")
@ExcludeImportExport
public class BaseRule extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="规则编码")

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
import io.swagger.annotations.Api;
@ -17,6 +18,7 @@ import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
@Api("BOM树")
@ExcludeImportExport
public class BomTree extends BaseAPS {
@ApiParam(value ="物料类型")

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseCode;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
@ -32,6 +33,7 @@ import java.sql.JDBCType;
@EqualsAndHashCode(callSuper = true)
@Table(name="APS_FIELD_INFO")
@Api("字段信息")
@ExcludeImportExport
public class FieldInfo extends BaseCode {
@Column(name="CLASS_NAME")
@ApiParam(value ="所属类简称")

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -11,6 +13,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.Min;
/**
* @Description :
@ -30,17 +33,21 @@ public class FurnaceCapacity extends BaseAPS {
@Column(name="RES_CODES")
@ApiParam(value ="资源编码")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.MULTI_OBJECT, typeName = "Resource", notEmpty = true)
private String resCodes;
@Column(name="STAND_CODE")
@ApiParam(value ="标准工序编码")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.MULTI_OBJECT, typeName = "StandOperation")
private String standCode;
@Column(name="MATERIAL_CODE")
@ApiParam(value ="物料编码")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.MULTI_OBJECT, typeName = "Material")
private String materialCode;
@Column(name="CAPACITY")
@ApiParam(value ="容量限制")
@Min(0)
private Double capacity;
}

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -30,6 +32,7 @@ public class FurnaceSetting extends BaseAPS {
@Column(name="RES_CODES")
@ApiParam(value ="资源编码")
@FieldAnnotation(editType = ApsEnumUtil.EDIT_TYPE.MULTI_OBJECT, typeName = "Resource", notEmpty = true)
private String resCodes;
@Column(name="SAME_MATERIAL")

@ -155,4 +155,24 @@ public class Material extends BaseCode {
public List<BaseOrder> getOrders() {
return BeanRelation.list(this, EMaterial.Orders);
}
@JsonBackReference
public List<SalesOrder> getSalesOrder() {
return BeanRelation.listByClass(this, SalesOrder.class, EMaterial.Orders);
}
@JsonBackReference
public List<PurchaseOrder> getPurchaseOrders() {
return BeanRelation.listByClass(this, PurchaseOrder.class, EMaterial.Orders);
}
@JsonBackReference
public List<Inventory> getInventories() {
return BeanRelation.listByClass(this, Inventory.class, EMaterial.Orders);
}
@JsonBackReference
public List<ProductOrder> getProductOrders() {
return BeanRelation.listByClass(this, ProductOrder.class, EMaterial.Orders);
}
}

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import io.swagger.annotations.Api;
@ -21,6 +22,7 @@ import java.util.Date;
@Data
@EqualsAndHashCode(callSuper = true)
@Api("订单树")
@ExcludeImportExport
public class OrderTree extends BaseAPS {
@ApiParam(value ="物料编码")
private String material;

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
@ -29,6 +30,7 @@ import java.util.List;
@Entity
@Table(name = "APS_PARENT_WORK")
@Api("父工作")
@ExcludeImportExport
public class ParentWork extends BaseAPS {
@Column(name="count")
@ApiParam(value ="数量")

@ -24,7 +24,7 @@ import javax.persistence.Table;
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "APS_PLAN_FEEDBACK")
@Api("物料")
@Api("工作反馈")
public class PlanFeedback extends BaseAPS {
@Column(name="WORK_ID")

@ -27,7 +27,7 @@ import java.util.List;
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "APS_PRODUCT_ROUTING")
@Api("物料")
@Api("工艺路线")
public class ProductRouting extends BaseCode {
@Column(name="MATERIAL_ID")
@ApiParam(value ="物料")

@ -24,7 +24,7 @@ import javax.persistence.Table;
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "APS_PURCHASE_ORDER")
@Api("工艺路线")
@Api("采购订单")
public class PurchaseOrder extends BaseOrder {
@Column(name="SPECIFY_TOP_ORDER")
@ApiParam(value ="指定顶层订单")

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
@ -26,6 +27,7 @@ import javax.persistence.Table;
@Entity
@Table(name = "APS_RULE_DETAIL")
@Api("规则明细")
@ExcludeImportExport
public class RuleDetail extends BaseAPS {
@Column(name="TYPE")

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
import cn.estsh.i3plus.pojo.aps.holders.ERuleGroup;
@ -26,6 +27,7 @@ import java.util.List;
@Entity
@Table(name = "APS_RULE_GROUP")
@Api("规则组合")
@ExcludeImportExport
public class RuleGroup extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.bean;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.common.BaseAPS;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
@ -21,7 +22,8 @@ import javax.persistence.Table;
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "APS_SERIAL_NUMBER")
@Api("取消计划规则")
@Api("流水号")
@ExcludeImportExport
public class SerialNumber extends BaseAPS {
@Column(name="NUMBER")

@ -149,6 +149,11 @@ public class Work extends BaseAPS {
@FieldAnnotation(property = false)
private Long parentWorkId;
@Column(name="MAIN_PLAN_ID")
@ApiParam(value ="主资源的工作计划")
@FieldAnnotation(property = false)
private Long mainPlanId;
public BaseOrder getOrder() {
return BeanRelation.get(this, EWork.Order);
}
@ -206,5 +211,13 @@ public class Work extends BaseAPS {
return BeanRelation.list(this, EWork.PlanFeedbacks);
}
public WorkPlan getWorkPlan() { return BeanRelation.get(this, EWork.WorkPlan); }
public WorkPlan getMainPlan() { return BeanRelation.get(this, EWork.MainPlan); }
public void setMainPlan(WorkPlan plan) {
this.mainPlanId = plan != null ? plan.getId() : 0;
BeanRelation.set(this, EWork.MainPlan, plan);
}
@JsonBackReference
public List<WorkPlan> getWorkPlans() { return BeanRelation.list(this, EWork.WorkPlans); }
}

@ -68,7 +68,7 @@ public class WorkPlan extends BaseAPS {
@Column(name="PRODUCE_BEGIN")
@ApiParam(value ="生产开始时间")
@FieldAnnotation(modify = false)
@RippleAnnotation(dependence = {"Work.PrevRelations.PrevWork.WorkPlan.produceBegin",
@RippleAnnotation(dependence = {"MainWork.PrevRelations.PrevWork.MainPlan.produceBegin",
"PrevPlan.produceBegin"}, method = "calcPositive")
private Date produceBegin;
@ -100,7 +100,7 @@ public class WorkPlan extends BaseAPS {
@Column(name="LOCK_BEGIN")
@ApiParam(value ="锁定开始时间")
@FieldAnnotation(modify = false)
@RippleAnnotation(dependence = {"Work.PostRelations.PostWork.WorkPlan.produceBegin", "produceBegin"}, method = "calcPositiveLock")
@RippleAnnotation(dependence = {"MainWork.PostRelations.PostWork.MainPlan.produceBegin", "produceBegin"}, method = "calcPositiveLock")
private Date lockBegin;
@Column(name="LOCK_END")
@ -118,11 +118,6 @@ public class WorkPlan extends BaseAPS {
@FieldAnnotation(property = false)
private Long workResourceId;
@Column(name="MAIN_PLAN_ID")
@ApiParam(value ="主计划对象id")
@FieldAnnotation(property = false)
private Long mainPlanId;
@Column(name="FURNACE_PLAN_ID")
@ApiParam(value ="炉资源计划对象id")
@FieldAnnotation(property = false)
@ -149,19 +144,18 @@ public class WorkPlan extends BaseAPS {
BeanRelation.set(this, EWorkPlan.WorkResource, workResource);
}
public WorkPlan getMainPlan() { return BeanRelation.get(this, EWorkPlan.MainPlan); }
public void setMainPlan(WorkPlan plan) {
this.mainPlanId = plan != null ? plan.getId() : 0l;
BeanRelation.set(this, EWorkPlan.MainPlan, plan);
}
public List<WorkPlan> getAssPlans() { return BeanRelation.list(this, EWorkPlan.AssPlans); }
public FurnacePlan getFurnacePlan() { return BeanRelation.get(this, EWorkPlan.FurnacePlan); }
public void setFurnacePlan(FurnacePlan plan) {
this.furnacePlanId = plan != null ? plan.getId() : 0;
BeanRelation.set(this, EWorkPlan.FurnacePlan, plan);
}
public Work getMainWork() {
return BeanRelation.get(this, EWorkPlan.MainWork);
}
public void setMainWork(Work work) {
}
}

@ -1,5 +1,6 @@
package cn.estsh.i3plus.pojo.aps.common;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
@ -22,6 +23,7 @@ import java.util.Map;
**/
@Data
@MappedSuperclass
@ExcludeImportExport
public abstract class BaseAPS extends BaseBean {
@JsonIgnore
private transient Map<String, Object> customFields = new HashMap<>();

@ -1,6 +1,9 @@
package cn.estsh.i3plus.pojo.aps.common;
import cn.estsh.i3plus.pojo.aps.annotation.ExcludeImportExport;
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
import cn.estsh.i3plus.pojo.aps.annotation.MainKey;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -18,6 +21,8 @@ import javax.persistence.MappedSuperclass;
@Data
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
@MainKey(groups = {InsertGroup.class})
@ExcludeImportExport
public abstract class BaseCode extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")

@ -312,10 +312,6 @@ public class BeanRelation {
}
}
public static void setOne(BaseBean bean, Enum<?> holder, BaseBean relaBean) {
get(bean).get(holder).add(relaBean);
}
/**
*
*
@ -359,37 +355,6 @@ public class BeanRelation {
}
/**
*
*
* @param bean
*/
// public static void delete(BaseBean bean) {
// if (bean == null) {
// return;
// }
// BeanInfo beanInfo = BeanInfo.getBeanInfo(bean.getClass());
// List<Enum<?>> ownerSigns = beanInfo.getOwnerHolders();
// for (Enum<?> holder : ownerSigns) {
// Class<? extends BaseBean> relaCls = beanInfo.getRelationInfo(holder).getBeanInfo().getBeanClass();
// List<BaseBean> relaBeans = new ArrayList<>(list(bean, holder));
// for (BaseBean relaBean : relaBeans) {
// //MemoryManager.delete(relaBean);
// }
// }
//
// List<Enum<?>> normalSigns = beanInfo.getNormalSigns();
// for (Enum<?> holder : normalSigns) {
// Enum<?> reverseHolder = beanInfo.getReverseHolder(holder);
// List<BaseBean> relaBeans = new ArrayList<>(list(bean, holder));
// for (BaseBean relaBean : relaBeans) {
// if (reverseHolder != null) {
// remove(relaBean, reverseHolder, bean);
// }
// }
// }
// }
/**
* lambdalambdafalse退
* @param bean
* @param fun

@ -10,5 +10,6 @@ public enum EWork {
PostRelations, // 后关联
Operation, // 工序
PlanFeedbacks, // 工作计划反馈
WorkPlan // 关联的为主资源的计划
MainPlan, // 关联的为主资源的计划
WorkPlans, // 关联的工作计划
}

@ -2,10 +2,9 @@ package cn.estsh.i3plus.pojo.aps.holders;
public enum EWorkPlan {
Work,
MainWork,
Resource,
WorkResource,
MainPlan, // 关联的为主资源的工作计划
AssPlans, // 关联的为副资源的工作计划
PrevPlan,
PostPlan,
FurnacePlan,

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.aps.model;
import lombok.Data;
/**
* @Description : Bean
* @Reference :
* @Author : jason.niu
* @CreateDate : 2019-11-29
* @Modify:
**/
@Data
public class BeanModel {
private String key;
private String name;
}

@ -19,5 +19,6 @@ public class GanttCalendarModel {
private Date end_date;
private String color;
private Long id;
private Long workId;
private String text;
}

@ -0,0 +1,11 @@
package cn.estsh.i3plus.pojo.aps.model;
import lombok.Data;
@Data
public class GanttLineModel {
private long id;
private long source;
private long target;
private int type;
}

@ -1,7 +1,10 @@
package cn.estsh.i3plus.pojo.aps.model;
import cn.estsh.i3plus.pojo.base.common.Pager;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateDeserializer;
import cn.estsh.i3plus.pojo.aps.converter.CustomDateSerializer;
import cn.estsh.i3plus.pojo.base.enumutil.ApsEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.Api;
import lombok.Data;
@ -16,9 +19,12 @@ import java.util.Date;
**/
@Data
@Api("报表分页查询参数")
public class ReportPager extends Pager {
private String filter; // 物料筛选条件
public class ReportPager extends APSPager {
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date begin; // 统计开始时间
@JsonSerialize(using = CustomDateSerializer.class)
@JsonDeserialize(using = CustomDateDeserializer.class)
private Date end; // 统计结束时间
private ApsEnumUtil.MATERIAL_REPORT_TYPE type;
private ApsEnumUtil.REPORT_TIME_SPAN span; // 统计时间间隔

@ -0,0 +1,13 @@
package cn.estsh.i3plus.pojo.aps.model;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Data
public class StatisticReportReponse {
private List<String> headers = new ArrayList<>();
private List<Map<String, String>> datas = new ArrayList<>();
}

@ -0,0 +1,4 @@
package cn.estsh.i3plus.pojo.aps.validator;
public interface InsertGroup {
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.aps.validator;
import cn.estsh.i3plus.pojo.aps.annotation.MainKey;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public class MainKeyValidator implements ConstraintValidator<MainKey, BaseBean> {
@Override
public boolean isValid(BaseBean bean, ConstraintValidatorContext constraintValidatorContext) {
return true;
}
}

@ -12,7 +12,9 @@
</Relation>
<Relation field="Operation" name="Operation" type="MULTI_TO_ONE" owner="false">
</Relation>
<Relation field="WorkPlan" name="WorkPlan" reverse="Work" type="ONE_TO_ONE" owner="true">
<Relation field="MainPlan" name="WorkPlan" reverse="MainWork" type="ONE_TO_ONE">
</Relation>
<Relation field="WorkPlans" name="WorkPlan" reverse="Work" type="ONE_TO_MULTI" owner="true">
</Relation>
<Relation field="PlanFeedbacks" name="PlanFeedback" reverse="Work" type="ONE_TO_MULTI" owner="true">
</Relation>

@ -2,8 +2,6 @@
<Class name="WorkPlan">
<Relation field="WorkResource" name="WorkResource" type="ONE_TO_ONE" owner="false">
</Relation>
<Relation field="AssPlans" name="WorkPlan" reverse="MainPlan" type="ONE_TO_MULTI" owner="true">
</Relation>
<Relation field="PrevPlan" name="WorkPlan" reverse="PostPlan" type="MULTI_TO_MULTI" owner="false">
</Relation>
</Class>

@ -21,13 +21,13 @@ public @interface AnnoOutputColumn {
public String name() default "";
// 关系对象显示的字段
public String value() default "";
public String value() default "description";
// 显示格式
public FORMAT format() default FORMAT.STRING;
// 关联关系对象的Key
public String refForeignKey() default "";
public String refForeignKey() default "value";
// 关系对象
public Class refClass() default Object.class;

@ -2,10 +2,7 @@ package cn.estsh.i3plus.pojo.base.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiParam;
@ -65,12 +62,12 @@ public abstract class BaseBean implements Serializable {
// @AnnoOutputColumn(hidden = true)
public String organizeCode;
@Column(name="IS_VALID")
@Column(name="IS_VALID", columnDefinition = "int default 1", nullable = false)
@ApiParam(value = "有效性",example = "1")
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class,refForeignKey = "value",value = "description", hidden = true)
public Integer isValid; //CommonEnumUtil.IS_VAILD;
@Column(name="IS_DELETED")
@Column(name="IS_DELETED", columnDefinition = "int default 2", nullable = false)
@ApiParam(value = "是否已删除",example = "2")
@AnnoOutputColumn(hidden = true)
//逻辑删除,软删除

@ -13,6 +13,52 @@ import org.apache.commons.lang3.StringUtils;
public class AndonEnumUtil {
/**
* 线
* = 10 = 20
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RUNNING_STATUS{
RUNNING("10","正常"),
STOP("20","故障");
private String value;
private String description;
RUNNING_STATUS(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-
*/

@ -84,8 +84,8 @@ public class ApsEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MATERIAL_REPORT_TYPE {
PRODUCE("PRODUCE", "生产"),
PURCHASE("PURCHASE", "采购"),
PRODUCE("PRODUCE", "生产"),
INVENTORY("INVENTORY", "库存");
private String value;
@ -446,8 +446,8 @@ public class ApsEnumUtil {
NONE("NONE", "不限制"),
NO_PO("NO_PO", "未计划"),
NO_PLAN("NO_PLAN", "计划完毕"),
NO_POR("NO_POR", ""),
NO_PPRS("NO_PPRS", "");
NO_POR("NO_POR", "指示完毕"),
NO_PPRS("NO_PPRS", "已确认");
private String value;
private String description;

@ -484,7 +484,8 @@ public class BlockSoftSwitchEnumUtil {
MAP(40,"字典"),
LIST(50,"列表"),
JAVA_OBJECT(60,"Java Object"),
JAVA_DYNAMIC_OBJECT(61,"Java Dynamic Object");
JAVA_DYNAMIC_OBJECT(61,"Java Dynamic Object"),
ARRAY(70,"数组");
private int value;
private String description;

@ -146,6 +146,24 @@ public class CommonEnumUtil {
}
return null;
}
public static int descriptionOfValue(String desc) {
int tmp = IMPP.value;
for (int i = 0; i < values().length; i++) {
if (values()[i].name().equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = IMPP.value;
for (int i = 0; i < values().length; i++) {
if (values()[i].name().equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
@ -254,13 +272,15 @@ public class CommonEnumUtil {
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SYS_LOCALE_RESOURCE_TYPE {
COMMON(1, "通用"),
EXCEPTION(2, "异常"),
EXCEPTION_DETAIL(3, "异常明细"),
EXCEPTION_SOLUTION(4, "解决方案"),
ENUM(5, "枚举"),
MENU(10, "功能权限"),
WEB(13, "前端");
COMMON(10, "通用"),
EXCEPTION_DETAIL(20, "异常信息"),
EXCEPTION_SOLUTION(30, "解决方案"),
ENUM(40, "枚举"),
MENU(50, "功能权限"),
WEB(60, "前端"),
SYS_CONFIG(70, "系统参数"),
SYS_DICTIONARY(80, "系统字典"),
MISSING(90, "缺失");
private int value;
private String description;
@ -287,6 +307,21 @@ public class CommonEnumUtil {
}
return tmp;
}
public static int descOf(String desc) {
int tmp = COMMON.value;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
public static int descriptionOfValue(String val) {
return descOf(val);
}
}
/**

@ -629,6 +629,16 @@ public class MesEnumUtil {
}
return tmp;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
@ -1285,7 +1295,20 @@ public class MesEnumUtil {
MES_PCN_SYNC_CFG(50, "PCN同步配置"),
MES_PART(60, "物料表"),
MES_PRODUCE_CATEGORY(70, "产品类型"),
MES_PACK_SPEC(80, "包装规格");
MES_PACK_SPEC(80, "包装规格"),
MES_PROD_PACK(90, "产品包装关系"),
MES_PRODUCT_ENCODE_CFG(100, "产品编码配置"),
MES_BOM(110, "物料清单"),
MES_PROD_CFG_TYPE(120, "产品配置类型"),
MES_CUSTOMER(130, "客户表"),
MES_CUSTOMER_PART(140, "客户零件关系表"),
MES_WORK_CENTER(150, "生产线"),
MES_WORK_CELL(160, "工位"),
MES_WC_EQUIPMENT(170, "工位设备关系表"),
MES_SHIFT(180, "班次"),
MES_SHIFT_GROUP(190, "班组"),
MES_WORK_CELL_PARAM_CFG(200, "工作单元参数配置"),
MES_STATION_BOM(210, "工位BOM表");
private int value;
private String description;
@ -1438,10 +1461,10 @@ public class MesEnumUtil {
}
/**
* mes
* mes Bom
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_IS_REPEAT {
public enum MES_STATION_BOM_IS_REPEAT {
REPEATABLE(1, "可重复"),
NOT_REPEAT(2, "不可重复");
@ -1449,7 +1472,7 @@ public class MesEnumUtil {
private int value;
private String description;
MES_IS_REPEAT(int value, String description) {
MES_STATION_BOM_IS_REPEAT(int value, String description) {
this.value = value;
this.description = description;
}
@ -1463,8 +1486,8 @@ public class MesEnumUtil {
}
// 根据value返回枚举类型,主要在switch中使用
public static MES_IS_REPEAT getByValue(int value) {
for (MES_IS_REPEAT mesInsertExcel : values()) {
public static MES_STATION_BOM_IS_REPEAT getByValue(int value) {
for (MES_STATION_BOM_IS_REPEAT mesInsertExcel : values()) {
if (mesInsertExcel.getValue() == value) {
return mesInsertExcel;
}
@ -1483,6 +1506,157 @@ public class MesEnumUtil {
return tmp;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* mes Bom
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STATION_BOM_IS_CHECK {
REPEATABLE(1, "是"),
NOT_REPEAT(2, "否");
private int value;
private String description;
MES_STATION_BOM_IS_CHECK(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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* mes Bom
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STATION_BOM_IS_FEED {
REPEATABLE(1, "是"),
NOT_REPEAT(2, "否");
private int value;
private String description;
MES_STATION_BOM_IS_FEED(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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* mes Bom
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STATION_BOM_IS_BIND_KEY {
REPEATABLE(1, "是"),
NOT_REPEAT(2, "否");
private int value;
private String description;
MES_STATION_BOM_IS_BIND_KEY(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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
@ -1531,6 +1705,16 @@ public class MesEnumUtil {
return tmp;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
@ -3439,6 +3623,62 @@ public class MesEnumUtil {
}
return tmp;
}
public static String descriptionOfValue(String description) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
* MesWorkCellParamCfg
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_WORK_CELL_PARAM_CFG_IS_CHECK {
RUNNING(1, "是"),
STOPPED(2, "否");
private int value;
private String description;
MES_WORK_CELL_PARAM_CFG_IS_CHECK(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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

@ -12,6 +12,220 @@ import org.apache.commons.lang3.StringUtils;
**/
public class MesPcnEnumUtil {
/**
* mes Bom
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STATION_BOM_IS_REPEAT {
REPEATABLE(1, "可重复"),
NOT_REPEAT(2, "不可重复");
private int value;
private String description;
MES_STATION_BOM_IS_REPEAT(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
// 根据value返回枚举类型,主要在switch中使用
public static MES_STATION_BOM_IS_REPEAT getByValue(int value) {
for (MES_STATION_BOM_IS_REPEAT mesInsertExcel : values()) {
if (mesInsertExcel.getValue() == value) {
return mesInsertExcel;
}
}
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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CONFIG_TYPE {
FASTDFS_SAVE_PATH(10, "SAVE_PATH", ""),
NGINX_HOST(20, "NGINX_HOST", ""),
MES_STATION_SOCKET(30, "mes_station_socket", ""),
GATEWAY_IP(40, "GATEWAY_HOST", ""),
UPDATE_SYNC_TIME(50, "SYNC_DATA_URL", "UPDATE_SYNC_TIME"),
PCN_PULL(60, "SYNC_DATA_URL", "PCN_PULL"),
PCN_PUSH(70, "SYNC_DATA_URL", "PCN_PUSH"),
FDFS_DOWNLOAD(80, "SYNC_DATA_URL", "FDFS_DOWNLOAD"),
REWORK_REPAIR(90, "REWORK_REPAIR", ""),
OPC_LINK_SERVER_URL(100, "OPC_LINK", "OPC_LINK_SERVER_URL"),
OPC_LINK_USERNAME(110, "OPC_LINK", "OPC_LINK_USERNAME"),
OPC_LINK_PASSWORD(120, "OPC_LINK", "OPC_LINK_PASSWORD"),
OPC_LINK_REALM(130, "OPC_LINK", "OPC_LINK_REALM"),
OPC_LINK_CALLBACK(140, "OPC_LINK", "OPC_LINK_CALLBACK"),
SUPPLY_SWITCH(150, "SUPPLY_SWITCH", ""),
PCN_LOGIN(160, "PCN_LOGIN", ""),
PCN_MENU(170, "PCN_MENU", ""),
PCN_MODULE(180, "PCN_MODULE", ""),
PCN_LOGOUT(190, "PCN_LOGOUT", "");
private int value;
private String code;
private String description;
CONFIG_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
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;
}
}
/**
* pcn
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_ACTION_TYPE {
BIND(10, "绑定"),
UNTYING(20, "解绑");
private int value;
private String description;
MES_ACTION_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
// 根据value返回枚举类型,主要在switch中使用
public static MES_ACTION_TYPE getByValue(int value) {
for (MES_ACTION_TYPE mesInsertExcel : values()) {
if (mesInsertExcel.getValue() == value) {
return mesInsertExcel;
}
}
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;
}
}
/**
* pcn
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_IS_BIND_KEY {
IS_BIND_KEY(1, "是"),
NO_BIND_KEY(2, "否");
private int value;
private String description;
MES_IS_BIND_KEY(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
// 根据value返回枚举类型,主要在switch中使用
public static MES_IS_BIND_KEY getByValue(int value) {
for (MES_IS_BIND_KEY mesInsertExcel : values()) {
if (mesInsertExcel.getValue() == value) {
return mesInsertExcel;
}
}
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;
}
}
/**
*
*/

@ -644,7 +644,8 @@ public class WmsEnumUtil {
VDA_PACKAGE_MANAGE(440,"VDA_PACKAGE_MANAGE", "VDA编组管理"),
KT_PURCHASE_RC(450,"KT_PURCHASE_RC", "采购收货"),
KT_PACK_RC(460,"KT_PACK_RC", "坤泰包装收货"),
FINISH_PRODUCT_SHPING(470, "FINISH_PRODUCT_SHPING", "成品发运");
FINISH_PRODUCT_SHPING(470, "FINISH_PRODUCT_SHPING", "成品发运"),
KT_PICK_RC(480,"KT_PICK_RC", "坤泰拣货");
private int value;
private String code;
@ -823,11 +824,12 @@ public class WmsEnumUtil {
VDA_NC_UN_FREEZE("VDA_NC_UN_FREEZE", "VDA_NC解冻"),
VDA_PART_BOXING_ERROR_PROOFING("VDA_PART_BOXING_ERROR_PROOFING", "VDA装箱防错"),
VDA_SN_SPLIT("VDA_SN_SPLIT", "VDA条码拆分"),
VDA_SN_("VDA_SN_MERGE", "VDA条码合并"),
VDA_SN_MERGE("VDA_SN_MERGE", "VDA条码合并"),
VDA_SCAN_QUERY("VDA_SCAN_QUERY", "VDA扫描查询"),
VDA_TRANSACTION_QUERY("VDA_TRANSACTION_QUERY","VDA事务查询"),
VDA_STATIC_CS("VDA_STATIC_CS", "VDA静态盘点"),
VDA_PACKAGE_MANAGE("VDA_PACKAGE_MANAGE", "VDA编组管理");
VDA_PACKAGE_MANAGE("VDA_PACKAGE_MANAGE", "VDA编组管理"),
KT_PICK_RC("KT_PICK_RC", "坤泰拣货");
private String value;
private String description;

@ -30,10 +30,13 @@ public class LacCommandOperate {
public LacCommandOperate(){}
public LacCommandOperate(Long operateObjId,LacEnumUtil.OPERATE_COMMAND operateCommand){
public LacCommandOperate(Long operateObjId,Integer operate){
this.operateObjId = operateObjId;
this.operateCommand = operateCommand.getValue();
this.operateObjType = operateCommand.getOperateObjType().getValue();
LacEnumUtil.OPERATE_COMMAND operate_command = LacEnumUtil.OPERATE_COMMAND.valueOf(operate);
if(operate_command!=null) {
this.operateCommand = operate_command.getValue();
this.operateObjType = operate_command.getOperateObjType().getValue();
}
}
}

@ -27,9 +27,9 @@ import javax.persistence.Transient;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PROCESS_BOM")
@Table(name = "MES_STATION_BOM")
@Api("工序物料清单")
public class MesProcessBom extends BaseBean {
public class MesStationBom extends BaseBean {
@Column(name = "PART_NO")
@ApiParam("零件号")
private String partNo;
@ -46,14 +46,6 @@ public class MesProcessBom extends BaseBean {
@ApiParam("工作单元")
private String workCellCode;
@Column(name = "ROUTE_CODE")
@ApiParam("流程代码")
private String routeCode;
@Column(name = "PROCESS_CODE")
@ApiParam("工序代码")
private String processCode;
@Column(name = "ITEM_PART_NO")
@ApiParam("子零件")
private String itemPartNo;
@ -67,10 +59,6 @@ public class MesProcessBom extends BaseBean {
@ApiParam(value = "子零件数量", example = "0")
private Double qty;
@Transient
@ApiParam(value = "绑定数量")
private Double boundQty;
@Column(name = "IS_REPEAT")
@ApiParam(value = "是否可重复")
private Integer isRepeat;
@ -83,11 +71,15 @@ public class MesProcessBom extends BaseBean {
@ApiParam(value = "是否投料配置")
private Integer isFeed;
@Column(name = "is_BIND_KEY")
@Column(name = "IS_BIND_KEY")
@ApiParam(value = "是否绑定关键件")
private Integer isBindKey;
@Transient
@ApiParam(value = "绑定数量")
private Double boundQty;
@Transient
@ApiParam("是否已绑定")
private Boolean isBind;
@ -129,9 +121,8 @@ public class MesProcessBom extends BaseBean {
@Override
public String toString() {
return "MesProcessBom{" +
return "MesStationBom{" +
"partNo='" + partNo + '\'' +
", processCode='" + processCode + '\'' +
", itemPartNo='" + itemPartNo + '\'' +
", qty=" + qty +
", isRepeat=" + isRepeat +

@ -0,0 +1,49 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesDefect;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\28 19:50
* @Modify:
**/
@Data
public class DefectModel {
private Long id;
@ApiParam("缺陷代码")
private String defectCode;
@ApiParam("缺陷名称")
private String defectName;
@ApiParam("缺陷类型")
private String defectType;
@ApiParam("缺陷类型名称")
private String defectTypeName;
@ApiParam("缺陷位置")
private String defectLocation;
@ApiParam("缺陷类型子集")
private List<DefectModel> mesDefectList;
public DefectModel() {
}
public DefectModel(Long id, String defectCode, String defectName, String defectType, String defectTypeName) {
this.id = id;
this.defectCode = defectCode;
this.defectName = defectName;
this.defectType = defectType;
this.defectTypeName = defectTypeName;
}
}

@ -11,7 +11,7 @@ import lombok.Data;
* @Modify:
**/
@Data
public class MesProcessBomModel {
public class MesStationBomModel {
private Long id;
@ApiParam("子物料编码")
@ -40,11 +40,11 @@ public class MesProcessBomModel {
@ApiParam("报废数")
private Integer scrapQty;
public MesProcessBomModel() {
public MesStationBomModel() {
}
public MesProcessBomModel(Long id, String itemPartNo, String itemPartName, Double qty, Integer isValid, Integer isDeleted, String organizeCode, Integer isFeed, String workCenterCode, String workCellCode, String parentPartNo, String parentPartName) {
public MesStationBomModel(Long id, String itemPartNo, String itemPartName, Double qty, Integer isValid, Integer isDeleted, String organizeCode, Integer isFeed, String workCenterCode, String workCellCode, String parentPartNo, String parentPartName) {
this.id = id;
this.itemPartNo = itemPartNo;
this.itemPartName = itemPartName;
@ -59,7 +59,7 @@ public class MesProcessBomModel {
this.parentPartName = parentPartName;
}
public MesProcessBomModel(String itemPartNo, String itemPartName, Double qty, Integer isValid, Integer isDeleted, String organizeCode, Integer isFeed, String workCenterCode, String workCellCode, String parentPartNo, String parentPartName) {
public MesStationBomModel(String itemPartNo, String itemPartName, Double qty, Integer isValid, Integer isDeleted, String organizeCode, Integer isFeed, String workCenterCode, String workCellCode, String parentPartNo, String parentPartName) {
this.itemPartNo = itemPartNo;
this.itemPartName = itemPartName;
this.qty = qty;

@ -33,6 +33,8 @@ public class RequestModel {
private Integer destStatus; // 目的状态
private List<String> orderNoList;//工单编号
public RequestModel(List<MesQueueOrder> queueOrderList, Double currentSeq, Double nextSeq) {
this.queueOrderList = queueOrderList;
this.currentSeq = currentSeq;
@ -101,6 +103,14 @@ public class RequestModel {
this.queueOrderList = queueOrderList;
}
public void setOrderNoList(List<String> orderNoList) {
this.orderNoList = orderNoList;
}
public List<String> getOrderNoList() {
return orderNoList;
}
public Double getCurrentSeq() {
return currentSeq == null ? 0.0d : currentSeq;
}

@ -1,7 +1,7 @@
package cn.estsh.i3plus.pojo.mes.pcn.model;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesProcessBom;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesStationBom;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
@ -16,8 +16,8 @@ import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("工BOM model")
public class ProcessBomModel extends MesProcessBom {
@Api("工BOM model")
public class StationBomModel extends MesStationBom {
@ApiParam("上料数量")
private Long cellFeedQty;

@ -1,7 +1,7 @@
package cn.estsh.i3plus.pojo.mes.pcn.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesProcessBom;
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesStationBom;
import org.springframework.stereotype.Repository;
/**
@ -12,5 +12,5 @@ import org.springframework.stereotype.Repository;
* @Modify:
**/
@Repository
public interface MesProcessBomRepository extends BaseRepository<MesProcessBom, Long> {
public interface MesStationBomRepository extends BaseRepository<MesStationBom, Long> {
}

@ -98,17 +98,17 @@ public class MesHqlPack {
/**
* BOM
*
* @param mesProcessBom
* @param mesRawPartSn
* @param stationBom
* @param rawPartSn
* @return
*/
public static DdlPackBean getMesProcessBomRawPartSn(MesProcessBom mesProcessBom, MesRawPartSn mesRawPartSn) {
DdlPackBean packBean = getAllBaseData(mesProcessBom.getOrganizeCode());
DdlPreparedPack.getStringEqualPack(mesProcessBom.getWorkCenterCode(), "workCenterCode", packBean);
DdlPreparedPack.getStringEqualPack(mesProcessBom.getWorkCellCode(), "workCellCode", packBean);
DdlPreparedPack.getStringEqualPack(mesProcessBom.getPartNo(), "partNo", packBean);
public static DdlPackBean getStationBomRawPartSn(MesStationBom stationBom, MesRawPartSn rawPartSn) {
DdlPackBean packBean = getAllBaseData(stationBom.getOrganizeCode());
DdlPreparedPack.getStringEqualPack(stationBom.getWorkCenterCode(), "workCenterCode", packBean);
DdlPreparedPack.getStringEqualPack(stationBom.getWorkCellCode(), "workCellCode", packBean);
DdlPreparedPack.getStringEqualPack(stationBom.getPartNo(), "partNo", packBean);
DdlPreparedPack.getNumEqualPack(MesPcnEnumUtil.PROCESS_BOM_ISFEED.FEED.getValue(), "isFeed", packBean);
DdlPreparedPack.getStringEqualPack(mesRawPartSn.getPartNo(), "itemPartNo", packBean);
DdlPreparedPack.getStringEqualPack(rawPartSn.getPartNo(), "itemPartNo", packBean);
return packBean;
}
@ -350,4 +350,25 @@ public class MesHqlPack {
}
/**
* MES
*
* @param shiftGroup
* @param organizeCode
* @return
*/
public static DdlPackBean getMesShiftGroup(MesShiftGroup shiftGroup, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(shiftGroup, organizeCode);
if (!StringUtils.isEmpty(shiftGroup.getGroupCode())) {
DdlPreparedPack.getStringLikerPack(shiftGroup.getGroupCode(), "groupCode", packBean);
}
if (!StringUtils.isEmpty(shiftGroup.getGroupName())) {
DdlPreparedPack.getStringLikerPack(shiftGroup.getGroupName(), "groupName", packBean);
}
if (!StringUtils.isEmpty(shiftGroup.getWorkCenterCode())) {
DdlPreparedPack.getStringLikerPack(shiftGroup.getWorkCenterCode(), "workCenterCode", packBean);
}
return packBean;
}
}

@ -41,6 +41,10 @@ public class MesPartObject extends BaseBean {
@ApiParam("物料名称")
private String objectName;
@Column(name = "WORK_CENTER_CODE")
@ApiParam("生产线")
private String workCenterCode;
@Transient
@ApiParam("产品条码")
private String productSn;

@ -1,7 +1,6 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.MesEnumUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
@ -9,14 +8,11 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Arrays;
import java.util.List;
/**
* @Description:

@ -94,4 +94,28 @@ public class MesQcCheckData extends BaseBean {
@ApiParam("客户代码")
private String custCode;
@Transient
@ApiParam("班次")
private String shiftCode;
@Transient
@ApiParam("班组")
private String shiftGroup;
@Transient
@ApiParam("班长")
private String squadLeader;
@Transient
@ApiParam("工作单元名称")
private String workCellName;
@Transient
@ApiParam("物料名称")
private String partNoName;
public MesQcCheckData(String createDatetime, String createUser) {
super.createDatetime = createDatetime;
super.createUser = createUser;
}
}

@ -9,16 +9,14 @@ import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
/**
* @Description :
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-02
@ -29,9 +27,9 @@ import java.util.Date;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PROCESS_BOM")
@Api("工物料清单")
public class MesProcessBom extends BaseBean {
@Table(name = "MES_STATION_BOM")
@Api("工物料清单")
public class MesStationBom extends BaseBean {
@Column(name = "PART_NO")
@ApiParam("零件号")
private String partNo;
@ -48,15 +46,6 @@ public class MesProcessBom extends BaseBean {
@ApiParam("工作单元")
private String workCellCode;
@Column(name = "ROUTE_CODE")
@ApiParam("流程代码")
private String routeCode;
@Column(name = "PROCESS_CODE")
@ApiParam("工序代码")
private String processCode;
@Column(name = "ITEM_PART_NO")
@ApiParam("子零件")
private String itemPartNo;
@ -69,10 +58,6 @@ public class MesProcessBom extends BaseBean {
@ColumnDefault("0")
@ApiParam(value = "子零件数量", example = "0")
private Double qty;
@Transient
@ApiParam(value = "绑定数量")
private Double boundQty;
@Column(name = "IS_REPEAT")
@ApiParam(value = "是否可重复")
@ -99,6 +84,9 @@ public class MesProcessBom extends BaseBean {
@ApiParam("显示颜色")
private String color;
@Transient
@ApiParam(value = "绑定数量")
private Double boundQty;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
@ -122,9 +110,8 @@ public class MesProcessBom extends BaseBean {
@Override
public String toString() {
return "MesProcessBom{" +
return "MesStationBom{" +
"partNo='" + partNo + '\'' +
", processCode='" + processCode + '\'' +
", itemPartNo='" + itemPartNo + '\'' +
", qty=" + qty +
", isRepeat=" + isRepeat +

@ -57,7 +57,7 @@ public class IfRawPartDataModel extends BaseBean {
private String supplierCode;
@ApiParam("工厂代码")
private String organizationCode;
private String organizeCode;
@ApiParam("同步状态")
private Integer syncStatus;

@ -66,4 +66,8 @@ public class ProdOrgModel extends BaseBean {
@Transient
@ApiParam("工位类型")
private Integer workCellType;
@Transient
@ApiParam("序号")
private Integer seq;
}

@ -0,0 +1,116 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\29 11:34
* @Modify:
**/
@Data
public class QcCheckDataModel {
private Long id;
public String organizeCode;
public String createUser;
public String createDatetime;
@ApiParam("检测id")
private String checkId;
@ApiParam("物料编码")
private String partNo;
@ApiParam("工作中心代码")
private String workCenterCode;
@ApiParam("工作单元代码")
private String workCellCode;
@ApiParam("检测类型")
private Integer checkType;
@ApiParam("检测项")
private String checkItem;
@ApiParam("检测标准")
private String checkStandard;
@ApiParam("检测指导")
private String checkGuide;
@ApiParam("频率")
private String checkFrequency;
@ApiParam("检测值")
private String checkValue;
@ApiParam("判定结果")
private String checkResult;
@ApiParam("产品条码")
private String sn;
@ApiParam("产品数量")
private Integer qty;
@ApiParam("备注")
private String memo;
@ApiParam("工单号")
private String orderNo;
@ApiParam("客户代码")
private String custCode;
@ApiParam("班次")
private String shiftCode;
@ApiParam("班组")
private String shiftGroupName;
@ApiParam("班长")
private String squadLeader;
@ApiParam("工作单元名称")
private String workCellName;
@ApiParam("物料名称")
private String partNoName;
public QcCheckDataModel() {
}
public QcCheckDataModel(Long id, String organizeCode, String createUser, String createDatetime, String checkId, String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard, String checkGuide, String checkFrequency, String checkValue, String checkResult, String sn, Integer qty, String memo, String orderNo, String custCode, String shiftCode, String shiftGroupName, String squadLeader, String workCellName, String partNoName) {
this.id = id;
this.organizeCode = organizeCode;
this.createUser = createUser;
this.createDatetime = createDatetime;
this.checkId = checkId;
this.partNo = partNo;
this.workCenterCode = workCenterCode;
this.workCellCode = workCellCode;
this.checkType = checkType;
this.checkItem = checkItem;
this.checkStandard = checkStandard;
this.checkGuide = checkGuide;
this.checkFrequency = checkFrequency;
this.checkValue = checkValue;
this.checkResult = checkResult;
this.sn = sn;
this.qty = qty;
this.memo = memo;
this.orderNo = orderNo;
this.custCode = custCode;
this.shiftCode = shiftCode;
this.shiftGroupName = shiftGroupName;
this.squadLeader = squadLeader;
this.workCellName = workCellName;
this.partNoName = partNoName;
}
}

@ -32,6 +32,10 @@ public class RequestModel {
private Integer destStatus; // 目的状态
private List<String> orderNoList;//工单编号
private List<ActionRequestBean> requestBeanList;//工单下达
public RequestModel(List<MesQueueOrder> queueOrderList, Double currentSeq, Double nextSeq) {
this.queueOrderList = queueOrderList;
this.currentSeq = currentSeq;
@ -84,6 +88,20 @@ public class RequestModel {
this.queueOrderList = queueOrderList;
}
public void setOrderNoList(List<String> orderNoList) {
this.orderNoList = orderNoList;
}
public List<String> getOrderNoList() {
return orderNoList;
}
public void setRequestBeanList(List<ActionRequestBean> requestBeanList) {
this.requestBeanList = requestBeanList;
}
public List<ActionRequestBean> getRequestBeanList() { return requestBeanList; }
public Double getCurrentSeq() {
return currentSeq == null ? 0.0d : currentSeq;
}

@ -1,14 +0,0 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesPartObject;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\25 15:07
* @Modify:
**/
public interface IMesPartObjectRepository extends BaseRepository<MesPartObject, Long> {
}

@ -1,7 +1,7 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesProcessBom;
import cn.estsh.i3plus.pojo.mes.bean.MesStationBom;
import org.springframework.stereotype.Repository;
/**
@ -12,5 +12,5 @@ import org.springframework.stereotype.Repository;
* @Modify:
**/
@Repository
public interface MesProcessBomRepository extends BaseRepository<MesProcessBom, Long> {
public interface MesStationBomRepository extends BaseRepository<MesStationBom, Long> {
}

@ -365,6 +365,9 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(shiftGroup.getGroupName())) {
DdlPreparedPack.getStringLikerPack(shiftGroup.getGroupName(), "groupName", packBean);
}
if (!StringUtils.isEmpty(shiftGroup.getWorkCenterCode())) {
DdlPreparedPack.getStringLikerPack(shiftGroup.getWorkCenterCode(), "workCenterCode", packBean);
}
return packBean;
}
@ -743,25 +746,24 @@ public class MesHqlPack {
/**
* MESBOM
*
* @param processBom
* @param stationBom
* @return
*/
public static DdlPackBean getMesProcessBom(MesProcessBom processBom, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(processBom, organizeCode);
DdlPreparedPack.getStringLikerPack(processBom.getPartNo(), "partNo", packBean);
DdlPreparedPack.getStringLikerPack(processBom.getItemPartNo(), "itemPartNo", packBean);
DdlPreparedPack.getStringLikerPack(processBom.getProcessCode(), "processCode", packBean);
public static DdlPackBean getStationBom(MesStationBom stationBom, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(stationBom, organizeCode);
DdlPreparedPack.getStringLikerPack(stationBom.getPartNo(), "partNo", packBean);
DdlPreparedPack.getStringLikerPack(stationBom.getItemPartNo(), "itemPartNo", packBean);
return packBean;
}
public static DdlPackBean getMesProcessBomExcludeById(MesProcessBom mesProcessBom, String org) {
public static DdlPackBean getStationBomExcludeById(MesStationBom stationBom, String org) {
DdlPackBean packBean = getAllBaseData(org);
DdlPreparedPack.getStringEqualPack(mesProcessBom.getPartNo(), "partNo", packBean);
DdlPreparedPack.getStringEqualPack(mesProcessBom.getItemPartNo(), "itemPartNo", packBean);
DdlPreparedPack.getStringEqualPack(mesProcessBom.getWorkCenterCode(), "workCenterCode", packBean);
DdlPreparedPack.getStringEqualPack(mesProcessBom.getWorkCellCode(), "workCellCode", packBean);
DdlPreparedPack.getNumEqualPack(mesProcessBom.getIsFeed(), "isFeed", packBean);
DdlPreparedPack.getNumNOEqualPack(mesProcessBom.getId(), "id", packBean);
DdlPreparedPack.getStringEqualPack(stationBom.getPartNo(), "partNo", packBean);
DdlPreparedPack.getStringEqualPack(stationBom.getItemPartNo(), "itemPartNo", packBean);
DdlPreparedPack.getStringEqualPack(stationBom.getWorkCenterCode(), "workCenterCode", packBean);
DdlPreparedPack.getStringEqualPack(stationBom.getWorkCellCode(), "workCellCode", packBean);
DdlPreparedPack.getNumEqualPack(stationBom.getIsFeed(), "isFeed", packBean);
DdlPreparedPack.getNumNOEqualPack(stationBom.getId(), "id", packBean);
return packBean;
}
@ -1618,6 +1620,7 @@ public class MesHqlPack {
/**
*
*
* @param mesObjectCfg
* @param organizeCode
* @return
@ -1641,6 +1644,7 @@ public class MesHqlPack {
/**
*
*
* @param mesDataObject
* @param organizeCode
* @return
@ -1664,6 +1668,7 @@ public class MesHqlPack {
/**
*
*
* @param mesProdPack
* @param organizeCode
* @return
@ -1690,6 +1695,7 @@ public class MesHqlPack {
/**
*
*
* @param mesProductEncodeCfg
* @param organizeCode
* @return
@ -1713,6 +1719,7 @@ public class MesHqlPack {
/**
*
*
* @param mesCustOrder
* @param organizeCode
* @return
@ -1753,6 +1760,7 @@ public class MesHqlPack {
/**
*
*
* @param mesLabelTemplate
* @param organizeCode
* @return
@ -1770,6 +1778,7 @@ public class MesHqlPack {
/**
*
*
* @param mesKeyAction
* @param organizeCode
* @return
@ -1793,6 +1802,7 @@ public class MesHqlPack {
/**
*
*
* @param mesActionIf
* @param organizeCode
* @return
@ -1810,6 +1820,7 @@ public class MesHqlPack {
/**
*
*
* @param mesIf
* @param organizeCode
* @return
@ -1833,6 +1844,7 @@ public class MesHqlPack {
/**
*
*
* @param mesProduceSn
* @param organizeCode
* @return
@ -1851,8 +1863,8 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesProduceSn.getProductSn())) {
DdlPreparedPack.getStringLikerPack(mesProduceSn.getProductSn(), "productSn", packBean);
}
if (!StringUtils.isEmpty(mesProduceSn.getWorkCellCode())) {
DdlPreparedPack.getStringLikerPack(mesProduceSn.getWorkCellCode(), "workCellCode", packBean);
if (!StringUtils.isEmpty(mesProduceSn.getWorkCenterCode())) {
DdlPreparedPack.getStringLikerPack(mesProduceSn.getWorkCenterCode(), "workCenterCode", packBean);
}
if (mesProduceSn.getSnStatus() != null) {
DdlPreparedPack.getNumEqualPack(mesProduceSn.getSnStatus(), "snStatus", packBean);
@ -1860,11 +1872,16 @@ public class MesHqlPack {
if (mesProduceSn.getQcStatus() != null) {
DdlPreparedPack.getNumEqualPack(mesProduceSn.getQcStatus(), "qcStatus", packBean);
}
DdlPreparedPack.timeBuilder(
mesProduceSn.getCreateDateTimeStart(),
mesProduceSn.getCreateDateTimeEnd(),
"createDatetime", packBean, true);
return packBean;
}
/**
*
*
* @param mesProdBindRecord
* @param organizeCode
* @return
@ -1886,6 +1903,9 @@ public class MesHqlPack {
if (!StringUtils.isEmpty(mesProdBindRecord.getWorkCellCode())) {
DdlPreparedPack.getStringLikerPack(mesProdBindRecord.getWorkCellCode(), "workCellCode", packBean);
}
if (!StringUtils.isEmpty(mesProdBindRecord.getLotNo())) {
DdlPreparedPack.getStringLikerPack(mesProdBindRecord.getLotNo(), "lotNo", packBean);
}
if (mesProdBindRecord.getIsBindKey() != null) {
DdlPreparedPack.getNumEqualPack(mesProdBindRecord.getIsBindKey(), "isBindKey", packBean);
}
@ -1904,6 +1924,7 @@ public class MesHqlPack {
/**
*
*
* @param ifPackageDetail
* @param organizeCode
* @return
@ -1925,6 +1946,7 @@ public class MesHqlPack {
/**
*
*
* @param mesRepairRecord
* @param organizeCode
* @return
@ -1961,6 +1983,7 @@ public class MesHqlPack {
/**
*
*
* @param mesQcCheckData
* @param organizeCode
* @return
@ -1989,4 +2012,64 @@ public class MesHqlPack {
return packBean;
}
/**
*
*
* @param mesProduceSnTravel
* @param organizeCode
* @return
*/
public static DdlPackBean getMesProduceSnTravel(MesProduceSnTravel mesProduceSnTravel, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(mesProduceSnTravel, organizeCode);
if (!StringUtils.isEmpty(mesProduceSnTravel.getWorkOrderNo())) {
DdlPreparedPack.getStringLikerPack(mesProduceSnTravel.getWorkOrderNo(), "workOrderNo", packBean);
}
if (!StringUtils.isEmpty(mesProduceSnTravel.getPartNo())) {
DdlPreparedPack.getStringLikerPack(mesProduceSnTravel.getPartNo(), "partNo", packBean);
}
if (!StringUtils.isEmpty(mesProduceSnTravel.getSerialNumber())) {
DdlPreparedPack.getStringLikerPack(mesProduceSnTravel.getSerialNumber(), "serialNumber", packBean);
}
if (!StringUtils.isEmpty(mesProduceSnTravel.getProductSn())) {
DdlPreparedPack.getStringLikerPack(mesProduceSnTravel.getProductSn(), "productSn", packBean);
}
if (!StringUtils.isEmpty(mesProduceSnTravel.getWorkCellCode())) {
DdlPreparedPack.getStringLikerPack(mesProduceSnTravel.getWorkCellCode(), "workCellCode", packBean);
}
if (mesProduceSnTravel.getSnStatus() != null) {
DdlPreparedPack.getNumEqualPack(mesProduceSnTravel.getSnStatus(), "snStatus", packBean);
}
if (mesProduceSnTravel.getQcStatus() != null) {
DdlPreparedPack.getNumEqualPack(mesProduceSnTravel.getQcStatus(), "qcStatus", packBean);
}
DdlPreparedPack.timeBuilder(
mesProduceSnTravel.getCreateDateTimeStart(),
mesProduceSnTravel.getCreateDateTimeEnd(),
"createDatetime", packBean, true);
return packBean;
}
/**
*
*
* @param partObject
* @param organizeCode
* @return
*/
public static DdlPackBean getMesPartObject(MesPartObject partObject, String organizeCode) {
DdlPackBean packBean = getAllBaseDataByNormalPro(partObject, organizeCode);
if (!StringUtils.isEmpty(partObject.getPartNo())) {
DdlPreparedPack.getStringLikerPack(partObject.getPartNo(), "partNo", packBean);
}
if (!StringUtils.isEmpty(partObject.getObjectCode())) {
DdlPreparedPack.getStringLikerPack(partObject.getObjectCode(), "objectCode", packBean);
}
if (!StringUtils.isEmpty(partObject.getObjectName())) {
DdlPreparedPack.getStringLikerPack(partObject.getObjectName(), "objectName", packBean);
}
if (!StringUtils.isEmpty(partObject.getWorkCenterCode())) {
DdlPreparedPack.getStringLikerPack(partObject.getWorkCenterCode(), "workCenterCode", packBean);
}
return packBean;
}
}

@ -1,7 +1,6 @@
package cn.estsh.i3plus.pojo.model.mes;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -71,6 +70,10 @@ public class StationRequestBean implements Serializable {
@ApiParam("托盘号")
private String tray;
@ApiParam("完成数量")
private Integer finishCount;
@ApiParam("工步列表")
private List<StepModel> stepList;
}

@ -69,10 +69,6 @@ public class PrintOrderDataModel implements Serializable {
@Transient
public String vendorEmail;
@ApiParam(value = "标题")
@Transient
public String title;
public int getBusiDataType() {
if (busiDataType != null) {
return busiDataType.intValue();

@ -1,4 +1,4 @@
package cn.estsh.i3plus.pojo.wms.bean.iotio;
package cn.estsh.i3plus.pojo.model.wms;
import io.swagger.annotations.ApiParam;
import lombok.Data;

@ -1,12 +1,12 @@
package cn.estsh.i3plus.pojo.platform.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
@ -30,7 +30,9 @@ import javax.persistence.Transient;
public class SysLocaleResource extends BaseBean {
private static final long serialVersionUID = -2397207310100672746L;
@Column(name="resource_type")
@AnnoOutputColumn(refClass = CommonEnumUtil.SYS_LOCALE_RESOURCE_TYPE.class, refForeignKey = "value", value = "description")
@ApiParam(value = "资源类型",example = "1",access = "使用枚举CommonEnumUtil.SYS_LOCALE_RESOURCE_TYPE")
private Integer resourceType;
@ -62,8 +64,14 @@ public class SysLocaleResource extends BaseBean {
@ApiParam(value = "资源Value",example = "通过resourceTypelanguageId和key获取")
private String resourceValue;
@Column(name="SOFT_TYPE")
@ApiParam(value ="产品类型", example = "0",access = "softTyp DOC: http://doc.estsh.com/docs/i3plus_api/i3plus_api-impp")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class, refForeignKey = "value", value = "description",required = false)
private Integer softType;
//系统自带需要有初始化表只能修改value无法删除。
@Column(name="is_system")
@ApiParam(value = "是否系统参数",example = "2")
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description")
private Integer isSystem;
}

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.platform.platbean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
@ -9,7 +11,6 @@ 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.Index;
@ -48,6 +49,11 @@ public class SysLogTaskTime extends BaseBean {
@ApiParam(value ="调度服务器端口")
private String schedulerServerPort;
@Column(name="TaskThreadId")
@ApiParam(value ="任务线程id")
@JsonSerialize(using = ToStringSerializer.class)
private Long taskThreadId;
@Column(name="NAME")
@ApiParam(value ="任务名称")
private String name;
@ -80,6 +86,7 @@ public class SysLogTaskTime extends BaseBean {
@Column(name="TASK_STATUS")
@ApiParam(value ="任务完成情况(枚举1正常2失败)")
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description")
private Integer taskStatus;
@Column(name="TASK_LOG_ERROR")

@ -16,7 +16,9 @@ import java.util.List;
/**
* @Description :
* @Reference :
* @Reference : Jenkins
* @Reference : Jenkins
* @Reference : Jenkins
* @Author : alwaysfrin
* @CreateDate : 2018-12-25 19:54
* @Modify:

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.BlockSoftSwitchEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@ -8,13 +10,13 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.math.NumberUtils;
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 :
@ -44,6 +46,7 @@ public class BsSuitCaseParam extends BaseBean {
@Column(name = "PARAM_TYPE_ID")
@ApiParam(value = "参数类型,枚举(出,入)")
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.PARAM_TYPE.class)
private Integer paramTypeId;
@Column(name = "PARAM_NAME")
@ -56,8 +59,13 @@ public class BsSuitCaseParam extends BaseBean {
@Column(name = "PARAM_VAL_TYPE_ID")
@ApiParam(value = "参数值类型")
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.PARAM_VALUE_TYPE.class)
private Integer paramValTypeId;
public int getParamValTypeIdVal() {
return paramValTypeId == null ? NumberUtils.INTEGER_MINUS_ONE : paramValTypeId.intValue();
}
@Column(name = "PARAM_SORT")
@ApiParam(value = "参数参数排序")
private Integer paramSort;

@ -22,96 +22,96 @@ import javax.persistence.Table;
**/
@Data
@Entity
@Table(name="AMP_JIS_REC")
@Table(name = "AMP_JIS_REC")
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Api(value="AMP_JIS收货",description = "AMP_JIS收货")
public class AmpJisRec extends BaseBean{
@Api(value = "AMP_JIS收货", description = "AMP_JIS收货")
public class AmpJisRec extends BaseBean {
private static final long serialVersionUID = 4460727160153551089L;
@Column(name="ORDER_NO")
@Column(name = "ORDER_NO", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("JIS单号")
public String orderNo;
@Column(name="PART_NO")
@Column(name = "PART_NO", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("物料编码")
public String partNo;
@Column(name="PART_NAME_RDD")
@Column(name = "PART_NAME_RDD", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("物料名称")
public String partNameRdd;
@Column(name="QTY", columnDefinition = "decimal(18,8)")
@Column(name = "QTY", columnDefinition = "decimal(18,8) default 0", nullable = false)
@ColumnDefault("0")
@ApiParam(value = "数量", example = "0")
public Double qty;
@Column(name="UNIT")
@Column(name = "UNIT", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("单位")
public String unit;
@Column(name="SN")
@Column(name = "SN", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("条码")
public String sn;
/**
* :10=,20=,30=
*/
@Column(name="ORDER_STATUS")
@Column(name = "ORDER_STATUS", columnDefinition = "int default 0", nullable = false)
@ApiParam(value = "状态", example = "10")
public Integer orderStatus;
@Column(name="VENDOR_NO")
@Column(name = "VENDOR_NO", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam(value = "供应商编码", example = "10")
public String vendorNo;
@Column(name="REMARK")
@Column(name = "REMARK", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("备注")
public String remark;
@Column(name="SRC")
@Column(name = "SRC", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("单据来源")
public String src;
@Column(name="SHIPPING_FLAG")
@Column(name = "SHIPPING_FLAG", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("特殊发货标志")
public String shippingFlag;
@Column(name="ERROR_MESSAGE")
@Column(name = "ERROR_MESSAGE", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("错误信息")
public String errorMessage;
@Column(name="AREA_NO")
@Column(name = "AREA_NO", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("ERP库存地")
public String areaNo;
@Column(name="CAR_NO")
@Column(name = "CAR_NO", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("车号")
public String carNo;
@Column(name="VIN")
@Column(name = "VIN", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("VIN号")
public String vin;
@Column(name="SHIPPING_TIME")
@Column(name = "SHIPPING_TIME", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("发运时间")
public String shippingTime;
@Column(name="SID")
@Column(name = "SID", columnDefinition = "varchar(225) default ''", nullable = false)
@ApiParam("sid")
public String sid;
@Column(name="IS_LOCK")
@ApiParam("是否锁定 是否锁定1=锁定 2=未锁定" )
@Column(name = "IS_LOCK", columnDefinition = "int default 0", nullable = false)
@ApiParam("是否锁定 是否锁定1=锁定 2=未锁定")
public Integer isLock;
@Column(name="ERP_SYNC_FLAG")
@ApiParam("ERP同步标识 ERP同步标识10=待同步20=同步成功30=同步失败" )
@Column(name = "ERP_SYNC_FLAG", columnDefinition = "int default 0", nullable = false)
@ApiParam("ERP同步标识 ERP同步标识10=待同步20=同步成功30=同步失败")
public Integer erpSyncFlag;
public AmpJisRec(Long id,String partNo, String partNameRdd,String vendorNo,Double qty,String unit){
this.id= id;
public AmpJisRec(Long id, String partNo, String partNameRdd, String vendorNo, Double qty, String unit) {
this.id = id;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.vendorNo = vendorNo;

@ -42,7 +42,7 @@ public class SwebProcurementPlanOrder extends BaseBean {
private String vendorName;
@Column(name = "PART_NO")
@ApiParam(value = "物料名称")
@ApiParam(value = "物料编号")
private String partNo;
@Column(name = "PART_NAME")
@ -53,8 +53,4 @@ public class SwebProcurementPlanOrder extends BaseBean {
@ApiParam(value = "是否寄售")
private Integer consignment=2;
@Column(name = "organize_code")
@ApiParam(value = "组织代码")
private String organizeCode;
}

@ -147,6 +147,9 @@ public class WmsDocMovementDetails extends BaseBean {
@ApiParam("目的库存地代码")
public String destAreaNo;
@Column(name = "LOT_NO")
@ApiParam("批次")
public String lotNo;
@Transient
@ApiParam("实际批次")
private String actualLot;

@ -175,6 +175,10 @@ public class WmsDocMovementMaster extends BaseBean {
@ApiParam("物料编号")
public String partNo;
@ApiParam(value = "标题")
@Transient
public String title;
public int getOrderStatusVal() {
return this.orderStatus == null ? 0 : this.orderStatus;
}

@ -0,0 +1,61 @@
package cn.estsh.i3plus.pojo.wms.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.UniqueConstraint;
/**
* @Description :
* @Reference :
* @Author : jessica.chen
* @CreateDate : 2019-11-26 14:21
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="WMS_FILE",
uniqueConstraints = {@UniqueConstraint(columnNames = {"FILE_NAME", "REF_SRC", "REF_TYPE"})})
@Api("附件信息")
public class WmsFile extends BaseBean{
private static final long serialVersionUID = 9214639813072592712L;
@Column(name="FILE_NAME")
@ApiParam("文件名称")
private String fileName;
@Column(name="FILE_SIZE")
@ApiParam(value = "文件大小(KB)", example = "0")
private Integer fileSize = 0;
@Column(name="FILE_TYPE")
@ApiParam("文件类型")
private String fileType;
@Column(name="RESOURCE_ID")
@ApiParam("资源编号")
private String resourceId;
@Column(name="FILE_URL")
@ApiParam("下载地址")
private String fileUrl;
@Column(name="REF_SRC")
@ApiParam("关联单据编号")
private String refSrc;
@Column(name = "REF_TYPE")
@ApiParam(value = "关联单据类型")
private String refType;
}

@ -159,6 +159,10 @@ public class WmsPOMaster extends BaseBean {
@Transient
private List<String> orderNoList;
@Column(name = "DOCK")
@ApiParam("道口")
public String dock;
public int getPoStatusVal() {
return this.poStatus == null ? 0 : this.poStatus;
}

@ -0,0 +1,53 @@
package cn.estsh.i3plus.pojo.wms.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 : gcj
* @CreateDate : 2019-11-27 16:06
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_PICK_COUNT")
@Api("供应商物料每月数量")
public class WmsPickCount extends BaseBean {
private static final long serialVersionUID = 4849044986767609486L;
@Column(name = "YEAR")
@ApiParam(value = "年")
private String year;
@Column(name = "MONTH")
@ApiParam(value = "月")
private String month;
@Column(name = "VENDOR_NO")
@ApiParam(value = "供应商编码")
private String vendorNo;
@Column(name = "PART_NO")
@ApiParam(value = "物料号")
private String partNo;
@Column(name = "QTY")
@ApiParam(value = "数量")
private Double qty;
}

@ -95,7 +95,23 @@ public class WmsQCMaster extends BaseBean {
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description")
public Integer isPart;
@Transient
@ApiParam(value = "零件号")
public String partNo;
public int getOrderStatusVal() {
return this.orderStatus == null ? 0 : this.orderStatus;
}
public WmsQCMaster () {
}
public WmsQCMaster (String orderNo, String vendorNo, String refType, String refSrc, String partNo) {
this.orderNo = orderNo;
this.vendorNo = vendorNo;
this.refType = refType;
this.refSrc = refSrc;
this.partNo = partNo;
}
}

@ -23,13 +23,13 @@ import javax.persistence.*;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_TRANS_QUAN", indexes = {
@Table(name = "WMS_TRANS_QUAN"/*, indexes = {
@Index(columnList = "WH_NO"),
@Index(columnList = "ZONE_NO"),
@Index(columnList = "LOCATE_NO"),
@Index(columnList = "REF_SRC"),
@Index(columnList = "ORGANIZE_CODE")
})
}*/)
@Api("库存交易信息")
public class WmsTransQuan extends BaseBean {

@ -42,6 +42,10 @@ public class WmsVendorPart extends BaseBean {
@ApiParam(value = "供应商物料号")
private String vendorPartNo;
@Column(name = "MAX_AMOUNT")
@ApiParam(value = "供应商月提供最大数量")
private Double maxAmount;
@Transient
@ApiParam("物料名称")
private String partName;

@ -21,7 +21,7 @@ public class WmsCheckPoint extends BaseBean {
private static final long serialVersionUID = 5589497687871639189L;
@Column(name="SNAPSHOT_TIME")
@Column(name="SNAPSHOT_TIME", columnDefinition="varchar(225) default ''",nullable=false)
@ApiParam("快照时间")
public String snapshotTime;
}

@ -0,0 +1,16 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsFile;
import org.springframework.stereotype.Repository;
/**
* @Description :
* @Reference :
* @Author : jessica,chen
* @CreateDate : 2019-11-27 14:49
* @Modify:
**/
@Repository
public interface WmsFileRepository extends BaseRepository<WmsFile, Long> {
}

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsPickCount;
import org.springframework.stereotype.Repository;
/**
* @Description :()
* @Reference :
* @Author : hansen.ke
* @CreateDate : 2018-11-06 13:40
* @Modify:
**/
@Repository
public interface WmsPickCountRepository extends BaseRepository<WmsPickCount, Long>{
}

@ -163,8 +163,8 @@ public class WmsHqlPack {
//查询参数封装
DdlPreparedPack.getNumEqualPack(swebProcurementPlanOrder.getOrganizeCode(), "organizeCode", packBean);
DdlPreparedPack.getNumEqualPack(swebProcurementPlanOrder.getPartNo(), "partNo", packBean);
DdlPreparedPack.getNumEqualPack(swebProcurementPlanOrder.getPartName(), "partName", packBean);
DdlPreparedPack.getStringEqualPack(swebProcurementPlanOrder.getPartNo(), "partNo", packBean);
DdlPreparedPack.getStringEqualPack(swebProcurementPlanOrder.getPartName(), "partName", packBean);
DdlPreparedPack.getStringEqualPack(swebProcurementPlanOrder.getVendorCode(), "vendorCode", packBean);
DdlPreparedPack.getStringEqualPack(swebProcurementPlanOrder.getVendorName(), "vendorName", packBean);
DdlPreparedPack.getStringRightLikerPack(swebProcurementPlanOrder.getOrderNo(), "orderNo", packBean);
@ -228,6 +228,7 @@ public class WmsHqlPack {
DdlPreparedPack.getStringEqualPack(wmsPOMaster.getVendorNo(), "vendorNo", result);
DdlPreparedPack.getStringEqualPack(wmsPOMaster.getSrc(), "src", result);
DdlPreparedPack.getStringEqualPack(wmsPOMaster.getIsAsn(), "isAsn", result);
DdlPreparedPack.getStringEqualPack(wmsPOMaster.getContainerNo(), "containerNo", result);
if (wmsPOMaster.getPriorRC()!=null&&wmsPOMaster.getPriorRC()==WmsEnumUtil.TRUE_OR_FALSE.FALSE.getValue()){
ArrayList<Integer> numList = new ArrayList<>();
numList.add(0);

@ -62,7 +62,7 @@
<version>2.9.2</version>
</dependency>
<!-- 简化方法 -->
<!-- 简化方法1127 -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>

Loading…
Cancel
Save