[1429] 모듈이 여러개 인경우 amp 높은순 #354
@ -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 조회
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user