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