Merge branch 'refs/heads/feature/DM/nflg-bom' into feature/DM/nflg-bom-transition
This commit is contained in:
commit
e907fb4f02
|
|
@ -1,6 +1,7 @@
|
|||
package com.nflg.product.bomnew.service.domain.OriginalBom;
|
||||
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.util.NumberUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
|
@ -117,7 +118,7 @@ public abstract class BaseConvert {
|
|||
parentEntity.setMaterialDesc(material.getMaterialDesc());
|
||||
parentEntity.setCurrentVersion(VersionUtil.getNextVersion(preVersion));
|
||||
parentEntity.setNum(Convert.toBigDecimal(material.getQty()) );
|
||||
parentEntity.setBomExist(childs.isEmpty()?0:1);
|
||||
parentEntity.setBomExist(CollUtil.isEmpty(childs)?0:1);
|
||||
parentEntity.setShouldBomExist(MaterialshouldBomExistUtil.checkShouldBomExist(material)?1:0);
|
||||
parentEntity.setLastVersionIs(1);
|
||||
parentEntity.setMaterialTexture(material.getMaterial());
|
||||
|
|
|
|||
|
|
@ -373,7 +373,7 @@ public class OriginalBomToEBomV2Convert extends BaseConvert {
|
|||
eBomParent.setLastVersionIs(1);
|
||||
eBomParent.setEditStatus(EbomEditStatusEnum.HANDLER_CREATED.getValue());
|
||||
//eBomParent.setModifyTime(LocalDateTime.now());
|
||||
eBomParent.setBomExist(parentEnt.getBomRowId() > 0 ? 1 : 0);
|
||||
// eBomParent.setBomExist(parentEnt.getBomRowId() > 0 ? 1 : 0);
|
||||
eBomParent.setDeviseName(SessionUtil.getRealName());
|
||||
eBomParent.setDeptName(SessionUtil.getDepartName());
|
||||
eBomParent.setDeviseUserCode(SessionUtil.getUserCode());
|
||||
|
|
|
|||
Loading…
Reference in New Issue