支付
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?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.zhwl.system.mapper.SysPostRoleMapper">
|
||||
|
||||
<resultMap type="com.zhwl.system.domain.SysPostRole" id="SysPostRoleResult">
|
||||
<result property="postId" column="post_id"/>
|
||||
<result property="roleId" column="role_id"/>
|
||||
</resultMap>
|
||||
|
||||
<insert id="insertPostRole" parameterType="com.zhwl.system.domain.SysPostRole">
|
||||
insert into sys_post_role(post_id, role_id)
|
||||
values (#{postId}, #{roleId})
|
||||
</insert>
|
||||
|
||||
<select id="getRoleIdByPostId" parameterType="java.lang.Long" resultType="java.lang.Long">
|
||||
select role_id
|
||||
from sys_post_role
|
||||
where post_id = #{postId}
|
||||
</select>
|
||||
|
||||
<select id="getRoleIdsArrayByPostIds" resultType="java.lang.Long" parameterType="java.lang.Long">
|
||||
select role_id from sys_post_role where post_id in
|
||||
<foreach collection="array" item="postId" open="(" separator="," close=")">
|
||||
#{postId}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPostIds" parameterType="java.lang.Long">
|
||||
delete from sys_post_role where post_id in
|
||||
<foreach collection="array" item="postId" open="(" separator="," close=")">
|
||||
#{postId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user