| | |
| | | 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"; |
| | | |
| | | /** |
| | | * 日志 |
| | |
| | | res = foDelegate.updateMod(menuVO); |
| | | /** |
| | | * 返回:1表示模块名重复。 |
| | | * 2表示模块标识重复。 |
| | | * 3标示模块别名重复。 |
| | | * 2表示模块标识重复。 |
| | | * 3标示模块别名重复。 |
| | | */ |
| | | if(res.equals("1")){ |
| | | throw new VciBaseException("模块名称重复,请修改!"); |
| | |
| | | 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.desc = object.getRemark() == null ? "" : object.getRemark(); |
| | | info.seq = object.getSort(); |
| | | info.image = object.getSource() == null ? "" : object.getSource(); |
| | | info.functionType = object.getFunctionType(); |
| | | info.isValid = object.getIsValid(); |
| | | info.aliasName = object.getAlias() == null ? "" : object.getAlias(); |
| | | info.resourceDotNet = object.getResourceDotNet() == null ? "" : object.getResourceDotNet(); |
| | |
| | | obj.suffixB = "";*/ |
| | | obj.seq = sequence; |
| | | obj.image = menuVO.getSource(); |
| | | obj.isValid = Func.isNotEmpty(menuVO.getValid()) ? menuVO.getValid():false; |
| | | obj.functionType = menuVO.getFunctionType(); |
| | | obj.isValid = Func.isNotEmpty(menuVO.getIsValid()) ? menuVO.getIsValid():false; |
| | | obj.aliasName = aliasName; |
| | | obj.resourceDotNet = resDotNet; |
| | | obj.resourceMobile = resMobile; |