车辆二维码模糊查询

This commit is contained in:
attiya 2025-12-17 11:54:09 +08:00
parent 1eca757696
commit 8e734f4d79

View File

@ -74,7 +74,7 @@ public class EbikeBikeQrController {
@GetMapping("page")
public JsonResult<?> page(PageParam pageParam, String bikeQrCode) {
QueryWrapper queryWrapper = QueryWrapper.create()
.where(EBIKE_BIKE_QR.BIKE_QR_CODE.eq(bikeQrCode, StringUtil.hasText(bikeQrCode)))
.where(EBIKE_BIKE_QR.BIKE_QR_CODE.like(bikeQrCode, StringUtil.hasText(bikeQrCode)))
.orderBy(EBIKE_BIKE_QR.CREATED_AT,Boolean.TRUE);
Page<EbikeBikeQr> page = ebikeBikeQrService.page(pageParam.getPage(), queryWrapper);
return JsonResult.success(page);