同步sap
This commit is contained in:
parent
e8f7ef564d
commit
52ce04273c
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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<>());
|
||||
|
|
|
|||
Loading…
Reference in New Issue