对postgresql做兼容性修改
This commit is contained in:
parent
3252498510
commit
6783b57026
@ -141,7 +141,7 @@
|
|||||||
<if test="orderNum != null">order_num = #{orderNum},</if>
|
<if test="orderNum != null">order_num = #{orderNum},</if>
|
||||||
<if test="path != null and path != ''">path = #{path},</if>
|
<if test="path != null and path != ''">path = #{path},</if>
|
||||||
<if test="component != null">component = #{component},</if>
|
<if test="component != null">component = #{component},</if>
|
||||||
<if test="query != null">sys_menu.query = #{query},</if>
|
<if test="query != null">query = #{query},</if>
|
||||||
<if test="routeName != null">route_name = #{routeName},</if>
|
<if test="routeName != null">route_name = #{routeName},</if>
|
||||||
<if test="isFrame != null and isFrame != ''">is_frame = #{isFrame},</if>
|
<if test="isFrame != null and isFrame != ''">is_frame = #{isFrame},</if>
|
||||||
<if test="isCache != null and isCache != ''">is_cache = #{isCache},</if>
|
<if test="isCache != null and isCache != ''">is_cache = #{isCache},</if>
|
||||||
@ -165,7 +165,7 @@
|
|||||||
<if test="orderNum != null">order_num,</if>
|
<if test="orderNum != null">order_num,</if>
|
||||||
<if test="path != null and path != ''">path,</if>
|
<if test="path != null and path != ''">path,</if>
|
||||||
<if test="component != null and component != ''">component,</if>
|
<if test="component != null and component != ''">component,</if>
|
||||||
<if test="query != null and query != ''">sys_menu.query,</if>
|
<if test="query != null and query != ''">query,</if>
|
||||||
<if test="routeName != null">route_name,</if>
|
<if test="routeName != null">route_name,</if>
|
||||||
<if test="isFrame != null and isFrame != ''">is_frame,</if>
|
<if test="isFrame != null and isFrame != ''">is_frame,</if>
|
||||||
<if test="isCache != null and isCache != ''">is_cache,</if>
|
<if test="isCache != null and isCache != ''">is_cache,</if>
|
||||||
|
@ -224,8 +224,8 @@ create table sys_menu (
|
|||||||
component varchar(255) default null,
|
component varchar(255) default null,
|
||||||
query varchar(255) default null,
|
query varchar(255) default null,
|
||||||
route_name varchar(50) default '',
|
route_name varchar(50) default '',
|
||||||
is_frame smallint default 1,
|
is_frame char(1) default '1',
|
||||||
is_cache smallint default 0,
|
is_cache char(1) default '0',
|
||||||
menu_type char(1) default '',
|
menu_type char(1) default '',
|
||||||
visible char(1) default '0',
|
visible char(1) default '0',
|
||||||
status char(1) default '0',
|
status char(1) default '0',
|
||||||
@ -622,22 +622,22 @@ drop table if exists sys_oper_log cascade;
|
|||||||
|
|
||||||
create table sys_oper_log (
|
create table sys_oper_log (
|
||||||
oper_id bigserial not null primary key,
|
oper_id bigserial not null primary key,
|
||||||
title varchar(50) default '' not null,
|
title varchar(50) default '' ,
|
||||||
business_type smallint default 0 not null,
|
business_type smallint default 0 ,
|
||||||
method varchar(100) default '' not null,
|
method varchar(100) default '' ,
|
||||||
request_method varchar(10) default '' not null,
|
request_method varchar(10) default '' ,
|
||||||
operator_type smallint default 0 not null,
|
operator_type smallint default 0 ,
|
||||||
oper_name varchar(50) default '' not null,
|
oper_name varchar(50) default '' ,
|
||||||
dept_name varchar(50) default '' not null,
|
dept_name varchar(50) default '' ,
|
||||||
oper_url varchar(255) default '' not null,
|
oper_url varchar(255) default '' ,
|
||||||
oper_ip varchar(128) default '' not null,
|
oper_ip varchar(128) default '' ,
|
||||||
oper_location varchar(255) default '' not null,
|
oper_location varchar(255) default '' ,
|
||||||
oper_param varchar(2000) default '' not null,
|
oper_param varchar(2000) default '' ,
|
||||||
json_result varchar(2000) default '' not null,
|
json_result varchar(2000) default '' ,
|
||||||
status smallint default 0 not null,
|
status smallint default 0 ,
|
||||||
error_msg varchar(2000) default '' not null,
|
error_msg varchar(2000) default '' ,
|
||||||
oper_time timestamp default current_timestamp not null,
|
oper_time timestamp default current_timestamp ,
|
||||||
cost_time bigint default 0 not null
|
cost_time bigint default 0
|
||||||
);
|
);
|
||||||
|
|
||||||
create index idx_sys_oper_log_bt on sys_oper_log (business_type);
|
create index idx_sys_oper_log_bt on sys_oper_log (business_type);
|
||||||
@ -1007,3 +1007,6 @@ insert into sys_notice (notice_title, notice_type, notice_content, status, creat
|
|||||||
values('温馨提醒:2018-07-01 若依新版本发布啦', '2', decode('新版本内容', 'escape'), '0', 'admin', current_timestamp, '', null, '管理员');
|
values('温馨提醒:2018-07-01 若依新版本发布啦', '2', decode('新版本内容', 'escape'), '0', 'admin', current_timestamp, '', null, '管理员');
|
||||||
insert into sys_notice (notice_title, notice_type, notice_content, status, create_by, create_time, update_by, update_time, remark)
|
insert into sys_notice (notice_title, notice_type, notice_content, status, create_by, create_time, update_by, update_time, remark)
|
||||||
values('维护通知:2018-07-01 若依系统凌晨维护', '1', decode('维护内容', 'escape'), '0', 'admin', current_timestamp, '', null, '管理员');
|
values('维护通知:2018-07-01 若依系统凌晨维护', '1', decode('维护内容', 'escape'), '0', 'admin', current_timestamp, '', null, '管理员');
|
||||||
|
|
||||||
|
|
||||||
|
SELECT setval('sys_menu_menu_id_seq', max(menu_id)) FROM sys_menu WHERE menu_id < 100;
|
@ -1,7 +1,7 @@
|
|||||||
find_in_set\(([^,]+),\s*([^)]+)\)
|
find_in_set\(([^,]+),\s*([^)]+)\)
|
||||||
|
|
||||||
array_position(string_to_array($2, ','), $1)
|
array_position(string_to_array($2, ','), CAST($1 AS TEXT)) IS NOT NULL
|
||||||
|
|
||||||
sysdate()
|
sysdate\(\)
|
||||||
|
|
||||||
CURRENT_TIMESTAMP
|
CURRENT_TIMESTAMP
|
||||||
|
Loading…
Reference in New Issue
Block a user