问题修复
This commit is contained in:
parent
22c09cf185
commit
d4803fdfb4
|
|
@ -661,7 +661,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
|
||||
BomNewEbomParentVO parent = Convert.convert(BomNewEbomParentVO.class, root);
|
||||
materialMainService.intiMaterialInfo(ImmutableList.of(parent), BomNewEbomParentVO::getMaterialNo);
|
||||
if (parent.getMaterialCategoryCode().startsWith("30") || parent.getMaterialCategoryCode().equals("200401")) {
|
||||
if (parent.getMaterialCategoryCode().startsWith("30") || ImmutableList.of("200601","200401").contains(parent.getMaterialCategoryCode())) {
|
||||
VirtualPackageBase generate;
|
||||
if (parent.getMaterialCategoryCode().startsWith("30")) {
|
||||
generate = new VirtualPackageFor31(paramDto.getBomRowId(), paramDto.getVirtualPackageValue());
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.nflg.product.bomnew.service.domain.OriginalBom;
|
|||
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.extra.spring.SpringUtil;
|
||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||
|
|
@ -127,6 +128,7 @@ public abstract class BaseConvert {
|
|||
parentEntity.setCreatedBy(SessionUtil.getUserCode());
|
||||
parentEntity.setCreatedTime(LocalDateTime.now());
|
||||
parentEntity.setShouldBomExist(material.getShouldBomExist());
|
||||
parentEntity.setTotalWeight(NumberUtil.mul(parentEntity.getUnitWeight(),parentEntity.getNum()) );
|
||||
|
||||
if (StrUtil.isNotBlank(material.getMaterialCategoryCode()) &&(material.getMaterialCategoryCode().equals(OriginalConstant.COMMON_MATERIAL_CATEGORY_CODE) || material.getMaterialCategoryCode().startsWith("30") ||
|
||||
( material.getMaterialCategoryCode().startsWith("20") && material.getMaterialGetType().equals(MaterialGetEnum.developing.getValue())))){
|
||||
|
|
@ -156,6 +158,7 @@ public abstract class BaseConvert {
|
|||
childEntity.setCreatedBy(SessionUtil.getUserCode());
|
||||
childEntity.setRemark(material.getRemark());
|
||||
childEntity.setShouldBomExist(material.getShouldBomExist());
|
||||
childEntity.setTotalWeight(NumberUtil.mul(childEntity.getUnitWeight(),childEntity.getNum()));
|
||||
this.resultChild.add(childEntity);
|
||||
return childEntity;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue