| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.business.dto.HistoryOverdueQueryDTO; |
| | | import com.by4cloud.platformx.business.entity.CurrentOverdue; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param historyOverdue 历史逾期 |
| | | * @param queryDTO 历史逾期 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | | @GetMapping("/page" ) |
| | | @PreAuthorize("@pms.hasPermission('business_historyOverdue_view')" ) |
| | | public R getHistoryOverduePage(@ParameterObject Page page, @ParameterObject HistoryOverdue historyOverdue) { |
| | | LambdaQueryWrapper<HistoryOverdue> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.like(StrUtil.isNotBlank(historyOverdue.getBusGuestName()),HistoryOverdue::getBusGuestName,historyOverdue.getBusGuestName()); |
| | | wrapper.like(StrUtil.isNotBlank(historyOverdue.getContractName()),HistoryOverdue::getContractName,historyOverdue.getContractName()); |
| | | wrapper.like(StrUtil.isNotBlank(historyOverdue.getScheduleName()), HistoryOverdue::getScheduleName,historyOverdue.getScheduleName()); |
| | | wrapper.orderByDesc(HistoryOverdue::getCreateTime); |
| | | return R.ok(historyOverdueService.pageByScope(page, wrapper)); |
| | | public R getHistoryOverduePage(@ParameterObject Page page, @ParameterObject HistoryOverdueQueryDTO queryDTO) { |
| | | // LambdaQueryWrapper<HistoryOverdue> wrapper = Wrappers.lambdaQuery(); |
| | | // wrapper.like(StrUtil.isNotBlank(historyOverdue.getBusGuestName()),HistoryOverdue::getBusGuestName,historyOverdue.getBusGuestName()); |
| | | // wrapper.like(StrUtil.isNotBlank(historyOverdue.getContractName()),HistoryOverdue::getContractName,historyOverdue.getContractName()); |
| | | // wrapper.like(StrUtil.isNotBlank(historyOverdue.getScheduleName()), HistoryOverdue::getScheduleName,historyOverdue.getScheduleName()); |
| | | // wrapper.orderByDesc(HistoryOverdue::getCreateTime); |
| | | return R.ok(historyOverdueService.pageScope(page, queryDTO)); |
| | | } |
| | | |
| | | |