Merge branch 'feature/DM/nflg-bom' of http://112.74.186.154:3000/nflj/nflg_project into feature/DM/nflg-bom
This commit is contained in:
commit
1aa43f0ef8
|
|
@ -14,7 +14,6 @@ import com.nflg.product.bomnew.pojo.entity.BomNewEbomParentEntity;
|
|||
import com.nflg.product.bomnew.pojo.entity.BomNewOriginalChildEntity;
|
||||
import com.nflg.product.bomnew.pojo.entity.BomNewOriginalParentEntity;
|
||||
import com.nflg.product.bomnew.pojo.vo.BaseMaterialVO;
|
||||
import com.nflg.product.bomnew.pojo.vo.BomOriginalListVO;
|
||||
import com.nflg.product.bomnew.pojo.vo.BomOriginalPlmBomVO;
|
||||
import com.nflg.product.bomnew.pojo.vo.MaterialMateVO;
|
||||
import com.nflg.product.bomnew.service.BomNewEbomParentService;
|
||||
|
|
@ -112,7 +111,7 @@ public abstract class BaseConvert {
|
|||
parentEntity.setMaterialDesc(material.getMaterialDesc());
|
||||
parentEntity.setCurrentVersion(VersionUtil.getNextVersion(preVersion));
|
||||
parentEntity.setNum(Convert.toBigDecimal(material.getQty()) );
|
||||
parentEntity.setBomExist(childs.size()>0?1:0);
|
||||
parentEntity.setBomExist(childs.isEmpty()?0:1);
|
||||
parentEntity.setShouldBomExist(MaterialshouldBomExistUtil.checkShouldBomExist(material)?1:0);
|
||||
parentEntity.setLastVersionIs(1);
|
||||
parentEntity.setMaterialTexture(material.getMaterial());
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import com.nflg.product.bomnew.util.VersionUtil;
|
|||
import lombok.Getter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
|
@ -30,10 +31,10 @@ public class PBomUpgrade {
|
|||
private List<BomNewPbomParentVO> allBom;
|
||||
|
||||
@Getter
|
||||
private List<BomNewPbomParentEntity> parentResult;
|
||||
private final List<BomNewPbomParentEntity> parentResult = new ArrayList<>();
|
||||
|
||||
@Getter
|
||||
private List<BomNewPbomChildEntity> childResult;
|
||||
private final List<BomNewPbomChildEntity> childResult = new ArrayList<>();
|
||||
|
||||
|
||||
public PBomUpgrade(BomNewPbomParentEntity root, List<BomNewPbomParentVO> allBom) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue