Ver código fonte

Merge remote-tracking branch 'origin/dev' into dev

tags/24090101
WendyYang 2 meses atrás
pai
commit
7fa49f36c7
1 arquivos alterados com 5 adições e 0 exclusões
  1. +5
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java

+ 5
- 0
hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java Ver arquivo

@@ -818,6 +818,11 @@ public class WorkbenchManage {
}

List<ProjectEarlyWarning> records = projectEarlyWarningService.list(queryWrapper);
if (Objects.nonNull(req.getUnitId())){
List<Long> viewUnitIds = mhUnitCache.getViewChildIdsRecursion(req.getUnitId());
List<String> queryMhUnitIdList = CollUtils.convert(viewUnitIds, String::valueOf);
records = records.stream().filter(record -> queryMhUnitIdList.contains(record.getBuildOrgCode())).collect(Collectors.toList());
}
if (CollUtil.isNotEmpty(records)) {
List<String> projectCodes = CollUtils.fieldList(records, ProjectEarlyWarning::getProjectCode);



Carregando…
Cancelar
Salvar