更改配置
This commit is contained in:
111
pluss-dao-bundle/target/classes/mapper/RoleUserInfo-sqlmap.xml
Normal file
111
pluss-dao-bundle/target/classes/mapper/RoleUserInfo-sqlmap.xml
Normal file
@@ -0,0 +1,111 @@
|
||||
<?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="cn.pluss.platform.mapper.RoleUserInfoMapper">
|
||||
|
||||
<insert id="saveRoleUserInfo" parameterType="cn.pluss.platform.entity.RoleUserInfo">
|
||||
insert into tb_pluss_role_user_info(roleId,userId,version)VALUES(#{roleId},#{userId},#{version})
|
||||
</insert>
|
||||
|
||||
<insert id="saveRoleUserInfoBatch">
|
||||
insert into tb_pluss_role_user_info(roleId,userId,version) VALUES
|
||||
<foreach collection="list" item="item" index="index" separator=",">
|
||||
(#{roleId},#{userId},#{version})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="queryRoleUserInfo" parameterType="cn.pluss.platform.entity.RoleUserInfo" resultType="cn.pluss.platform.entity.RoleUserInfo">
|
||||
SELECT * from tb_pluss_role_user_info
|
||||
<where>
|
||||
<if test="id!= null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="roleId!= null">
|
||||
and roleId = #{roleId}
|
||||
</if>
|
||||
<if test="userId!= null">
|
||||
and userId = #{userId}
|
||||
</if>
|
||||
<if test="version!= null">
|
||||
and version = #{version}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="queryRoleUserInfoList" parameterType="cn.pluss.platform.entity.RoleUserInfo" resultType="cn.pluss.platform.entity.RoleUserInfo">
|
||||
SELECT * from tb_pluss_role_user_info
|
||||
<where>
|
||||
<if test="id!= null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="roleId!= null">
|
||||
and roleId = #{roleId}
|
||||
</if>
|
||||
<if test="userId!= null">
|
||||
and userId = #{userId}
|
||||
</if>
|
||||
<if test="version!= null">
|
||||
and version = #{version}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="updateRoleUserInfo" parameterType="cn.pluss.platform.entity.RoleUserInfo" >
|
||||
update tb_pluss_role_user_info
|
||||
<set>
|
||||
<if test="roleId!= null">
|
||||
roleId = #{roleId},
|
||||
</if>
|
||||
<if test="userId!= null">
|
||||
userId = #{userId},
|
||||
</if>
|
||||
<if test="version!= null">
|
||||
version = #{version}
|
||||
</if>
|
||||
</set>
|
||||
where id=#{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteRoleUserInfo" parameterType="cn.pluss.platform.entity.RoleUserInfo" >
|
||||
DELETE FROM tb_pluss_role_user_info where id=#{id}
|
||||
</delete>
|
||||
|
||||
<select id="queryRoleUserInfoPage" parameterType="java.util.Map" resultType="cn.pluss.platform.entity.RoleUserInfo">
|
||||
SELECT * from tb_pluss_role_user_info
|
||||
<where>
|
||||
<if test="id!= null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="roleId!= null">
|
||||
and roleId = #{roleId}
|
||||
</if>
|
||||
<if test="userId!= null">
|
||||
and userId = #{userId}
|
||||
</if>
|
||||
<if test="version!= null">
|
||||
and version = #{version}
|
||||
</if>
|
||||
</where>
|
||||
order by id desc limit #{pageSize} offset #{offset}
|
||||
</select>
|
||||
|
||||
<select id="queryRoleUserInfoPageCount" parameterType="java.util.Map" resultType="java.lang.Integer">
|
||||
SELECT count(*) from tb_pluss_role_user_info
|
||||
<where>
|
||||
<if test="id!= null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="roleId!= null">
|
||||
and roleId = #{roleId}
|
||||
</if>
|
||||
<if test="userId!= null">
|
||||
and userId = #{userId}
|
||||
</if>
|
||||
<if test="version!= null">
|
||||
and version = #{version}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user