This commit is contained in:
parent
ff395e626a
commit
8468fba46e
|
|
@ -8,6 +8,7 @@ import cn.hutool.core.date.DateTime;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.date.LocalDateTimeUtil;
|
import cn.hutool.core.date.LocalDateTimeUtil;
|
||||||
import cn.hutool.core.lang.TypeReference;
|
import cn.hutool.core.lang.TypeReference;
|
||||||
|
import cn.hutool.core.thread.ThreadUtil;
|
||||||
import cn.hutool.core.util.IdUtil;
|
import cn.hutool.core.util.IdUtil;
|
||||||
import cn.hutool.core.util.NumberUtil;
|
import cn.hutool.core.util.NumberUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
|
@ -655,8 +656,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
ebomChildService.saveOrUpdateBatch(eBomEdit.childEntities);
|
ebomChildService.saveOrUpdateBatch(eBomEdit.childEntities);
|
||||||
}
|
}
|
||||||
|
|
||||||
computeLevelNumAndRootState();
|
|
||||||
|
|
||||||
|
ThreadUtil.execAsync(() -> computeLevelNumAndRootState());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1016,8 +1017,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
computeLevelNumAndRootState();
|
|
||||||
|
|
||||||
|
ThreadUtil.execAsync(() -> computeLevelNumAndRootState());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1057,7 +1058,9 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
deleteBomChild(dto.getDelDatas());
|
deleteBomChild(dto.getDelDatas());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
computeLevelNumAndRootState();
|
ThreadUtil.execAsync(() -> computeLevelNumAndRootState());
|
||||||
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,7 @@ public class EBomEdit {
|
||||||
|
|
||||||
parentEntities = new ArrayList<>();
|
parentEntities = new ArrayList<>();
|
||||||
childEntities = new ArrayList<>();
|
childEntities = new ArrayList<>();
|
||||||
|
List<String> roleList= SpringUtil.getBean(UserRoleService.class).getUserPost();
|
||||||
//添加数据
|
//添加数据
|
||||||
if (dto.getParent() == null) {
|
if (dto.getParent() == null) {
|
||||||
|
|
||||||
|
|
@ -123,7 +124,7 @@ public class EBomEdit {
|
||||||
childEntities) {
|
childEntities) {
|
||||||
|
|
||||||
child.setTotalWeight(NumberUtil.mul(child.getUnitWeight(), child.getNum()));
|
child.setTotalWeight(NumberUtil.mul(child.getUnitWeight(), child.getNum()));
|
||||||
List<String> roleList= SpringUtil.getBean(UserRoleService.class).getUserPost();
|
|
||||||
//新增数据
|
//新增数据
|
||||||
if(child.getRowId()==null || child.getRowId().longValue()==0){
|
if(child.getRowId()==null || child.getRowId().longValue()==0){
|
||||||
child.setRowId(IdWorker.getId());
|
child.setRowId(IdWorker.getId());
|
||||||
|
|
@ -172,6 +173,7 @@ public class EBomEdit {
|
||||||
// Map<String, BaseMaterialVO> materialVOMap = ListCommonUtil.listToMap(materialBaseInfo, BaseMaterialVO::getMaterialNo);
|
// Map<String, BaseMaterialVO> materialVOMap = ListCommonUtil.listToMap(materialBaseInfo, BaseMaterialVO::getMaterialNo);
|
||||||
parentEntities = new ArrayList<>();
|
parentEntities = new ArrayList<>();
|
||||||
childEntities = new ArrayList<>();
|
childEntities = new ArrayList<>();
|
||||||
|
List<String> roleList= SpringUtil.getBean(UserRoleService.class).getUserPost();
|
||||||
//添加数据
|
//添加数据
|
||||||
if (dto.getParent() == null) {
|
if (dto.getParent() == null) {
|
||||||
CheckEBomException eBomException=new CheckEBomException( dto.getDatas() );
|
CheckEBomException eBomException=new CheckEBomException( dto.getDatas() );
|
||||||
|
|
@ -214,7 +216,7 @@ public class EBomEdit {
|
||||||
|
|
||||||
//child.setProjectTypeInputType(ProjectTypeInputTypeEnum.MANUAL_INPUT.getValue());
|
//child.setProjectTypeInputType(ProjectTypeInputTypeEnum.MANUAL_INPUT.getValue());
|
||||||
child.setTotalWeight(NumberUtil.mul(child.getUnitWeight(), child.getNum()));
|
child.setTotalWeight(NumberUtil.mul(child.getUnitWeight(), child.getNum()));
|
||||||
List<String> roleList= SpringUtil.getBean(UserRoleService.class).getUserPost();
|
|
||||||
//新增数据
|
//新增数据
|
||||||
if(child.getRowId()==null || child.getRowId().longValue()==0){
|
if(child.getRowId()==null || child.getRowId().longValue()==0){
|
||||||
child.setRowId(IdWorker.getId());
|
child.setRowId(IdWorker.getId());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue