Browse Source

fix 模板管理功能修改

master
周俊杰 4 months ago
parent
commit
043f25e9ac
  1. 3
      acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/impl/TemplateServiceImpl.java

3
acs/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/template/impl/TemplateServiceImpl.java

@ -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);

Loading…
Cancel
Save