| | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cache.annotation.CachePut; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static com.vci.web.constant.CacheNameConstant.VCI_SESSION; |
| | | |
| | | /** |
| | | * 会话存储的服务 |
| | |
| | | * @return 用户会话对象 |
| | | */ |
| | | @Override |
| | | @Cacheable(value = VCI_SESSION,key = "#p0",unless = "#target == null") |
| | | public SessionInfo getSessionInfoByToken(String userToken) { |
| | | WebUtil.alertNotNull(userToken,"许可的信息"); |
| | | List<Map> dataList = boService.queryBySqlForMap("select JSONSTRING as JSONSTRING from VCI_SESSIONINFO where TOKEN ='" + userToken.trim() + "'", new HashMap<>()); |