Merge branch 'refs/heads/feature/DM/nflg-bom' into dev
This commit is contained in:
commit
4468d8b9ea
|
|
@ -535,7 +535,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
List<BomNewEbomParentVO> bomDetail = this.getBaseMapper().getParentChild(rowId);
|
||||
// EBomDetailTask detailTask = new EBomDetailTask(bomDetail);
|
||||
|
||||
EBomCheckErrorDetailTask detailTask=new EBomCheckErrorDetailTask(bomDetail);
|
||||
EBomCheckErrorDetailTask detailTask=new EBomCheckErrorDetailTask(bomDetail,SessionUtil.getUserCode());
|
||||
ForkJoinTask<List<BomNewEbomParentVO>> submit = bomDetailPool.submit(detailTask);
|
||||
|
||||
List<BomNewEbomParentVO> result = submit.join();
|
||||
|
|
|
|||
|
|
@ -35,12 +35,14 @@ public class EBomCheckErrorDetailTask extends RecursiveTask<List<BomNewEbomParen
|
|||
|
||||
List<BomNewEbomParentVO> result = new ArrayList<>();
|
||||
|
||||
private String jobCode;
|
||||
|
||||
|
||||
|
||||
public EBomCheckErrorDetailTask(List<BomNewEbomParentVO> inBomDetail) {
|
||||
|
||||
public EBomCheckErrorDetailTask(List<BomNewEbomParentVO> inBomDetail,String inJobCode) {
|
||||
bomDetail = inBomDetail;
|
||||
|
||||
jobCode=inJobCode;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -54,7 +56,7 @@ public class EBomCheckErrorDetailTask extends RecursiveTask<List<BomNewEbomParen
|
|||
|
||||
// List<BomNewEbomParentEntity> childBomlist = SpringUtil.getBean(BomNewEbomParentService.class).lambdaQuery().in(BomNewEbomParentEntity::getMaterialNo, materialNos).eq(BomNewEbomParentEntity::getLastVersionIs, 1).list();
|
||||
Integer userJob = SpringUtil.getBean(UserRoleService.class).getUserJob();
|
||||
List<BomNewEbomParentEntity> childBomlist=SpringUtil.getBean(BomNewEbomParentService.class).getBaseMapper().getEBomParentByMaterialNos(userJob, SessionUtil.getUserCode(),materialNos);
|
||||
List<BomNewEbomParentEntity> childBomlist=SpringUtil.getBean(BomNewEbomParentService.class).getBaseMapper().getEBomParentByMaterialNos(userJob, jobCode,materialNos);
|
||||
Map<String, BomNewEbomParentEntity> stringBomNewOriginalParentEntityMap = ListCommonUtil.listToMap(childBomlist, BomNewEbomParentEntity::getMaterialNo);
|
||||
for (BomNewEbomParentVO detailVO : bomDetail) {
|
||||
if (stringBomNewOriginalParentEntityMap.containsKey(detailVO.getMaterialNo())) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue