3.9K Star 18.5K Fork 5.3K

卓源软件 / JeeSite 4.x and 5.x

 / 详情

数据权限的多数据源问题

已完成
创建于  
2019-09-09 11:30

该问题是怎么引起的?

业务表和系统表分为两个数据源,在对数据权限进行控制时,导致需要对系统表进行查询的数据源没切换过去,请问这个怎么解决

重现步骤

报错信息

Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'kuaidian-tv-cms-data.js_sys_user_data_scope' doesn't exist

The error may exist in com/jeesite/modules/program/dao/ProgramDao.java (best guess)

The error may involve com.jeesite.modules.program.dao.ProgramDao.findList-Inline

The error occurred while setting parameters

Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'kuaidian-tv-cms-data.js_sys_user_data_scope' doesn't exist

; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'kuaidian-tv-cms-data.js_sys_user_data_scope' doesn't exist] with root cause

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'kuaidian-tv-cms-data.js_sys_user_data_scope' doesn't exist

评论 (1)

丁军杰 创建了任务
public void addDataScopeFilter(Program program){
	program.getSqlMap().getDataScope().addFilter("dsf", "Company",
			"a.company_code", DataScope.CTRL_PERMI_HAVE);
}
丁军杰 任务状态待办的 修改为进行中
丁军杰 任务状态进行中 修改为待办的
丁军杰 任务状态待办的 修改为进行中
丁军杰 任务状态进行中 修改为待办的
卓源软件 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Java
1
https://gitee.com/thinkgem/jeesite5.git
git@gitee.com:thinkgem/jeesite5.git
thinkgem
jeesite5
JeeSite 4.x and 5.x

搜索帮助