|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.air.applets.controller; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.air.land.entity.AuctionRecord; |
|
|
|
|
import com.air.land.service.AuctionRecordService; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
@ -40,13 +41,11 @@ public class AuctionRecordController {
|
|
|
|
|
*/ |
|
|
|
|
@ApiOperation(value = "查询参拍记录列表", notes = "查询参拍记录列表") |
|
|
|
|
@GetMapping("/list") |
|
|
|
|
public R<IPage<AuctionRecord>> getAuctionRecordPage(QueryPage page, @RequestParam(required = false) String landListedId) { |
|
|
|
|
LambdaQueryWrapper<AuctionRecord> lambda = Wrappers.<AuctionRecord>query().lambda(); |
|
|
|
|
if (landListedId != null) { |
|
|
|
|
lambda.eq(AuctionRecord::getLandListedId, landListedId); |
|
|
|
|
} |
|
|
|
|
IPage<AuctionRecord> recordPage = auctionRecordService.page(page.toPage(), |
|
|
|
|
lambda.orderByDesc(AuctionRecord::getUpdateDate)); |
|
|
|
|
public R<IPage<AuctionRecord>> getAuctionRecordPage(QueryPage page, String landListedId) { |
|
|
|
|
LambdaQueryWrapper<AuctionRecord> query = Wrappers.<AuctionRecord>query().lambda() |
|
|
|
|
.eq(StrUtil.isNotEmpty(landListedId), AuctionRecord::getLandListedId, landListedId) |
|
|
|
|
.orderByDesc(AuctionRecord::getUpdateDate); |
|
|
|
|
IPage<AuctionRecord> recordPage = auctionRecordService.page(page.toPage(), query); |
|
|
|
|
return R.ok(recordPage, "查询成功"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|