| | |
| | | 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.starter.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; |
| | | |
| | | /** |
| | | * 日志 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取当前在线人数 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public long getOnlineUsersNum() { |
| | | long currentLoggedUserCount = redisService.getCurrentOnlineUserCount(VConstant.CURRENT_LOGGED_USERS_KEY); |
| | | return currentLoggedUserCount; |
| | | } |
| | | |
| | | /** |
| | | * 收集表单信息。 |
| | | * @param files |
| | | * @return |
| | |
| | | //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; |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |