Commit 20145822 by naan1993

修改relation的表名

parent 26e21ccc
...@@ -2,6 +2,7 @@ package com.stylefeng.guns.common.persistence.model; ...@@ -2,6 +2,7 @@ package com.stylefeng.guns.common.persistence.model;
import com.baomidou.mybatisplus.activerecord.Model; import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType; import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable; import java.io.Serializable;
...@@ -14,6 +15,7 @@ import java.io.Serializable; ...@@ -14,6 +15,7 @@ import java.io.Serializable;
* @author stylefeng * @author stylefeng
* @since 2017-07-11 * @since 2017-07-11
*/ */
@TableName("sys_relation")
public class Relation extends Model<Relation> { public class Relation extends Model<Relation> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</select> </select>
<delete id="deleteRelationByMenu"> <delete id="deleteRelationByMenu">
delete from relation where menuid = #{menuId} delete from sys_relation where menuid = #{menuId}
</delete> </delete>
<select id="getResUrlsByRoleId" resultType="string"> <select id="getResUrlsByRoleId" resultType="string">
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</select> </select>
<delete id="deleteRolesById"> <delete id="deleteRolesById">
delete from relation where roleid = #{roleId} delete from sys_relation where roleid = #{roleId}
</delete> </delete>
<select id="roleTreeList" resultType="com.stylefeng.guns.core.node.ZTreeNode"> <select id="roleTreeList" resultType="com.stylefeng.guns.core.node.ZTreeNode">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment