Merge branch 'dev' into test

yun-zuoyi
王杰 6 years ago
commit 338367f3c3

@ -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 {
}

@ -1,6 +1,5 @@
package cn.estsh.i3plus.pojo.aps.annotation;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
import cn.estsh.i3plus.pojo.aps.validator.MainKeyValidator;
import javax.validation.Constraint;
@ -10,6 +9,13 @@ 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})

@ -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;
@ -29,6 +30,7 @@ import java.util.List;
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
@Api("订单基类")
@ExcludeImportExport
public class BaseOrder extends BaseCode {
@Column(name="MATERIAL_ID")

@ -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,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")

@ -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,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.aps.annotation.MainKey;
import cn.estsh.i3plus.pojo.aps.validator.InsertGroup;
@ -21,6 +22,7 @@ import javax.persistence.MappedSuperclass;
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
@MainKey(groups = {InsertGroup.class})
@ExcludeImportExport
public abstract class BaseCode extends BaseAPS {
@Column(name="CODE")
@ApiParam(value ="编码")

@ -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;
}

@ -9,6 +9,6 @@ import javax.validation.ConstraintValidatorContext;
public class MainKeyValidator implements ConstraintValidator<MainKey, BaseBean> {
@Override
public boolean isValid(BaseBean bean, ConstraintValidatorContext constraintValidatorContext) {
return false;
return true;
}
}

@ -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;

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

@ -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;
}
}

@ -2048,4 +2048,28 @@ public class MesHqlPack {
"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;
}
}

Loading…
Cancel
Save