|
|
@@ -16,8 +16,8 @@
|
|
|
<result column="super_id" jdbcType="VARCHAR" property="superId" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, url, name,create_id ,create_time ,update_time ,
|
|
|
- deleted_sign, aut_no, hierarchies,status ,show_order , super_id
|
|
|
+ id, url, name,create_id as createId ,create_time as createTime,update_time as updateTime,
|
|
|
+ deleted_sign as deletedSign, aut_no as autNo, hierarchies,status ,show_order as showOrder, super_id as superId
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
@@ -151,7 +151,7 @@
|
|
|
</select>
|
|
|
<select id="selectSuperIdById" parameterType="java.lang.String" resultType="com.goafanti.common.model.Permission">
|
|
|
select
|
|
|
- name as createId
|
|
|
+ name as superId
|
|
|
from permission
|
|
|
where
|
|
|
id=#{id,jdbcType=VARCHAR}
|
|
|
@@ -175,4 +175,11 @@
|
|
|
where
|
|
|
super_id=#{superId,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+ <select id="selectName" resultType="com.goafanti.common.model.Permission">
|
|
|
+ select
|
|
|
+ name
|
|
|
+ from permission
|
|
|
+ where
|
|
|
+ name like concat('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
+ </select>
|
|
|
</mapper>
|