同步sap

This commit is contained in:
大米 2024-01-22 12:29:31 +08:00
parent e8f7ef564d
commit 52ce04273c
3 changed files with 5 additions and 4 deletions

View File

@ -20,7 +20,7 @@ public class ImportSapParamDTO {
private String ZID="";
@ApiModelProperty("分工厂")
@ApiModelProperty("分工厂 1010 填1 ,1020 填2")
private String I_WERKS;
@ApiModelProperty(" EBOM: 2;PBOM: P;MBOM: 1;移动破: 1")

View File

@ -804,8 +804,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
this.getBaseMapper().bomRelease(state, SessionUtil.getUserName(), bomRowIds);
//同步sap
// saySyncDEMO();
// importSap(parent,allBom);
// importSap(parent,allBom);
//
} catch (Exception ex) {
throw new NflgBusinessException(STATE.BusinessError, "发布Pbom失败" + ex.getMessage());
}

View File

@ -2,6 +2,7 @@ package com.nflg.product.bomnew.service.domain;
import cn.hutool.core.convert.Convert;
import com.nflg.product.bomnew.constant.BomConstant;
import com.nflg.product.bomnew.constant.EBomConstant;
import com.nflg.product.bomnew.pojo.dto.sap.impart2.ImportSapParamDTO;
import com.nflg.product.bomnew.pojo.dto.sap.impart2.T1DTO;
import com.nflg.product.bomnew.pojo.entity.BomNewPbomParentEntity;
@ -28,7 +29,7 @@ public class Sap {
public ImportSapParamDTO buildSyncSapParam(){
ImportSapParamDTO result=new ImportSapParamDTO();
result.setZID(parent.getRowId().toString());
result.setI_WERKS(parent.getFacCode());
result.setI_WERKS(EBomConstant.MAIN_FACTORY_CODE_1010.equals( parent.getFacCode())?"1":"2");
result.setI_STLAN(BomConstant.SAP_PBOM);
result.setT1(new ArrayList<>());