[1429] 모듈이 여러개 인경우 amp 높은순

This commit is contained in:
ysCha 2026-01-29 14:22:12 +09:00
parent 0db45648d2
commit b2e8d2d9c6

View File

@ -159,9 +159,8 @@ public class PwrGnrSimService {
// 4. 계산을 위해 order by 변경 (총용량 DESC) -계산용 // 4. 계산을 위해 order by 변경 (총용량 DESC) -계산용
List<PwrGnrSimRoofResponse> moduleGroupList = List<PwrGnrSimRoofResponse> moduleGroupList =
roofGroupModuleList.stream() roofGroupModuleList.stream()
.sorted( // .sorted(Comparator.comparingDouble(PwrGnrSimRoofResponse::getTotSpecification).reversed()) // 내림차순 정렬
Comparator.comparingDouble(PwrGnrSimRoofResponse::getTotSpecification) .sorted(Comparator.comparingDouble(PwrGnrSimRoofResponse::getAmp)) //AMP 올림차순
.reversed()) // 내림차순 정렬
.collect(Collectors.toList()); .collect(Collectors.toList());
// 5. PCS Item 조회 // 5. PCS Item 조회