fix: 塘口、设备按创建时间进行正序排列。

This commit is contained in:
tianyongbao
2026-04-05 13:28:47 +08:00
parent 98f91eb9de
commit 2aec012fc2

View File

@@ -217,7 +217,7 @@ public class PondController extends BaseController {
new LambdaQueryWrapper<Device>() new LambdaQueryWrapper<Device>()
.eq(Device::getPondId, pondId) .eq(Device::getPondId, pondId)
.orderByAsc(Device::getDeviceType) .orderByAsc(Device::getDeviceType)
.orderByDesc(Device::getCreateTime) .orderByAsc(Device::getCreateTime)
); );
// 3. 查询塘口下的所有开关switch.pondId == pondId包含开关未挂塘口的控制器也能被找到 // 3. 查询塘口下的所有开关switch.pondId == pondId包含开关未挂塘口的控制器也能被找到
@@ -719,7 +719,7 @@ public class PondController extends BaseController {
List<Pond> ponds = pondMapper.selectList( List<Pond> ponds = pondMapper.selectList(
new LambdaQueryWrapper<Pond>() new LambdaQueryWrapper<Pond>()
.eq(Pond::getUserId, rootUserId) .eq(Pond::getUserId, rootUserId)
.orderByDesc(Pond::getCreateTime) .orderByAsc(Pond::getCreateTime)
); );
List<PublicPondMode1Vo> listData = new ArrayList<>(); List<PublicPondMode1Vo> listData = new ArrayList<>();
@@ -946,7 +946,7 @@ public class PondController extends BaseController {
new LambdaQueryWrapper<Pond>() new LambdaQueryWrapper<Pond>()
.eq(Pond::getUserId, rootUserId) .eq(Pond::getUserId, rootUserId)
.select(Pond::getId, Pond::getPondName) .select(Pond::getId, Pond::getPondName)
.orderByDesc(Pond::getCreateTime) .orderByAsc(Pond::getCreateTime)
); );
// 转换为VO列表 // 转换为VO列表