Merge branch 'refs/heads/feature/DM/nflg-bom' into dev
This commit is contained in:
commit
aa073ee79a
|
|
@ -34,6 +34,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.concurrent.CompletableFuture;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
|
@ -150,7 +151,10 @@ public class EbomApi extends BaseApi {
|
||||||
bomNewEbomParentService.convertToPBom(paramDto);
|
bomNewEbomParentService.convertToPBom(paramDto);
|
||||||
|
|
||||||
//更新PBomUse 数据
|
//更新PBomUse 数据
|
||||||
bomNewPbomParentService.getBaseMapper().updatePBomMaterialUse();
|
CompletableFuture.runAsync(()->{
|
||||||
|
bomNewPbomParentService.getBaseMapper().updatePBomMaterialUse();
|
||||||
|
});
|
||||||
|
|
||||||
return ResultVO.success(true);
|
return ResultVO.success(true);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import cn.hutool.core.util.StrUtil;
|
||||||
import cn.hutool.extra.spring.SpringUtil;
|
import cn.hutool.extra.spring.SpringUtil;
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.google.common.collect.Sets;
|
import com.google.common.collect.Sets;
|
||||||
|
import com.nflg.product.base.core.conmon.util.SessionUtil;
|
||||||
import com.nflg.product.base.core.exception.NflgBusinessException;
|
import com.nflg.product.base.core.exception.NflgBusinessException;
|
||||||
import com.nflg.product.bomnew.constant.*;
|
import com.nflg.product.bomnew.constant.*;
|
||||||
import com.nflg.product.bomnew.pojo.entity.BomNewEbomParentEntity;
|
import com.nflg.product.bomnew.pojo.entity.BomNewEbomParentEntity;
|
||||||
|
|
@ -59,6 +60,8 @@ public class CheckEBomException {
|
||||||
public CheckEBomException(Long bomRowId) throws ExecutionException, InterruptedException {
|
public CheckEBomException(Long bomRowId) throws ExecutionException, InterruptedException {
|
||||||
|
|
||||||
allBomDetail = SpringUtil.getBean(BomNewEbomParentService.class).getBomTree(bomRowId, true);
|
allBomDetail = SpringUtil.getBean(BomNewEbomParentService.class).getBomTree(bomRowId, true);
|
||||||
|
//只检查待复核和自己的
|
||||||
|
allBomDetail=allBomDetail.stream().filter(u-> SessionUtil.getUserCode().equals(u.getCreatedBy()) && u.getStatus().equals(1) ).collect(Collectors.toList());
|
||||||
BomNewEbomParentEntity parent = SpringUtil.getBean(BomNewEbomParentService.class).getById(bomRowId);
|
BomNewEbomParentEntity parent = SpringUtil.getBean(BomNewEbomParentService.class).getById(bomRowId);
|
||||||
if (Objects.isNull(parent)){
|
if (Objects.isNull(parent)){
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue