<?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.timer.api.dao.qyzx.QyzxEmpPermissionMapper"> <resultMap id="BaseResultMap" type="cn.timer.api.bean.qyzx.QyzxEmpPermission" > <id column="id" property="id" /> <result column="org_code" property="orgCode" /> <result column="datas" property="datas" /> <result column="system_type" property="systemType" /> <result column="role_id" property="roleId" /> </resultMap> <sql id="Base_Column_List"> id, org_code, datas, system_type, role_id </sql> <!-- <insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.qyzx.QyzxEmpPermission"> INSERT INTO qyzx_emp_permission <trim prefix="(" suffix=")" suffixOverrides=","> <if test ='null != orgCode'> org_code, </if> <if test ='null != datas'> datas, </if> <if test ='null != systemType'> system_type, </if> <if test ='null != roleId'> role_id </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test ='null != orgCode'> #{orgCode}, </if> <if test ='null != datas'> #{datas}, </if> <if test ='null != systemType'> #{systemType}, </if> <if test ='null != roleId'> #{roleId} </if> </trim> </insert> <delete id="delete" > DELETE FROM qyzx_emp_permission WHERE id = #{id} </delete> <update id="update" parameterType="cn.timer.api.bean.qyzx.QyzxEmpPermission"> UPDATE qyzx_emp_permission <set> <if test ='null != orgCode'>org_code = #{orgCode},</if> <if test ='null != datas'>datas = #{datas},</if> <if test ='null != systemType'>system_type = #{systemType},</if> <if test ='null != roleId'>role_id = #{roleId}</if> </set> WHERE id = #{id} </update> <select id="load" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List" /> FROM qyzx_emp_permission WHERE id = #{id} </select> <select id="pageList" resultMap="BaseResultMap"> SELECT <include refid="Base_Column_List" /> FROM qyzx_emp_permission LIMIT #{offset}, #{pageSize} </select> <select id="pageListCount" resultType="java.lang.Integer"> SELECT count(1) FROM qyzx_emp_permission </select> --> </mapper>