//package com.bonus.canteen.core.report.datascreen.service.impl;
//
//import cn.hutool.core.text.CharSequenceUtil;
//import com.bonus.canteen.core.report.datascreen.service.DatascreenBussService;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Lazy;
//import org.springframework.data.redis.core.RedisTemplate;
//import org.springframework.stereotype.Service;
//
//@Service
//public class DatascreenBussServiceImpl implements DatascreenBussService {
//   private static final Logger log = LoggerFactory.getLogger(DatascreenBussServiceImpl.class);
//   @Autowired
//   @Lazy
//   private RedisTemplate<Object, Object> redisTemplate;
//
//   public void pushToRedisUserAuthority(String redisName, Object content, Long merchantId, String authorityId) {
//      StringBuilder sbu = new StringBuilder("yst:");
//      if (CharSequenceUtil.isBlank(authorityId)) {
//         sbu.append(merchantId).append(":").append("datascreen:").append("user:").append(redisName);
//      } else {
//         sbu.append(merchantId).append(":").append("datascreen:").append("user:").append(authorityId).append(":").append(redisName);
//      }
//
//      this.redisTemplate.opsForValue().set(sbu.toString(), content);
//   }
//}
