字典管理
parent
476725452c
commit
0bdc1b1493
|
|
@ -2,6 +2,7 @@ package com.njzscloud.supervisory.sys.dict.service;
|
|||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.lang.Assert;
|
||||
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;
|
||||
|
|
@ -66,7 +67,8 @@ public class DictService extends ServiceImpl<DictMapper, DictEntity> implements
|
|||
* 分页查询
|
||||
*/
|
||||
public PageResult<DictEntity> paging(PageParam pageParam, DictEntity dictEntity) {
|
||||
return PageResult.of(this.page(pageParam.toPage(), Wrappers.<DictEntity>query(dictEntity)));
|
||||
return PageResult.of(this.page(pageParam.toPage(), Wrappers.<DictEntity>lambdaQuery()
|
||||
.like(StrUtil.isNotBlank(dictEntity.getDictName()), DictEntity::getDictName, dictEntity.getDictName())));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue