| | |
| | | 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.web.util.Func; |
| | | import com.vci.web.util.PlatformClientUtil; |
| | | import org.slf4j.Logger; |
| | |
| | | |
| | | private int count = 0; |
| | | |
| | | /** |
| | | * 包含保存模块方法等操作类 |
| | | */ |
| | | private static FunctionOperateDelegate foDelegate; |
| | | |
| | | /** |
| | | * 初始化foDelegate |
| | | */ |
| | | { |
| | | if(Func.isEmpty(foDelegate)){ |
| | | foDelegate = new FunctionOperateDelegate(); |
| | | } |
| | | } |
| | | |
| | | @Autowired |
| | | private RedisService redisService; |
| | | |
| | | /** |
| | | * 当前登录的用户总数key |
| | | */ |
| | | private static final String CURRENT_LOGGED_USERS_KEY = "current_logged_users"; |
| | | |
| | | /** |
| | | * 日志 |
| | |
| | | return res; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 检查是否存在引用关系 |
| | | * @param ids |
| | |
| | | WriteExcelOption excelOption = new WriteExcelOption(excelDataList); |
| | | ExcelUtil.writeDataToFile(excelPath, excelOption); |
| | | return excelPath; |
| | | } |
| | | |
| | | /** |
| | | * 获取当前在线人数 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public long getOnlineUsersNum() { |
| | | long currentLoggedUserCount = redisService.getCurrentLoggedUserCount(CURRENT_LOGGED_USERS_KEY); |
| | | return currentLoggedUserCount; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |