备件导入

yun-zuoyi
wynne1005 5 years ago
parent d36a7527a6
commit f52f07fe77

@ -16,16 +16,18 @@ public class MesEnumUtil {
* MES_SPC * MES_SPC
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SPC_KEY_DATA_OBJECT_TYPE{ public enum SPC_KEY_DATA_OBJECT_TYPE {
POJO_OBJECT(10,"实体对象(单表)"), POJO_OBJECT(10, "实体对象(单表)"),
DYNAMIC(20,"动态对象(生产数据表)"); DYNAMIC(20, "动态对象(生产数据表)");
private Integer value; private Integer value;
private String description; private String description;
SPC_KEY_DATA_OBJECT_TYPE(Integer value,String description ){
SPC_KEY_DATA_OBJECT_TYPE(Integer value, String description) {
this.value = value; this.value = value;
this.description = description; this.description = description;
} }
public static String valueOfDesc(String val) { public static String valueOfDesc(String val) {
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) { if (values()[i].value.equals(val)) {
@ -154,16 +156,17 @@ public class MesEnumUtil {
* *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IS_VALID{ public enum IS_VALID {
YES(1,"启用"), YES(1, "启用"),
NO(2,"禁用"); NO(2, "禁用");
private Integer isValid; private Integer isValid;
private String description; private String description;
IS_VALID(int isValid,String description){ IS_VALID(int isValid, String description) {
this.isValid = isValid; this.isValid = isValid;
this.description = description; this.description = description;
} }
public int getIsValid() { public int getIsValid() {
return isValid; return isValid;
} }
@ -180,6 +183,7 @@ public class MesEnumUtil {
this.description = description; this.description = description;
} }
} }
/** /**
* *
*/ */
@ -2055,7 +2059,8 @@ public class MesEnumUtil {
MES_PROD_CFG_DETAIL(560, "prodCfgDetailExcelService", "产品配置明细导入"), MES_PROD_CFG_DETAIL(560, "prodCfgDetailExcelService", "产品配置明细导入"),
MES_LOCATION(570, "locationExcelService", "库位信息导入"), MES_LOCATION(570, "locationExcelService", "库位信息导入"),
MES_SUB_PART(580, "mesSubPartExcelService", "替代料导入"), MES_SUB_PART(580, "mesSubPartExcelService", "替代料导入"),
MES_WORK_CELL_DEFECT(590, "workCellDefectExcelService", "工位缺陷信息导入"); MES_WORK_CELL_DEFECT(590, "workCellDefectExcelService", "工位缺陷信息导入"),
MES_SPARE_PARTS(600, "sparePartsExcelService", "备件计划导入");
private int value; private int value;
private String service; private String service;
@ -7702,4 +7707,78 @@ public class MesEnumUtil {
} }
} }
/**
* edi
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum EDI_PARSE_TYPE {
JOB(10, "定时任务解析文件"),
SPARE_PARTS(20, "备件excel上传");
private int value;
private String description;
EDI_PARSE_TYPE(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;
}
}
/**
* edi
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum EDI_REPORT_TYPE {
JSP(1, "jsp解析"),
JSA(2, "jsa解析");
private int value;
private String description;
EDI_REPORT_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getValueStr() {
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;
}
}
} }

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.mes.bean; package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean; 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.Api;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -28,7 +29,7 @@ import java.io.Serializable;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Table(name = "IF_PRODUCT_OFF_LINE") @Table(name = "IF_PRODUCT_OFF_LINE")
@Api("生产报工表") @Api("生产报工表")
public class IfProductOffLine extends BaseBean implements Serializable { public class IfProductOffLine extends BaseBean implements Serializable {
private static final long serialVersionUID = -4960147948435537306L; private static final long serialVersionUID = -4960147948435537306L;
@Column(name = "PART_NO") @Column(name = "PART_NO")
@ -148,4 +149,8 @@ public class IfProductOffLine extends BaseBean implements Serializable {
@Column(name = "CUST_PROD_LINE_CODE") @Column(name = "CUST_PROD_LINE_CODE")
@ApiParam("客户产线代码") @ApiParam("客户产线代码")
private String custProdLineCode; private String custProdLineCode;
@Column(name = "BASE_MODULE")
@ApiParam("BaseModule零件号")
private String baseModule;
} }

@ -0,0 +1,61 @@
package cn.estsh.i3plus.pojo.mes.model.excel.mgnbj;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
/**
* @author Wynne.Lu
* @date 2020/10/10 13:15
* @desc
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Api("备件计划导入model")
public class SparePartsImportModel {
@ApiParam("工厂代码")
private String organizeCode;
@ApiParam("用户名")
private String userName;
@ApiParam("vin")
private String vinCode;
@ApiParam("项目代码")
private String prodCfgTypeCode;
@ApiParam("客户工厂代码")
private String custPlantCode;
@ApiParam("客户代码")
private String custCode;
@ApiParam("客户产线代码")
private String custProdLineCode;
@ApiParam("JIT顺序号")
private String jitSeq;
@ApiParam("供应商代码")
private String supplierCode;
@ApiParam("客户零件号")
private String custPartNo;
@ApiParam("用量")
private Double qty;
@ApiParam("单元格编号")
private Map<String, String> cellNoMap = new HashMap<>();
}

@ -0,0 +1,23 @@
package cn.estsh.i3plus.pojo.mes.model.excel.mgnbj;
import cn.estsh.i3plus.pojo.mes.bean.MesQueueJitPlan;
import cn.estsh.i3plus.pojo.mes.bean.MesQueueJitPlanBom;
import cn.estsh.i3plus.pojo.mes.bean.MesQueueJitPlanDetail;
import lombok.Data;
import java.util.List;
/**
* @author Wynne.Lu
* @date 2020/10/11 15:31
* @desc
*/
@Data
public class SparePartsJspModel {
private MesQueueJitPlan queueJitPlan;
private List<MesQueueJitPlanBom> jitPlanBomList;
private List<MesQueueJitPlanDetail> jitPlanDetailList;
}

@ -1,11 +1,13 @@
package cn.estsh.i3plus.pojo.mes.model.mgnbj; package cn.estsh.i3plus.pojo.mes.model.mgnbj;
import cn.estsh.i3plus.pojo.mes.bean.MesScatterBomCfg;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import java.util.*; import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**

@ -5,6 +5,8 @@ import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/** /**
* @author Wynne.Lu * @author Wynne.Lu
@ -55,4 +57,8 @@ public class Part implements Serializable {
@ApiParam("Mes物料号") @ApiParam("Mes物料号")
private String partNo; private String partNo;
@ApiParam("单元格编号")
private Map<String, String> cellNoMap = new HashMap<>();
} }

Loading…
Cancel
Save