From 225c57690f7c8bfc969108b9934838663cde7c4c Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 19 九月 2023 09:45:43 +0800 Subject: [PATCH] 新增源数据菜单 --- server/service/src/main/java/com/doumee/service/impl/CateParamSelectServiceImpl.java | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/server/service/src/main/java/com/doumee/service/impl/CateParamSelectServiceImpl.java b/server/service/src/main/java/com/doumee/service/impl/CateParamSelectServiceImpl.java index ecca947..25c9e80 100644 --- a/server/service/src/main/java/com/doumee/service/impl/CateParamSelectServiceImpl.java +++ b/server/service/src/main/java/com/doumee/service/impl/CateParamSelectServiceImpl.java @@ -11,6 +11,8 @@ import com.doumee.dao.business.model.CateParamSelect; import com.doumee.service.CateParamSelectService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; @@ -24,6 +26,8 @@ @Service public class CateParamSelectServiceImpl implements CateParamSelectService { + @Autowired + private RedisTemplate redisTemplate; @Autowired private CateParamSelectMapper cateParamSelectMapper; @@ -142,4 +146,25 @@ QueryWrapper<CateParamSelect> wrapper = new QueryWrapper<>(cateParamSelect); return cateParamSelectMapper.selectCount(wrapper); } + + @Override + @Async + public void dealGroupVals(Integer companyId) { + Boolean isGrouping = (Boolean)redisTemplate.opsForValue().get(companyId+"_isGrouping"); + if(isGrouping!=null && isGrouping ){ + return; + } + redisTemplate.opsForValue().set(companyId+"_isGrouping",true); + try { + //---------TODO-------浠诲悍 + + }catch (Exception e){ + + }finally { + redisTemplate.opsForValue().set(companyId+"_isGrouping",false); + } + + + + } } -- Gitblit v1.9.3