parent
8fa8376476
commit
f04f06d0a6
@ -13,6 +13,8 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.foreverwin.iep.common.utils.HandleBoProcessor;
|
||||
import com.foreverwin.iep.integration.feign.RemoteFssm007Service;
|
||||
import com.foreverwin.iep.integration.feign.RemoteFssm0081Service;
|
||||
import com.foreverwin.iep.integration.feign.RemoteInvokeService;
|
||||
import com.foreverwin.iep.prd.domain.GenerateNextNumberRequest;
|
||||
import com.foreverwin.iep.prd.domain.GenerateNextNumberResponse;
|
||||
@ -123,6 +125,8 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
|
||||
private final StoragRequestDetailService storagRequestDetailService;
|
||||
private final RemoteInvokeService remoteInvokeService;
|
||||
private final RemotePrintService remotePrintService;
|
||||
private final RemoteFssm007Service remoteFssm007Service;
|
||||
private final RemoteFssm0081Service remoteFssm0081Service;
|
||||
|
||||
@Autowired
|
||||
private TransactionTemplate transactionTemplate;
|
||||
@ -4484,8 +4488,8 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
|
||||
// }
|
||||
//
|
||||
|
||||
// 调用ERP交货单创建接口
|
||||
//this.sapDeliveryOrderCreation(site, documents, user, documents_);
|
||||
// 调用ERP交货单创建接口
|
||||
this.sapDeliveryOrderCreation(site, documents, user, documents_);
|
||||
|
||||
documentDetailedService.updateBatchById(detaileds);
|
||||
this.updateBatchById(documents_);
|
||||
@ -6708,7 +6712,7 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
|
||||
if (Constant.DOCUMENT_STATUS_SUBMIT.equals(document.getState())) {
|
||||
updateDocumentAndDetailStatus(user, documentBo, now, Constant.DOCUMENT_STATUS_PICKING);
|
||||
//FSMM007-MES B
|
||||
/*if (StringUtil.isEmpty(document.getExternalDocumentNo())) {
|
||||
if (StringUtil.isEmpty(document.getExternalDocumentNo())) {
|
||||
throw BusinessException.build("交货单号不可为空");
|
||||
}
|
||||
JSONObject sapJsonBody = new JSONObject();
|
||||
@ -6717,7 +6721,7 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
|
||||
Map<String, String> resultMap = remoteFssm007Service.doExecute(sapJsonBody).getData();
|
||||
if ("E".equals(resultMap.get("RESULT"))) {
|
||||
throw BusinessException.build(resultMap.get("MSG"));
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -6734,13 +6738,13 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
|
||||
if (StringUtil.isEmpty(document.getExternalDocumentNo())) {
|
||||
throw BusinessException.build("交货单号不可为空");
|
||||
}
|
||||
/*JSONObject sapJsonBody = new JSONObject();
|
||||
JSONObject sapJsonBody = new JSONObject();
|
||||
sapJsonBody.put("Z_LVSTK", ""); // WMS的拣配状态
|
||||
sapJsonBody.put("VBELN", document.getExternalDocumentNo()); // 销售和分销凭证号
|
||||
Map<String, String> resultMap = remoteFssm007Service.doExecute(sapJsonBody).getData();
|
||||
if ("E".equals(resultMap.get("RESULT"))) {
|
||||
throw BusinessException.build(resultMap.get("MSG"));
|
||||
}*/
|
||||
}
|
||||
} else {
|
||||
throw BusinessException.build("单据状态无法清除记录");
|
||||
}
|
||||
@ -6769,13 +6773,13 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
|
||||
if (StringUtil.isEmpty(document.getExternalDocumentNo())) {
|
||||
throw BusinessException.build("交货单号不可为空");
|
||||
}
|
||||
/*JSONObject sapJsonBody = new JSONObject();
|
||||
JSONObject sapJsonBody = new JSONObject();
|
||||
sapJsonBody.put("Z_LVSTK", "C"); // WMS的拣配状态
|
||||
sapJsonBody.put("VBELN", document.getExternalDocumentNo()); // 销售和分销凭证号
|
||||
Map<String, String> resultMap = remoteFssm007Service.doExecute(sapJsonBody).getData();
|
||||
if ("E".equals(resultMap.get("RESULT"))) {
|
||||
throw BusinessException.build(resultMap.get("MSG"));
|
||||
}*/
|
||||
}
|
||||
} else {
|
||||
throw BusinessException.build("单据状态不允许提交");
|
||||
}
|
||||
@ -6858,7 +6862,7 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
|
||||
|
||||
// 调拨、出库、入库通用接口
|
||||
public void doPostErp(Document document, String site, String user, String documentNo, String types) {
|
||||
/*List<DocumentSfc> documentSfcs = documentSfcService.findDocumentSfcList(site, documentNo);
|
||||
List<DocumentSfc> documentSfcs = documentSfcService.findDocumentSfcList(site, documentNo);
|
||||
if (documentSfcs.isEmpty()) {
|
||||
throw BusinessException.build("交货单明细不可为空,无法传送SAP");
|
||||
}
|
||||
@ -6869,7 +6873,7 @@ public class DocumentServiceImpl extends ServiceImpl<DocumentMapper, Document> i
|
||||
Map<String, String> resultMap = remoteFssm0081Service.doExecute(sapJsonBody).getData();
|
||||
if ("E".equals(resultMap.get("RESULT"))) {
|
||||
throw BusinessException.build(resultMap.get("MSG"));
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
private JSONObject assembleRequestBody(Document document, String user, List<DocumentSfc> documentSfcs, String types) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user