diff --git a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/controller/RiskCheckController.java b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/controller/RiskCheckController.java index 17ae357..ca2541f 100644 --- a/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/controller/RiskCheckController.java +++ b/hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/controller/RiskCheckController.java @@ -48,6 +48,7 @@ public class RiskCheckController extends BladeController { @ApiOperationSupport(order = 1) public R> page(RiskCheckDTO req, Query query) { LambdaQueryWrapper queryWrapper = Condition.getQueryWrapper(RiskCheckEntity.class, BeanUtil.copy(req, RiskCheckEntity.class)); + queryWrapper.orderByDesc(RiskCheckEntity::getUpdateTime,RiskCheckEntity::getCreateTime); IPage page = riskCheckService.page(Condition.getPage(query), queryWrapper); page.setRecords(RiskCheckWrapper.build().listVO(page.getRecords())); return R.data(page);