Explorar el Código

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

tags/24090101
WendyYang hace 2 meses
padre
commit
7fa49f36c7
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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 fichero

@@ -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);



Cargando…
Cancelar
Guardar