🐛 pom.xml
This commit is contained in:
@@ -9,7 +9,38 @@
|
|||||||
</parent>
|
</parent>
|
||||||
<artifactId>schisandra-cloud-storage-auth-application-controller</artifactId>
|
<artifactId>schisandra-cloud-storage-auth-application-controller</artifactId>
|
||||||
<name>schisandra-cloud-storage-auth-application-controller</name>
|
<name>schisandra-cloud-storage-auth-application-controller</name>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<source>1.8</source>
|
||||||
|
<target>1.8</target>
|
||||||
|
<encoding>UTF-8</encoding>
|
||||||
|
<annotationProcessorPaths>
|
||||||
|
<path>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<version>1.18.20</version>
|
||||||
|
</path>
|
||||||
|
<!-- 必须要加, 否则生成不了 MapperImpl 实现类 -->
|
||||||
|
<path>
|
||||||
|
<groupId>org.mapstruct</groupId>
|
||||||
|
<artifactId>mapstruct-processor</artifactId>
|
||||||
|
<version>1.4.2.Final</version>
|
||||||
|
</path>
|
||||||
|
<!-- 如果是 0.1.0 有可能出现生成了maptruct的实现类, 但该类只创建了对象, 没有进行赋值 -->
|
||||||
|
<path>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok-mapstruct-binding</artifactId>
|
||||||
|
<version>0.2.0</version>
|
||||||
|
</path>
|
||||||
|
</annotationProcessorPaths>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>8</maven.compiler.source>
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
<maven.compiler.target>8</maven.compiler.target>
|
<maven.compiler.target>8</maven.compiler.target>
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<!--查询单个-->
|
<!--查询单个-->
|
||||||
<select id="queryById" resultMap="SchisandraAuthPermissionMap">
|
<select id="queryById" resultMap="SchisandraAuthPermissionMap">
|
||||||
select id,name,parent_id,type,menu_url,status,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted
|
select id,`name`,parent_id,`type`,menu_url,`status`,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted
|
||||||
from schisandra_auth_permission
|
from schisandra_auth_permission
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</select>
|
</select>
|
||||||
@@ -29,29 +29,29 @@
|
|||||||
<!--查询指定行数据-->
|
<!--查询指定行数据-->
|
||||||
<select id="queryAllByLimit" resultMap="SchisandraAuthPermissionMap">
|
<select id="queryAllByLimit" resultMap="SchisandraAuthPermissionMap">
|
||||||
select
|
select
|
||||||
id,name,parent_id,type,menu_url,status,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted
|
id,name,parent_id,`type`,menu_url,`status`,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted
|
||||||
from schisandra_auth_permission
|
from schisandra_auth_permission
|
||||||
<where>
|
<where>
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
and id = #{id}
|
and id = #{id}
|
||||||
</if>
|
</if>
|
||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
and name = #{name}
|
and `name` = #{name}
|
||||||
</if>
|
</if>
|
||||||
<if test="parentId != null">
|
<if test="parentId != null">
|
||||||
and parent_id = #{parentId}
|
and parent_id = #{parentId}
|
||||||
</if>
|
</if>
|
||||||
<if test="type != null">
|
<if test="type != null">
|
||||||
and type = #{type}
|
and `type` = #{type}
|
||||||
</if>
|
</if>
|
||||||
<if test="menuUrl != null and menuUrl != ''">
|
<if test="menuUrl != null and menuUrl != ''">
|
||||||
and menu_url = #{menuUrl}
|
and menu_url = #{menuUrl}
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null">
|
<if test="status != null">
|
||||||
and status = #{status}
|
and `status` = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="show != null">
|
<if test="show != null">
|
||||||
and show = #{show}
|
and `show` = #{show}
|
||||||
</if>
|
</if>
|
||||||
<if test="icon != null and icon != ''">
|
<if test="icon != null and icon != ''">
|
||||||
and icon = #{icon}
|
and icon = #{icon}
|
||||||
@@ -87,25 +87,25 @@
|
|||||||
and id = #{id}
|
and id = #{id}
|
||||||
</if>
|
</if>
|
||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
and name = #{name}
|
and `name` = #{name}
|
||||||
</if>
|
</if>
|
||||||
<if test="parentId != null">
|
<if test="parentId != null">
|
||||||
and parent_id = #{parentId}
|
and parent_id = #{parentId}
|
||||||
</if>
|
</if>
|
||||||
<if test="type != null">
|
<if test="type != null">
|
||||||
and type = #{type}
|
and `type` = #{type}
|
||||||
</if>
|
</if>
|
||||||
<if test="menuUrl != null and menuUrl != ''">
|
<if test="menuUrl != null and menuUrl != ''">
|
||||||
and menu_url = #{menuUrl}
|
and menu_url = #{menuUrl}
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null">
|
<if test="status != null">
|
||||||
and status = #{status}
|
and `status` = #{status}
|
||||||
</if>
|
</if>
|
||||||
<if test="show != null">
|
<if test="show != null">
|
||||||
and show = #{show}
|
and `show` = #{show}
|
||||||
</if>
|
</if>
|
||||||
<if test="icon != null and icon != ''">
|
<if test="icon != null and icon != ''">
|
||||||
and icon = #{icon}
|
and `icon` = #{icon}
|
||||||
</if>
|
</if>
|
||||||
<if test="permissionKey != null and permissionKey != ''">
|
<if test="permissionKey != null and permissionKey != ''">
|
||||||
and permission_key = #{permissionKey}
|
and permission_key = #{permissionKey}
|
||||||
@@ -130,13 +130,13 @@
|
|||||||
|
|
||||||
<!--新增所有列-->
|
<!--新增所有列-->
|
||||||
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
||||||
insert into schisandra_auth_permission(name,parent_id,`type`,menu_url,status,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted)
|
insert into schisandra_auth_permission(`name`,parent_id,`type`,menu_url,`status`,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted)
|
||||||
values (#{name},#{parentId},#{type},#{menuUrl},#{status},#{show},#{icon},#{permissionKey},#{createdBy},#{createdTime},#{updateBy},#{updateTime},#{isDeleted})
|
values (#{name},#{parentId},#{type},#{menuUrl},#{status},#{show},#{icon},#{permissionKey},#{createdBy},#{createdTime},#{updateBy},#{updateTime},#{isDeleted})
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||||
insert into
|
insert into
|
||||||
schisandra_auth_permission(name,parent_id,type,menu_url,status,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted)
|
schisandra_auth_permission(`name`,parent_id,`type`,menu_url,`status`,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.name},#{entity.parentId},#{entity.type},#{entity.menuUrl},#{entity.status},#{entity.show},#{entity.icon},#{entity.permissionKey},#{entity.createdBy},#{entity.createdTime},#{entity.updateBy},#{entity.updateTime},#{entity.isDeleted})
|
(#{entity.name},#{entity.parentId},#{entity.type},#{entity.menuUrl},#{entity.status},#{entity.show},#{entity.icon},#{entity.permissionKey},#{entity.createdBy},#{entity.createdTime},#{entity.updateBy},#{entity.updateTime},#{entity.isDeleted})
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
|
|
||||||
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||||
insert into
|
insert into
|
||||||
schisandra_auth_permission(name,parent_id,type,menu_url,status,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted)
|
schisandra_auth_permission(`name`,parent_id,`type`,menu_url,`status`,`show`,icon,permission_key,created_by,created_time,update_by,update_time,is_deleted)
|
||||||
values
|
values
|
||||||
<foreach collection="entities" item="entity" separator=",">
|
<foreach collection="entities" item="entity" separator=",">
|
||||||
(#{entity.name},#{entity.parentId},#{entity.type},#{entity.menuUrl},#{entity.status},#{entity.show},#{entity.icon},#{entity.permissionKey},#{entity.createdBy},#{entity.createdTime},#{entity.updateBy},#{entity.updateTime},#{entity.isDeleted})
|
(#{entity.name},#{entity.parentId},#{entity.type},#{entity.menuUrl},#{entity.status},#{entity.show},#{entity.icon},#{entity.permissionKey},#{entity.createdBy},#{entity.createdTime},#{entity.updateBy},#{entity.updateTime},#{entity.isDeleted})
|
||||||
@@ -162,22 +162,22 @@
|
|||||||
update schisandra_auth_permission
|
update schisandra_auth_permission
|
||||||
<set>
|
<set>
|
||||||
<if test="name != null and name != ''">
|
<if test="name != null and name != ''">
|
||||||
name = #{name},
|
`name` = #{name},
|
||||||
</if>
|
</if>
|
||||||
<if test="parentId != null">
|
<if test="parentId != null">
|
||||||
parent_id = #{parentId},
|
parent_id = #{parentId},
|
||||||
</if>
|
</if>
|
||||||
<if test="type != null">
|
<if test="type != null">
|
||||||
type = #{type},
|
`type` = #{type},
|
||||||
</if>
|
</if>
|
||||||
<if test="menuUrl != null and menuUrl != ''">
|
<if test="menuUrl != null and menuUrl != ''">
|
||||||
menu_url = #{menuUrl},
|
menu_url = #{menuUrl},
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null">
|
<if test="status != null">
|
||||||
status = #{status},
|
`status` = #{status},
|
||||||
</if>
|
</if>
|
||||||
<if test="show != null">
|
<if test="show != null">
|
||||||
show = #{show},
|
`show` = #{show},
|
||||||
</if>
|
</if>
|
||||||
<if test="icon != null and icon != ''">
|
<if test="icon != null and icon != ''">
|
||||||
icon = #{icon},
|
icon = #{icon},
|
||||||
|
Reference in New Issue
Block a user