|  |  | 
 |  |  | 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; | 
 |  |  |  | 
 |  |  | 
 |  |  | @Service | 
 |  |  | public class CateParamSelectServiceImpl implements CateParamSelectService { | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private RedisTemplate redisTemplate; | 
 |  |  |     @Autowired | 
 |  |  |     private CateParamSelectMapper cateParamSelectMapper; | 
 |  |  |  | 
 |  |  | 
 |  |  |         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); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  | } |