|
|
|
@ -1,19 +1,16 @@
|
|
|
|
|
package com.foreverwin.mesnac.meapi.controller;
|
|
|
|
|
|
|
|
|
|
import com.foreverwin.mesnac.meapi.util.StringUtils;
|
|
|
|
|
import com.foreverwin.modular.core.util.R;
|
|
|
|
|
import com.foreverwin.modular.core.util.FrontPage;
|
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.model.Resrce;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.service.ResrceService;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.util.StringUtils;
|
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
|
import com.foreverwin.modular.core.util.FrontPage;
|
|
|
|
|
import com.foreverwin.modular.core.util.R;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import com.foreverwin.mesnac.meapi.service.ResrceService;
|
|
|
|
|
import com.foreverwin.mesnac.meapi.model.Resrce;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -98,9 +95,7 @@ public class ResrceController {
|
|
|
|
|
queryWrapper.setEntity(resrce);
|
|
|
|
|
if (frontPage.getGlobalQuery() != null && !"".equals(frontPage.getGlobalQuery().trim())) {
|
|
|
|
|
queryWrapper
|
|
|
|
|
.like(Resrce.HANDLE, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(Resrce.SITE, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(Resrce.RESRCE, frontPage.getGlobalQuery())
|
|
|
|
|
.like(Resrce.RESRCE, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(Resrce.DESCRIPTION, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(Resrce.STATUS_BO, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(Resrce.PROCESS_RESOURCE, frontPage.getGlobalQuery())
|
|
|
|
|