同步sap
This commit is contained in:
parent
f7fc1a9d41
commit
789e9f1be2
|
|
@ -38,6 +38,7 @@ import java.io.IOException;
|
|||
import java.math.BigDecimal;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.ForkJoinPool;
|
||||
|
|
@ -732,7 +733,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
bomRowIds.add(bomRowId);
|
||||
this.getBaseMapper().bomRelease(state, SessionUtil.getUserName(), bomRowIds);
|
||||
//同步sap
|
||||
saySyncDEMO();
|
||||
// saySyncDEMO();
|
||||
importSap(parent,allBom);
|
||||
|
||||
} catch (Exception ex) {
|
||||
throw new NflgBusinessException(STATE.BusinessError, "发布Pbom失败:" + ex.getMessage());
|
||||
|
|
@ -747,11 +749,11 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
ImportToSapParentDTO sapParent=new ImportToSapParentDTO();
|
||||
sapParent.setWERKS("1010");
|
||||
sapParent.setMATNR("2100564157");
|
||||
sapParent.setSTLAN("");
|
||||
sapParent.setSTLAN("2");
|
||||
sapParent.setBMENG("1");
|
||||
sapParent.setBMEIN("PC");
|
||||
sapParent.setSTLST("3");
|
||||
sapParent.setDATUV("2024-01-16");
|
||||
sapParent.setDATUV("20240116");
|
||||
|
||||
result.setParent(sapParent);
|
||||
List<ImportToSapChildDTO> childResult=new ArrayList<>();
|
||||
|
|
@ -794,14 +796,14 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
|
||||
ImportToSapDTO result=new ImportToSapDTO();
|
||||
ImportToSapParentDTO sapParent=new ImportToSapParentDTO();
|
||||
SimpleDateFormat spt=new SimpleDateFormat("yyyy-MM-dd");
|
||||
DateTimeFormatter ymd = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||
sapParent.setWERKS(parentVO.getFacCode());
|
||||
sapParent.setMATNR(parentVO.getMaterialNo());
|
||||
sapParent.setSTLAN("");
|
||||
sapParent.setSTLAN("2");
|
||||
sapParent.setBMENG(parentVO.getNum().toString());
|
||||
sapParent.setBMEIN(parentVO.getMaterialUnit());
|
||||
sapParent.setSTLST("3");
|
||||
sapParent.setDATUV(spt.format( parentVO.getCreatedTime()));
|
||||
sapParent.setDATUV( parentVO.getCreatedTime().format(ymd));
|
||||
|
||||
List<ImportToSapChildDTO> childResult=new ArrayList<>();
|
||||
for (BomNewPbomParentVO child :children) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue