品类管理
parent
2d1dd6c0db
commit
fbeff57de8
|
|
@ -1,10 +1,12 @@
|
|||
package com.njzscloud.supervisory.goods.service;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.njzscloud.common.mp.support.PageParam;
|
||||
import com.njzscloud.common.mp.support.PageResult;
|
||||
import com.njzscloud.supervisory.biz.pojo.entity.BizDriverEntity;
|
||||
import com.njzscloud.supervisory.goods.mapper.GoodsCategoryMapper;
|
||||
import com.njzscloud.supervisory.goods.pojo.entity.GoodsCategoryEntity;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
|
@ -53,7 +55,9 @@ public class GoodsCategoryService extends ServiceImpl<GoodsCategoryMapper, Goods
|
|||
* 分页查询
|
||||
*/
|
||||
public PageResult<GoodsCategoryEntity> paging(PageParam pageParam, GoodsCategoryEntity goodsCategoryEntity) {
|
||||
return PageResult.of(this.page(pageParam.toPage(), Wrappers.<GoodsCategoryEntity>query(goodsCategoryEntity)));
|
||||
return PageResult.of(this.page(pageParam.toPage(), Wrappers.<GoodsCategoryEntity>lambdaQuery()
|
||||
.like(StrUtil.isNotBlank(goodsCategoryEntity.getCategoryName()), GoodsCategoryEntity::getCategoryName,
|
||||
goodsCategoryEntity.getCategoryName())));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.njzscloud.supervisory.goods.service;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
|
@ -53,7 +54,9 @@ public class GoodsInfoService extends ServiceImpl<GoodsInfoMapper, GoodsInfoEnti
|
|||
* 分页查询
|
||||
*/
|
||||
public PageResult<GoodsInfoEntity> paging(PageParam pageParam, GoodsInfoEntity goodsInfoEntity) {
|
||||
return PageResult.of(this.page(pageParam.toPage(), Wrappers.<GoodsInfoEntity>query(goodsInfoEntity)));
|
||||
return PageResult.of(this.page(pageParam.toPage(), Wrappers.<GoodsInfoEntity>lambdaQuery()
|
||||
.like(StrUtil.isNotBlank(goodsInfoEntity.getGoodsName()), GoodsInfoEntity::getGoodsName,
|
||||
goodsInfoEntity.getGoodsName())));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue