|
|
@@ -21,7 +21,7 @@ public class LotNoticeServiceImpl extends ServiceImpl<LotNoticeMapper, LotNotice
|
|
|
Page<LotNotice> lotNoticePage = new Page<>(lotNotice.getPageNum(), lotNotice.getPageSize());
|
|
|
LambdaQueryWrapper<LotNotice> lotNoticeLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
if (StringUtils.isNotEmpty(lotNotice.getTitle()))
|
|
|
- lotNoticeLambdaQueryWrapper.eq(LotNotice::getTitle,lotNotice.getTitle());
|
|
|
+ lotNoticeLambdaQueryWrapper.like(LotNotice::getTitle,"%"+lotNotice.getTitle()+"%");
|
|
|
lotNoticeLambdaQueryWrapper.orderByDesc(LotNotice::getId);
|
|
|
return getBaseMapper().selectList(lotNoticePage, lotNoticeLambdaQueryWrapper);
|
|
|
}
|
|
|
@@ -43,6 +43,6 @@ public class LotNoticeServiceImpl extends ServiceImpl<LotNoticeMapper, LotNotice
|
|
|
@Override
|
|
|
public Page<LotNoticeVO> selectLotNoticeByType(LotNotice lotNotice) {
|
|
|
Page<LotNoticeVO> lotNoticePage = new Page<>(lotNotice.getPageNum(), lotNotice.getPageSize());
|
|
|
- return getBaseMapper().selectNoticeByType(lotNoticePage,lotNotice);
|
|
|
+ return getBaseMapper().selectNoticeByType(lotNoticePage,lotNotice.getType());
|
|
|
}
|
|
|
}
|