异常检测
This commit is contained in:
parent
34b9282301
commit
f796e098e5
|
|
@ -535,7 +535,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
List<BomNewEbomParentVO> bomDetail = this.getBaseMapper().getParentChild(rowId);
|
List<BomNewEbomParentVO> bomDetail = this.getBaseMapper().getParentChild(rowId);
|
||||||
// EBomDetailTask detailTask = new EBomDetailTask(bomDetail);
|
// EBomDetailTask detailTask = new EBomDetailTask(bomDetail);
|
||||||
|
|
||||||
EBomCheckErrorDetailTask detailTask=new EBomCheckErrorDetailTask(bomDetail);
|
EBomCheckErrorDetailTask detailTask=new EBomCheckErrorDetailTask(bomDetail,SessionUtil.getUserCode());
|
||||||
ForkJoinTask<List<BomNewEbomParentVO>> submit = bomDetailPool.submit(detailTask);
|
ForkJoinTask<List<BomNewEbomParentVO>> submit = bomDetailPool.submit(detailTask);
|
||||||
|
|
||||||
List<BomNewEbomParentVO> result = submit.join();
|
List<BomNewEbomParentVO> result = submit.join();
|
||||||
|
|
|
||||||
|
|
@ -35,12 +35,14 @@ public class EBomCheckErrorDetailTask extends RecursiveTask<List<BomNewEbomParen
|
||||||
|
|
||||||
List<BomNewEbomParentVO> result = new ArrayList<>();
|
List<BomNewEbomParentVO> result = new ArrayList<>();
|
||||||
|
|
||||||
|
private String jobCode;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public EBomCheckErrorDetailTask(List<BomNewEbomParentVO> inBomDetail) {
|
|
||||||
|
public EBomCheckErrorDetailTask(List<BomNewEbomParentVO> inBomDetail,String inJobCode) {
|
||||||
bomDetail = inBomDetail;
|
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();
|
// List<BomNewEbomParentEntity> childBomlist = SpringUtil.getBean(BomNewEbomParentService.class).lambdaQuery().in(BomNewEbomParentEntity::getMaterialNo, materialNos).eq(BomNewEbomParentEntity::getLastVersionIs, 1).list();
|
||||||
Integer userJob = SpringUtil.getBean(UserRoleService.class).getUserJob();
|
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);
|
Map<String, BomNewEbomParentEntity> stringBomNewOriginalParentEntityMap = ListCommonUtil.listToMap(childBomlist, BomNewEbomParentEntity::getMaterialNo);
|
||||||
for (BomNewEbomParentVO detailVO : bomDetail) {
|
for (BomNewEbomParentVO detailVO : bomDetail) {
|
||||||
if (stringBomNewOriginalParentEntityMap.containsKey(detailVO.getMaterialNo())) {
|
if (stringBomNewOriginalParentEntityMap.containsKey(detailVO.getMaterialNo())) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue