|
|
|
|
@ -29,6 +29,7 @@ public interface ErpProductMapper extends BaseMapperX<ErpProductDO> {
|
|
|
|
|
default PageResult<ErpProductDO> selectPage(ErpProductPageReqVO reqVO) {
|
|
|
|
|
return selectPage(reqVO, new LambdaQueryWrapperX<ErpProductDO>()
|
|
|
|
|
.likeIfPresent(ErpProductDO::getName, reqVO.getName())
|
|
|
|
|
.likeIfPresent(ErpProductDO::getBarCode, reqVO.getCode())
|
|
|
|
|
.eqIfPresent(ErpProductDO::getCategoryId, reqVO.getCategoryId())
|
|
|
|
|
.betweenIfPresent(ErpProductDO::getCreateTime, reqVO.getCreateTime())
|
|
|
|
|
.orderByDesc(ErpProductDO::getId));
|
|
|
|
|
|