问题修复
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);
|
BomNewEbomParentVO parent = Convert.convert(BomNewEbomParentVO.class, root);
|
||||||
materialMainService.intiMaterialInfo(ImmutableList.of(parent), BomNewEbomParentVO::getMaterialNo);
|
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;
|
VirtualPackageBase generate;
|
||||||
if (parent.getMaterialCategoryCode().startsWith("30")) {
|
if (parent.getMaterialCategoryCode().startsWith("30")) {
|
||||||
generate = new VirtualPackageFor31(paramDto.getBomRowId(), paramDto.getVirtualPackageValue());
|
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.convert.Convert;
|
||||||
|
import cn.hutool.core.util.NumberUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.hutool.extra.spring.SpringUtil;
|
import cn.hutool.extra.spring.SpringUtil;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
||||||
|
|
@ -127,6 +128,7 @@ public abstract class BaseConvert {
|
||||||
parentEntity.setCreatedBy(SessionUtil.getUserCode());
|
parentEntity.setCreatedBy(SessionUtil.getUserCode());
|
||||||
parentEntity.setCreatedTime(LocalDateTime.now());
|
parentEntity.setCreatedTime(LocalDateTime.now());
|
||||||
parentEntity.setShouldBomExist(material.getShouldBomExist());
|
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") ||
|
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())))){
|
( material.getMaterialCategoryCode().startsWith("20") && material.getMaterialGetType().equals(MaterialGetEnum.developing.getValue())))){
|
||||||
|
|
@ -156,6 +158,7 @@ public abstract class BaseConvert {
|
||||||
childEntity.setCreatedBy(SessionUtil.getUserCode());
|
childEntity.setCreatedBy(SessionUtil.getUserCode());
|
||||||
childEntity.setRemark(material.getRemark());
|
childEntity.setRemark(material.getRemark());
|
||||||
childEntity.setShouldBomExist(material.getShouldBomExist());
|
childEntity.setShouldBomExist(material.getShouldBomExist());
|
||||||
|
childEntity.setTotalWeight(NumberUtil.mul(childEntity.getUnitWeight(),childEntity.getNum()));
|
||||||
this.resultChild.add(childEntity);
|
this.resultChild.add(childEntity);
|
||||||
return childEntity;
|
return childEntity;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue