更新代码
This commit is contained in:
@ -37,7 +37,8 @@ public class BizBidSharedServiceImpl extends BaseServiceImpl<BizBidSharedMapper,
|
|||||||
public IPage<BizBidShared> getList(BizBidSharedVO bizBidNotice) {
|
public IPage<BizBidShared> getList(BizBidSharedVO bizBidNotice) {
|
||||||
LambdaQueryWrapper<BizBidShared> wrapper = Wrappers.lambdaQuery();
|
LambdaQueryWrapper<BizBidShared> wrapper = Wrappers.lambdaQuery();
|
||||||
wrapper.like(StrUtil.isNotEmpty(bizBidNotice.getSharedName()), BizBidShared::getSharedName, bizBidNotice.getSharedName())
|
wrapper.like(StrUtil.isNotEmpty(bizBidNotice.getSharedName()), BizBidShared::getSharedName, bizBidNotice.getSharedName())
|
||||||
.like(StrUtil.isNotEmpty(bizBidNotice.getSharedRole()), BizBidShared::getSharedRole, bizBidNotice.getSharedRole());
|
.like(StrUtil.isNotEmpty(bizBidNotice.getSharedRole()), BizBidShared::getSharedRole, bizBidNotice.getSharedRole())
|
||||||
|
.orderByDesc(BizBidShared::getCreateDate);
|
||||||
|
|
||||||
Page<BizBidShared> page = this.page(new Page<>(bizBidNotice.getPageNo(), bizBidNotice.getPageSize()), wrapper);
|
Page<BizBidShared> page = this.page(new Page<>(bizBidNotice.getPageNo(), bizBidNotice.getPageSize()), wrapper);
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ package com.chinaunicom.mall.ebtp.extend.bizbidsharedrecord.service.impl;
|
|||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
||||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl;
|
import com.chinaunicom.mall.ebtp.common.base.service.impl.BaseServiceImpl;
|
||||||
@ -34,7 +33,8 @@ public class BizBidSharedRecordServiceImpl extends BaseServiceImpl<BizBidSharedR
|
|||||||
.like(StrUtil.isNotEmpty(recordVO.getRecordRole()), BizBidSharedRecord::getRecordRole, recordVO.getRecordRole())
|
.like(StrUtil.isNotEmpty(recordVO.getRecordRole()), BizBidSharedRecord::getRecordRole, recordVO.getRecordRole())
|
||||||
.eq(StrUtil.isNotEmpty(recordVO.getRecordName()), BizBidSharedRecord::getRecordName, recordVO.getRecordName())
|
.eq(StrUtil.isNotEmpty(recordVO.getRecordName()), BizBidSharedRecord::getRecordName, recordVO.getRecordName())
|
||||||
.eq(StrUtil.isNotEmpty(recordVO.getRecordStaff()), BizBidSharedRecord::getRecordStaff, recordVO.getRecordStaff())
|
.eq(StrUtil.isNotEmpty(recordVO.getRecordStaff()), BizBidSharedRecord::getRecordStaff, recordVO.getRecordStaff())
|
||||||
.eq(StrUtil.isNotEmpty(recordVO.getRecordAccount()), BizBidSharedRecord::getRecordAccount, recordVO.getRecordAccount());
|
.eq(StrUtil.isNotEmpty(recordVO.getRecordAccount()), BizBidSharedRecord::getRecordAccount, recordVO.getRecordAccount())
|
||||||
|
.orderByDesc(BizBidSharedRecord::getCreateDate);
|
||||||
|
|
||||||
return this.page(new Page<>(recordVO.getPageNo(), recordVO.getPageSize()), wrapper);
|
return this.page(new Page<>(recordVO.getPageNo(), recordVO.getPageSize()), wrapper);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user