Browse Source

fix: 应急预案文件按创建时间倒序排列

zhongwei
liwen 8 months ago
parent
commit
6c26e704cb
  1. 2
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanServiceImpl.java

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/EmergencyPlanServiceImpl.java

@ -51,7 +51,7 @@ public class EmergencyPlanServiceImpl extends BaseServiceImpl<EmergencyPlanMappe
like("file_name", req.getFileName()); like("file_name", req.getFileName());
} }
}}; }};
queryWrapper.orderByDesc("create_time");
IPage pages = super.page(Condition.getPage(query), queryWrapper); IPage pages = super.page(Condition.getPage(query), queryWrapper);
List list = EmergencyPlanWrapper.build().listVO(pages.getRecords()); List list = EmergencyPlanWrapper.build().listVO(pages.getRecords());
return R.data(pages.setRecords(list)); return R.data(pages.setRecords(list));

Loading…
Cancel
Save