diff --git a/op-api/op-api-system/src/main/java/com/op/system/api/model/SapProOrder.java b/op-api/op-api-system/src/main/java/com/op/system/api/model/SapProOrder.java index eb5900a1..f67cce33 100644 --- a/op-api/op-api-system/src/main/java/com/op/system/api/model/SapProOrder.java +++ b/op-api/op-api-system/src/main/java/com/op/system/api/model/SapProOrder.java @@ -22,6 +22,10 @@ public class SapProOrder extends TreeEntity { @Excel(name = "工厂编码") private String factoryCode; + /** 工单层数 */ + @Excel(name = "工单层数") + private String cegci; + /** 订单类型 */ @Excel(name = "订单类型") private String orderType; @@ -54,6 +58,8 @@ public class SapProOrder extends TreeEntity { @Excel(name = "任务清单") private String workerOrder; + + private Date createTime; private String createTimeStr; @@ -108,6 +114,14 @@ public class SapProOrder extends TreeEntity { @Excel(name = "产品类型") private String prodType; + public String getCegci() { + return cegci; + } + + public void setCegci(String cegci) { + this.cegci = cegci; + } + public String getCreateTimeStr() { return createTimeStr; } diff --git a/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapOrderServiceImpl.java b/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapOrderServiceImpl.java index bdb19749..2125c564 100644 --- a/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapOrderServiceImpl.java +++ b/op-modules/op-sap/src/main/java/com/op/sap/service/impl/SapOrderServiceImpl.java @@ -106,6 +106,7 @@ public class SapOrderServiceImpl implements SapOrderService { for (int i = 0; i < maraTable.getNumRows(); i++) { maraTable.setRow(i); String AUFNR = maraTable.getString("AUFNR"); + String CEGCI = maraTable.getString("CEGCI"); String AUART = maraTable.getString("AUART"); String MAUFNR = maraTable.getString("MAUFNR"); String PLNBEZ = maraTable.getString("PLNBEZ"); @@ -120,7 +121,7 @@ public class SapOrderServiceImpl implements SapOrderService { String ERDAT = maraTable.getString("ERDAT"); String STTXT = maraTable.getString("STTXT"); String VERID = maraTable.getString("VERID"); - log.info("订单输出------:"+"订单号:" + AUFNR + " - 订单类型:" + AUART + "-生产版本:"+ VERID +" -上级订单编号:" + MAUFNR + " - 物料号:" + PLNBEZ + " - 物料描述(短文本):" + MAKTX + log.info("订单输出------:"+"订单号:" + AUFNR +"工单层数:"+CEGCI+ " - 订单类型:" + AUART + "-生产版本:"+ VERID +" -上级订单编号:" + MAUFNR + " - 物料号:" + PLNBEZ + " - 物料描述(短文本):" + MAKTX + " - 订单的计划工厂:" + PWERK + " - 订单数量总计:" + GAMNG + " - 基本计量单位:" + GMEIN + " - 任务清单组码:" + PLNNR + " - 基本开始日期:" + GSTRP + " - 基本完成日期:" + GLTRP + " - 输入者:" + ERNAM + " - 创建日期:" + ERDAT + " - 系统状态:" + STTXT); // System.out.println("订单号:" + AUFNR + " - 订单类型:" + AUART + " - 上级订单编号:" + MAUFNR + " - 物料号:" + PLNBEZ + " - 物料描述(短文本):" + MAKTX @@ -130,6 +131,7 @@ public class SapOrderServiceImpl implements SapOrderService { proOrder.setId(IdUtils.fastSimpleUUID()); proOrder.setPlanFactoryCode(PWERK); proOrder.setOrderCode(AUFNR); + proOrder.setCegci(CEGCI); proOrder.setOrderType(AUART); proOrder.setAtrr2(VERID); proOrder.setProdCode(PLNBEZ);