|
|
@ -7,6 +7,7 @@ import cn.hutool.core.util.RandomUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
@ -61,7 +62,7 @@ public class TemplateServiceImpl extends ServiceImpl<TemplateMapper, Template> i |
|
|
|
@Override |
|
|
|
public IPage<Template> query(Map param, PageQuery page) { |
|
|
|
QueryWrapper<Template> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.like(ObjectUtil.isNotEmpty(param.get("template_name")),"template_name",0) |
|
|
|
wrapper.like(ObjectUtil.isNotEmpty(param.get("template_name")),"template_name",param.get("template_name")) |
|
|
|
.eq(ObjectUtil.isNotEmpty(param.get("template_status")),"template_status",1) |
|
|
|
.orderByAsc("create_time"); |
|
|
|
Page<Template> templatePage = this.page(new Page<>(page.getPage() + 1, page.getSize()), wrapper); |
|
|
|