forked from ps2hc5nfx/youxi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
747 B
22 lines
747 B
2 years ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE mapper
|
||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
<mapper namespace="com.ischoolbar.programmer.dao.admin.AuthorityDao">
|
||
|
<!-- 权限插入操作 -->
|
||
|
<insert id="add" parameterType="Authority">
|
||
|
insert into authority(id,roleId,menuId) values(null,#{roleId},#{menuId})
|
||
|
</insert>
|
||
|
<!-- 权限信息搜索查询 -->
|
||
|
<select id="findListByRoleId" parameterType="Long" resultType="Authority">
|
||
|
select * from authority
|
||
|
<if test="_parameter != null">
|
||
|
where roleId = #{roleId}
|
||
|
</if>
|
||
|
</select>
|
||
|
|
||
|
<!-- 删除权限信息 -->
|
||
|
<delete id="deleteByRoleId" parameterType="Long">
|
||
|
delete from authority where roleId = #{roleId}
|
||
|
</delete>
|
||
|
</mapper>
|