Browse Source

2025-12-18

erp接口调整
master
fengyuan_yang 4 weeks ago
parent
commit
f435f6790a
  1. 11
      src/main/java/com/gaotao/modules/erp/service/impl/ErpInterfaceServiceImpl.java

11
src/main/java/com/gaotao/modules/erp/service/impl/ErpInterfaceServiceImpl.java

@ -222,16 +222,7 @@ public class ErpInterfaceServiceImpl implements ErpInterfaceService {
headEntity.setRequestId(requestId); headEntity.setRequestId(requestId);
headEntity.setRequestGroupId(requestGroupId); headEntity.setRequestGroupId(requestGroupId);
headEntity.setOrderref1(firstLog.getDocumentNo()); headEntity.setOrderref1(firstLog.getDocumentNo());
String txType = firstLog.getTransactionType();
String txTypeName = "";
if ("O".equals(txType)) {
txTypeName = "领料";
} else if ("I".equals(txType)) {
txTypeName = "退料";
} else {
txTypeName = txType != null ? txType : "";
}
headEntity.setOrderref2(txTypeName);
headEntity.setOrderref2(firstLog.getTransactionType());
headEntity.setOrderref3(formatDate(firstLog.getTransactionDate())); headEntity.setOrderref3(formatDate(firstLog.getTransactionDate()));
headEntity.setOrderref4(firstLog.getDocumentNoType()); headEntity.setOrderref4(firstLog.getDocumentNoType());
headEntity.setOrderref5(""); headEntity.setOrderref5("");

Loading…
Cancel
Save