소스 검색

Merge branch 'master' into test

李进 1 년 전
부모
커밋
e0478722a9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      device-api-service/src/main/java/com/xy/service/DeviceAlgorithmChargingServiceImpl.java

+ 1 - 1
device-api-service/src/main/java/com/xy/service/DeviceAlgorithmChargingServiceImpl.java

@@ -59,7 +59,7 @@ public class DeviceAlgorithmChargingServiceImpl extends ServiceImpl<DeviceAlgori
     public R<PageBean<DeviceAlgorithmChargingDto.Vo>> page(@RequestBody @Validated DeviceAlgorithmChargingDto.Page page) {
         LambdaQueryWrapper<DeviceAlgorithmCharging> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(page, DeviceAlgorithmCharging.class)
                 .build()
-                .orderByDesc(DeviceAlgorithmCharging::getTimeout);
+                .orderByDesc(DeviceAlgorithmCharging::getTimeout, DeviceAlgorithmCharging::getUnusedSize);
         IPage<DeviceAlgorithmCharging> iPage = page(PlusBeans.toIPage(page.getPage()), lambdaQueryWrapper);
         return R.ok(toPageBean(DeviceAlgorithmChargingDto.Vo.class, iPage));
     }