采购登记修复目标仓库存储和用户为guest
This commit is contained in:
parent
bfb6f15bd3
commit
a90d521f2d
@ -26,6 +26,7 @@ import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
@ -73,6 +74,7 @@ public class RegisterDocumentServiceImpl implements RegisterDocumentService {
|
||||
JSONArray jsonArray = JSONArray.parseArray(invokeResponse.getMessageContent());
|
||||
List<DocumentDetailed> newDocumentList = new ArrayList<>();
|
||||
for (DocumentDetailed documentDetail : zwDocumentDetailList) {
|
||||
documentDetail.setTargetWarehouse(documentDetail.getStoragLocation());
|
||||
String itemNo = documentDetail.getMatnr();
|
||||
// 使用迭代器进行遍历和移除
|
||||
Iterator<Object> iterator = jsonArray.iterator();
|
||||
@ -86,7 +88,7 @@ public class RegisterDocumentServiceImpl implements RegisterDocumentService {
|
||||
}
|
||||
}
|
||||
// 调用远程服务进行单据的保存和记录库存
|
||||
String documentNo = remotePoService.saveDocumentData(newDocumentList, SecurityConstants.FROM_IN).getData();
|
||||
String documentNo = remotePoService.saveDocumentData(newDocumentList).getData();
|
||||
|
||||
// 发送给ERP执行FSMM008-2接口
|
||||
LocalDateTime nowLocalDateTime = LocalDateTime.now();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user