SAP工单同步接口增加层级字段

master
Yangwl 11 months ago
parent b2dd3e1990
commit a2e70c021b

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

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

Loading…
Cancel
Save