瀏覽代碼

大气列表倒序排序

tags/V1.0.1
chengwang 1 年之前
父節點
當前提交
9b086afc1f
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/query/QueryAirDataListService.java

+ 2
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/airData/query/QueryAirDataListService.java 查看文件

@@ -61,7 +61,8 @@ public class QueryAirDataListService {
public JsonResult list(String id) {
List<AirData> airDataList = airDataMapper.selectList(Wrappers.<AirData>lambdaQuery()
.eq(AirData::getMark, MarkEnum.VALID.getCode())
.eq(AirData::getInspectionId, id));
.eq(AirData::getInspectionId, id)
.orderByDesc(AirData::getCreateTime));

return JsonResult.success(airDataList);
}

Loading…
取消
儲存