Browse Source

# 隐患排查项排序逻辑修改

zhongwei
haungxing 9 months ago
parent
commit
2868272820
  1. 1
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/risk/controller/RiskCheckController.java

1
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) @ApiOperationSupport(order = 1)
public R<IPage<RiskCheckVO>> page(RiskCheckDTO req, Query query) { public R<IPage<RiskCheckVO>> page(RiskCheckDTO req, Query query) {
LambdaQueryWrapper<RiskCheckEntity> queryWrapper = Condition.getQueryWrapper(RiskCheckEntity.class, BeanUtil.copy(req, RiskCheckEntity.class)); LambdaQueryWrapper<RiskCheckEntity> queryWrapper = Condition.getQueryWrapper(RiskCheckEntity.class, BeanUtil.copy(req, RiskCheckEntity.class));
queryWrapper.orderByDesc(RiskCheckEntity::getUpdateTime,RiskCheckEntity::getCreateTime);
IPage page = riskCheckService.page(Condition.getPage(query), queryWrapper); IPage page = riskCheckService.page(Condition.getPage(query), queryWrapper);
page.setRecords(RiskCheckWrapper.build().listVO(page.getRecords())); page.setRecords(RiskCheckWrapper.build().listVO(page.getRecords()));
return R.data(page); return R.data(page);

Loading…
Cancel
Save