官方参考文档路径:
http://doc.ruoyi.vip/ruoyi/document/htsc.html#%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90
1、建立数据sql表的结构
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| drop table if exists app_sjfx_aj; create table app_sjfx_aj ( app_sjfx_aj_id varchar(50) default '' comment '案件编码', app_sjfx_aj_state varchar(3) default 'yes' comment '案件状态', app_sjfx_aj_gpdm varchar(50) default null comment '未知', app_sjfx_aj_mc varchar(50) default '' comment '专案名称', app_sjfx_aj_chbh varchar(50) default '' comment '初核编号', app_sjfx_aj_ajbh varchar(50) default '' comment '立案编号', app_sjfx_aj_dw varchar(50) default '' comment '承办部门', app_sjfx_aj_ajlx varchar(50) default '' comment '案件类型(100=以人立案 200=以事立案)', app_sjfx_aj_config_sfz varchar(10) default '' comment '身份证校验方式(no=简易校验 yes=标准校验)', app_sjfx_aj_sm varchar(10) default '' comment '备注', app_sjfx_aj_log_id int(11) auto_increment comment '编号', app_sjfx_aj_log_rq datetime comment '创建日期', app_sjfx_aj_log_user varchar(50) default '' comment '创建用户', app_sjfx_aj_log_gpdm varchar(50) default '' comment '创建组织', primary key (app_sjfx_aj_log_id) ) engine=innodb auto_increment=1 comment = '案件信息表'
|
建立表结构,通过navicat执行sql语句:

执行之后会在数据库中读出一个表:app_sjfx_aj
2、创建字典
创建的表中有2个需要通过下拉菜单进行选择,所以需要创建字典。
操作步骤:
1、打开字典管理界面

2、填入相关的信息

3、进入字典数据,编辑相关选项:

3、添加菜单(根据需求操作)


4、代码生成
1、

2、

3、

4、编辑相关信息


5、生成代码

5、生成代码导入
1、生成代码的目录

2、在数据库中运行。sql文件

3.将文件main复制,通过IDEA导入程序

4、重新编译即可运行。