From d7e947f0868e75c1d5f6120b0c9c3abb19509837 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 27 Jun 2022 16:38:29 +0800 Subject: [PATCH] =?UTF-8?q?selectDeptList=20=E5=A2=9E=E5=8A=A0=E4=BA=8C?= =?UTF-8?q?=E7=BA=A7=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ResourceController.java | 3 ++- .../service/impl/ResourceServiceImpl.java | 26 ++++++++++++------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java index 2726f567..1441a477 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java @@ -23,6 +23,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; +import org.springframework.cache.annotation.CacheEvict; import org.springframework.context.annotation.Lazy; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; @@ -202,7 +203,7 @@ public class ResourceController { // 效验数据 logger.info("source:" + source); ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); - if ("f".equals(source)) { + if ("f" .equals(source)) { dto.setDelFlag(2); // 来自前端页面 走审批流程 } logger.info(dto.toString()); diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java index 55ba0b3e..dc4c2bc4 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/ResourceServiceImpl.java @@ -9,7 +9,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.IdWorker; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.google.common.collect.Lists; import io.renren.common.constant.Constant; import io.renren.common.domain.Tsingtao_xhaProperties; import io.renren.common.service.impl.CrudServiceImpl; @@ -33,12 +32,13 @@ import okhttp3.FormBody; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; -import org.bytedeco.opencv.presets.opencv_core; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; +import org.springframework.cache.annotation.CacheEvict; +import org.springframework.cache.annotation.CachePut; import org.springframework.context.annotation.Lazy; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Service; @@ -67,6 +67,8 @@ public class ResourceServiceImpl extends CrudServiceImpl idList = jsonArray.toJavaList(Long.class); @@ -192,6 +196,7 @@ public class ResourceServiceImpl extends CrudServiceImpl resultList = new ArrayList<>(); HashMap resourceMap = new HashMap<>(); @@ -541,7 +547,7 @@ public class ResourceServiceImpl extends CrudServiceImpl>> listMap = typeMapList.stream().collect(Collectors.groupingBy(m -> m.get("type").toString())); //区级要根据行政区划多加一层结构 - listMap.entrySet().stream().filter(index -> !"区级".equals(index.getKey())).forEach(item -> { + listMap.entrySet().stream().filter(index -> !"区级" .equals(index.getKey())).forEach(item -> { HashMap map = new HashMap<>(); map.put("type", item.getKey()); Integer integer = resourceDao.selectTypeCountByDept(item.getKey(), jsonObject.getString("type")); @@ -735,7 +741,7 @@ public class ResourceServiceImpl extends CrudServiceImpl> applicationAreaCapabilityList(Map params){ + public List> applicationAreaCapabilityList(Map params) { return resourceDao.applicationAreaCapabilityList(params); } @@ -866,7 +872,7 @@ public class ResourceServiceImpl extends CrudServiceImpl