diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysPropertynumController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysPropertynumController.java index 427d0be..0e7a457 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysPropertynumController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/SysPropertynumController.java @@ -85,7 +85,9 @@ public class SysPropertynumController extends BaseController { public String printEment(@PathVariable("useId") String useId, ModelMap mmap) { TdPropertyManager tdPropertyManager = tdPropertyManagerService.selectTdPropertyManagerByUseId(useId); List tdPropertyEments = tdPropertyEmentService.lambdaQuery() - .eq(TdPropertyEment::getUseId, useId).list(); + .eq(TdPropertyEment::getUseId, useId) + .orderByDesc(TdPropertyEment::getCreateTime) + .list(); mmap.put("tdPropertyEments", tdPropertyEments); mmap.put("tdPropertyManager", tdPropertyManager); mmap.put("sysuser", getSysUser());