| | |
| | | import com.vci.starter.poi.bo.WriteExcelData; |
| | | import com.vci.starter.poi.bo.WriteExcelOption; |
| | | import com.vci.starter.poi.util.ExcelUtil; |
| | | import com.vci.starter.web.constant.VConstant; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | import com.vci.starter.web.pagemodel.SessionInfo; |
| | | import com.vci.starter.web.util.LocalFileUtil; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.starter.web.util.WebThreadLocalUtil; |
| | | import com.vci.web.redis.RedisService; |
| | | import com.vci.starter.web.redis.RedisService; |
| | | import com.vci.web.util.Func; |
| | | import com.vci.web.util.PlatformClientUtil; |
| | | import org.slf4j.Logger; |
| | |
| | | |
| | | @Autowired |
| | | private RedisService redisService; |
| | | |
| | | /** |
| | | * 当前登录的用户总数key |
| | | */ |
| | | private static final String CURRENT_LOGGED_USERS_KEY = "current_logged_users"; |
| | | |
| | | /** |
| | | * 日志 |
| | |
| | | return res; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 检查是否存在引用关系 |
| | | * @param ids |
| | |
| | | */ |
| | | @Override |
| | | public long getOnlineUsersNum() { |
| | | long currentLoggedUserCount = redisService.getCurrentLoggedUserCount(CURRENT_LOGGED_USERS_KEY); |
| | | long currentLoggedUserCount = redisService.getCurrentOnlineUserCount(VConstant.CURRENT_LOGGED_USERS_KEY); |
| | | return currentLoggedUserCount; |
| | | } |
| | | |
| | |
| | | //info.suffixB = object.getSuffixB() == null ? "" : object.getSuffixB(); |
| | | info.desc = object.getRemark() == null ? "" : object.getRemark(); |
| | | info.seq = object.getSort(); |
| | | info.image = object.getSource() == null ? "" : object.getSource(); |
| | | info.icon = object.getSource() == null ? "" : object.getSource(); |
| | | info.isValid = object.getIsValid(); |
| | | info.aliasName = object.getAlias() == null ? "" : object.getAlias(); |
| | | info.resourceDotNet = object.getResourceDotNet() == null ? "" : object.getResourceDotNet(); |
| | |
| | | /*obj.suffixC = ""; |
| | | obj.suffixB = "";*/ |
| | | obj.seq = sequence; |
| | | obj.image = menuVO.getSource(); |
| | | obj.isValid = Func.isNotEmpty(menuVO.getValid()) ? menuVO.getValid():false; |
| | | obj.icon = menuVO.getSource(); |
| | | obj.isValid = Func.isNotEmpty(menuVO.getIsValid()) ? menuVO.getIsValid():false; |
| | | obj.aliasName = aliasName; |
| | | obj.resourceDotNet = resDotNet; |
| | | obj.resourceMobile = resMobile; |