关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 8505|回复: 1

[系统权限] 系统管理-二级管理员模块代码中SQL语法不兼容ORACLE

[复制链接]
发表于 2018-6-14 09:50:40 | 显示全部楼层 |阅读模式
1、具体界面如下图:
TIM截图20180614094331.png

2、代码如:
//超级用户可查看全部
                        if(userName.equals("admin")) {
                                sql = "select * from t_s_depart_auth_group fg LIMIT 0,50";//这是Mysql写法
                                departAuthGroupList = this.systemService.findForJdbc(sql);
                                String chkSql = "select dag.* from t_s_depart_auth_group as dag join t_s_depart_authg_manager as dam on dam.group_id=dag.id where user_id = ?"; //这是Mysql写法
                                chkDepartAuthGroupList = this.systemService.findForJdbc(chkSql,userName);
                                recursiveGroup(dataList, departAuthGroupList,chkDepartAuthGroupList,"0");
                        } else {
                                sql = "select dag.* from t_s_depart_auth_group as dag join t_s_depart_authg_manager as dam on dam.group_id=dag.id where user_id = ? LIMIT 0,50";
                                departAuthGroupList = this.systemService.findForJdbc(sql,userName);
                                String chkSql = "select dag.* from t_s_depart_auth_group as dag join t_s_depart_authg_manager as dam on dam.group_id=dag.id where user_id = ?";
                                chkDepartAuthGroupList = this.systemService.findForJdbc(chkSql,userName);
                                recursiveGroup(dataList, departAuthGroupList,chkDepartAuthGroupList,"0");
                        }


3、T_S_DEPART_AUTH_GROUP 表中的LEVEL(级别)字段,在ORACLE是关键字。在代码departAuthGroup = systemService.getEntity(TSDepartAuthGroupEntity.class, id); 会报ORA-01747: user.table.column, table.column 或列说明无效
希望JEECG团队有望改进,谢谢!


发表于 2018-6-14 10:01:18 | 显示全部楼层
好的,我们确认下,感谢
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表