访客&&大屏
This commit is contained in:
@@ -26,4 +26,13 @@ public class RemoteConfigServiceImpl implements RemoteConfigService {
|
||||
return configService.selectRegisterEnabled(tenantId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取访客机二维码有效期
|
||||
*/
|
||||
@Override
|
||||
public String selectQrTimeOut() {
|
||||
return configService.selectConfigByKey("sys.fkqr.timeout");
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@ import org.dromara.system.api.model.PostDTO;
|
||||
import org.dromara.system.api.model.RoleDTO;
|
||||
import org.dromara.system.api.model.XcxLoginUser;
|
||||
import org.dromara.system.domain.*;
|
||||
import org.dromara.system.domain.bo.SysDeptBo;
|
||||
import org.dromara.system.domain.bo.SysUserBo;
|
||||
import org.dromara.system.domain.vo.SysDeptVo;
|
||||
import org.dromara.system.domain.vo.SysPostVo;
|
||||
@@ -478,4 +479,16 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
||||
.collect(Collectors.toMap(SysPost::getPostId, SysPost::getPostName));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Integer> seelectOrgcount() {
|
||||
List<SysDeptVo> sysDeptVos = deptService.selectDeptList(new SysDeptBo());
|
||||
HashMap<String , Integer> hashMap = new HashMap<>();
|
||||
for (SysDeptVo sysDeptVo : sysDeptVos) {
|
||||
Long l = userMapper.selectCount(new LambdaQueryWrapper<SysUser>().eq(SysUser::getDeptId, sysDeptVo.getDeptId()));
|
||||
hashMap.put(sysDeptVo.getDeptName(), l.intValue());
|
||||
}
|
||||
return hashMap;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user