perf:代码结构调整
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
SET NAMES utf8mb4;
|
||||
SET FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
create table core_role_authority
|
||||
(
|
||||
id varchar(50) not null
|
||||
@@ -93,3 +96,7 @@ create table core_role_user
|
||||
DEFAULT CHARSET = utf8mb4
|
||||
comment '角色-用户';
|
||||
|
||||
alter table core_role_authority
|
||||
add version varchar(50) null comment '版本号' after platform;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
<result column="link" jdbcType="LONGVARCHAR" property="link" />
|
||||
<result column="platform" jdbcType="VARCHAR" property="platform" />
|
||||
<result column="version" jdbcType="VARCHAR" property="version" />
|
||||
<result column="ext1" jdbcType="VARCHAR" property="ext1" />
|
||||
<result column="ext2" jdbcType="VARCHAR" property="ext2" />
|
||||
<result column="ext3" jdbcType="VARCHAR" property="ext3" />
|
||||
@@ -26,14 +27,14 @@
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, create_time, update_time, is_deleted, service, `no`, `name`, sort, `level`, parent,
|
||||
remark, is_open, `type`, link, platform, ext1, ext2, ext3
|
||||
remark, is_open, `type`, link, platform, version, ext1, ext2, ext3
|
||||
</sql>
|
||||
|
||||
<insert id="batchInsert">
|
||||
insert into core_role_authority(id, create_time, update_time, is_deleted, service, no, name, level, parent,
|
||||
type, platform, is_open)
|
||||
type, platform, is_open, version)
|
||||
values
|
||||
<foreach collection="list" separator="," item="item">
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.id}, now(), now(), 0,
|
||||
#{item.service},
|
||||
#{item.no},
|
||||
@@ -41,7 +42,7 @@
|
||||
#{item.level},
|
||||
#{item.parent},
|
||||
#{item.type},
|
||||
#{item.platform}, 1)
|
||||
#{item.platform}, 1, #{item.version})
|
||||
</foreach>
|
||||
|
||||
on duplicate key update update_time=now(),
|
||||
@@ -49,7 +50,8 @@
|
||||
level=values(level),
|
||||
parent=values(parent),
|
||||
type=values(type),
|
||||
platform=values(platform)
|
||||
platform=values(platform),
|
||||
version=values(version)
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user