# RuoYi-fast-Oracle **Repository Path**: jiangrf1986/RuoYi-fast-Oracle ## Basic Information - **Project Name**: RuoYi-fast-Oracle - **Description**: 若依 Maven 单模块 Oracle 版本 - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: https://gitee.com/baha/RuoYi-fast-Oracle - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 36 - **Created**: 2019-11-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## RuoYi-fast-Oracle #### 若依 Maven 单模块 Oracle 版本 基于 [RuoYi-fast MySQL](https://gitee.com/y_project/RuoYi-fast) ,参考 [RuoYi-Oracle](https://gitee.com/racsu/RuoYi-Oracle) > 若依多模块 MySQL 版本 [RuoYi](https://gitee.com/y_project/RuoYi) 若依单模块 MySQL 版本 [RuoYi-fast MySQL](https://gitee.com/y_project/RuoYi-fast) 若依多模块 Oracle 版本 [RuoYi-Oracle](https://gitee.com/racsu/RuoYi-Oracle) 如需其他版本,请移步 [项目扩展](http://doc.ruoyi.vip/ruoyi/document/xmkz.html) `(不定时更新)` #### 在线体验 > admin/admin123 **演示地址**:http://ruoyi.vip **文档地址**:http://doc.ruoyi.vip **语雀地址**:https://www.yuque.com/ry **Issues地址**:https://gitee.com/y_project/RuoYi/issues?state=closed **Issues地址**:https://gitee.com/racsu/RuoYi-Oracle/issues?state=closed #### 遇到问题处理方式: 第一步,看文档 QQ群里面用户提出的大部分问题,都是可以看文档来解决的。 遇到问题先看文档 http://doc.ruoyi.vip 第二步,去QQ群讨论 如果看了文档还是没有解决问题,或者还存在其他疑问,可以去QQ群把问题发出来讨论。注意,此时群主不一定及时看到并回复。 第三步,看看已经关闭的问题 可以去issues看看已经关闭的问题中, 是否有你现在正遇到的问题。 https://gitee.com/y_project/RuoYi/issues?state=closed 第四步,向作者提问 如果经历了以上步骤还是有问题,可以向作者提问。 打开链接https://gitee.com/y_project/RuoYi/issues, 新建issues说明问题。并复制issues地址到付费群。 按照优先顺序解决,如长时间未处理 可以在付费群@作者。 最后再说两句: 第一:到了第四步,所有的问题都会有回复。请不要在私聊群主了(尤其是在非工作时间并且以上步骤一个都没有执行的情况下。经常半夜三更有小伙伴私聊,只要给过回复还会不断提问 不胜其扰 请大家理解)。 第二:本群只是优先解答问题(不提供远程协助以及帮助写代码或示例) 第三:管理员或其他群友都是义务帮助大家解决问题,请对他们好一点。 [若依视频教程](http://doc.ruoyi.vip/ruoyi/document/spjc.html) #### 交流及反馈 `bug`及其它问题请提`Issues`或者进群讨论 该问题是怎么引起的? 重现步骤 报错信息 相关的Issue 原因/目的/解决的问题等 描述(做了什么,变更了什么) 测试用例 > Issues 地址 https://gitee.com/y_project/RuoYi/issues https://gitee.com/racsu/RuoYi-Oracle/issues https://gitee.com/baha/RuoYi-fast-Oracle/issues #### 若依交流群 若依 QQ 群: QQ群: [![加入QQ群](https://img.shields.io/badge/已满-1389287-blue.svg)](https://jq.qq.com/?_wv=1027&k=5HBAaYN) [![加入QQ群](https://img.shields.io/badge/已满-1679294-blue.svg)](https://jq.qq.com/?_wv=1027&k=5cHeRVW) [![加入QQ群](https://img.shields.io/badge/已满-1529866-blue.svg)](https://jq.qq.com/?_wv=1027&k=53R0L5Z) [![加入QQ群](https://img.shields.io/badge/已满-1772718-blue.svg)](https://jq.qq.com/?_wv=1027&k=5g75dCU) [![加入QQ群](https://img.shields.io/badge/已满-1366522-blue.svg)](https://jq.qq.com/?_wv=1027&k=58cPoHA) [![加入QQ群](https://img.shields.io/badge/已满-1382251-blue.svg)](https://jq.qq.com/?_wv=1027&k=5Ofd4Pb) [![加入QQ群](https://img.shields.io/badge/已满-1145125-blue.svg)](https://jq.qq.com/?_wv=1027&k=5yugASz) [![加入QQ群](https://img.shields.io/badge/86752435-blue.svg)](https://jq.qq.com/?_wv=1027&k=5Rf3d2P) 点击按钮入群。 若依 Oracle 版本交流群: [![oracle版本交流群](https://img.shields.io/badge/22271299-blue.svg)](https://shang.qq.com/wpa/qunwpa?idkey=e1ea16365440a9fa97ff72b0c73803e49a55dc68ae4c4181f3fb1da74928885e) 点击按钮入群。 **_改动内容_** > application.yml # PageHelper分页插件 pagehelper: helperDialect: oracle > application-druid.yml driverClassName: oracle.jdbc.OracleDriver url: jdbc:oracle:thin:@127.0.0.1:1521/orcl username: ry password: ry > pom.xml 10.2.0.4.0 com.oracle ojdbc14 ${oracle.version} jeecg jeecg Repository http://maven.jeewx.com/nexus/content/repositories/jeecg false > gen 模块 参考 ruoyi-oracle,添加序列 #if($pkColumn.increment) -- ${tableName}主键序列 create sequence seq_${tableName} increment by 1 start with 10 nomaxvalue nominvalue cache 20; #end GenTable /** 菜单id **/ private Long menuId; GenTableServiceImpl generatorCode() // 获取菜单id序列,用于生成菜单sql语句 long menuId = genTableMapper.selectMenuId(); table.setMenuId(menuId); 参考 RuoYi-Oracle,修改为 Oracle 可用的格式,调整路径相关 > sql 文件和 xml 文件 参考 RuoYi-Oracle,修改为 Oracle 可用的格式 修改表 sys_oper_log 的 oper_param 和 json_result 为 varchar2(4000) `ry_yyyymmdd(更新日期).sql`,此文件中的 function find_in_set,请在 sql 窗口单独执行 > User.java 和 Menu.java return StringUtils.isEmpty(avatar) ? StringUtils.EMPTY : avatar; return StringUtils.isEmpty(perms) ? StringUtils.EMPTY : perms; 处理数据库对应的列默认值 NULL User Image > ScheduleConfig.java prop.put("org.quartz.jobStore.txIsolationLevelSerializable", "false"); > 代码生成测试用 Oracle 数据,请参考 [若依文档-代码生成](http://doc.ruoyi.vip/ruoyi/document/htsc.html#%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90) (表对应的序列 seq_tableName,在生成的 Xxx.sql 文件中有生成) 新建数据库表结构(单表-Oracle) create table sys_student ( student_id number(11), student_name varchar2(30) default '', student_age number(3) default null, student_sex varchar2(1) default '0', student_status varchar2(1) default '0', student_birthday date, remark varchar2(500) default null ); alter table sys_student add constraint pk_sys_student primary key (student_id); comment on table sys_student is '学生名称'; comment on column sys_student.student_id is '学生主键seq_sys_student.nextval'; comment on column sys_student.student_name is '学生名称'; comment on column sys_student.student_age is '年龄'; comment on column sys_student.student_sex is '性别(0男 1女 2未知)'; comment on column sys_student.student_status is '状态(0正常 1停用)'; comment on column sys_student.student_birthday is '生日'; comment on column sys_student.remark is '备注'; 新建数据库表结构(树表-Oracle) create table sys_product ( product_id number(20) not null, parent_id number(20) default 0, product_name varchar2(30) default '', order_num number(4) default 0, status varchar2(1) default '0' ); alter table sys_product add constraint pk_sys_product primary key (product_id); comment on table sys_product is '产品表'; comment on column sys_product.product_id is '产品id主键seq_sys_product.nextval'; comment on column sys_product.parent_id is '父产品id'; comment on column sys_product.product_name is '产品名称'; comment on column sys_product.order_num is '显示顺序'; comment on column sys_product.status is '产品状态(0正常 1停用)'; > 杂项 添加 PermissionUtils.getPrincipalProperty(property)