123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?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.zkqy.amichi.mapper.TeamPersonnelChangeInformationMapper">
-
- <resultMap type="com.zkqy.amichi.domain.TeamPersonnelChangeInformation" id="TeamPersonnelChangeInformationResult">
- <result property="id" column="id" />
- <result property="teamPersonnelName" column="team_personnel_name" />
- <result property="teamId" column="team_id" />
- <result property="remark" column="remark" />
- <result property="createById" column="create_by_id" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateById" column="update_by_id" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- <result property="delFlag" column="del_flag" />
- <result property="dataApprovalStatus" column="data_approval_status" />
- <result property="processKey" column="process_key" />
- <result property="taskProcessKey" column="task_process_key" />
- <result property="taskNodeKey" column="task_node_key" />
- </resultMap>
- <sql id="selectTeamPersonnelChangeInformationVo">
- select id, team_personnel_name, team_id, remark, create_by_id, create_by, create_time, update_by_id, update_by, update_time, del_flag, data_approval_status,
- process_key, task_process_key, task_node_key from {DBNAME}.team_personnel_change_information
- </sql>
- <select id="selectTeamPersonnelChangeInformationList" parameterType="com.zkqy.amichi.domain.TeamPersonnelChangeInformation" resultMap="TeamPersonnelChangeInformationResult">
- <include refid="selectTeamPersonnelChangeInformationVo"/>
- <where>
- <if test="teamPersonnelName != null and teamPersonnelName != ''"> and team_personnel_name = #{teamPersonnelName}</if>
- <if test="teamId != null and teamId != ''"> and team_id = #{teamId}</if>
- <if test="createById != null "> and create_by_id = #{createById}</if>
- <if test="updateById != null "> and update_by_id = #{updateById}</if>
- <if test="dataApprovalStatus != null and dataApprovalStatus != ''"> and data_approval_status = #{dataApprovalStatus}</if>
- <if test="processKey != null and processKey != ''"> and process_key = #{processKey}</if>
- <if test="taskProcessKey != null and taskProcessKey != ''"> and task_process_key = #{taskProcessKey}</if>
- <if test="taskNodeKey != null and taskNodeKey != ''"> and task_node_key = #{taskNodeKey}</if>
- and del_flag=0
- </where>
- </select>
-
- <select id="selectTeamPersonnelChangeInformationById" parameterType="Long" resultMap="TeamPersonnelChangeInformationResult">
- <include refid="selectTeamPersonnelChangeInformationVo"/>
- where id = #{id} and del_flag=0
- </select>
-
- <insert id="insertTeamPersonnelChangeInformation" parameterType="com.zkqy.amichi.domain.TeamPersonnelChangeInformation" useGeneratedKeys="true" keyProperty="id">
- insert into {DBNAME}.team_personnel_change_information
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="teamPersonnelName != null">team_personnel_name,</if>
- <if test="teamId != null">team_id,</if>
- <if test="remark != null">remark,</if>
- <if test="createById != null">create_by_id,</if>
- <if test="createBy != null">create_by,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateById != null">update_by_id,</if>
- <if test="updateBy != null">update_by,</if>
- <if test="updateTime != null">update_time,</if>
- <if test="delFlag != null">del_flag,</if>
- <if test="dataApprovalStatus != null">data_approval_status,</if>
- <if test="processKey != null">process_key,</if>
- <if test="taskProcessKey != null">task_process_key,</if>
- <if test="taskNodeKey != null">task_node_key,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="teamPersonnelName != null">#{teamPersonnelName},</if>
- <if test="teamId != null">#{teamId},</if>
- <if test="remark != null">#{remark},</if>
- <if test="createById != null">#{createById},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateById != null">#{updateById},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="updateTime != null">#{updateTime},</if>
- <if test="delFlag != null">#{delFlag},</if>
- <if test="dataApprovalStatus != null">#{dataApprovalStatus},</if>
- <if test="processKey != null">#{processKey},</if>
- <if test="taskProcessKey != null">#{taskProcessKey},</if>
- <if test="taskNodeKey != null">#{taskNodeKey},</if>
- </trim>
- </insert>
- <update id="updateTeamPersonnelChangeInformation" parameterType="com.zkqy.amichi.domain.TeamPersonnelChangeInformation">
- update {DBNAME}.team_personnel_change_information
- <trim prefix="SET" suffixOverrides=",">
- <if test="teamPersonnelName != null">team_personnel_name = #{teamPersonnelName},</if>
- <if test="teamId != null">team_id = #{teamId},</if>
- <if test="remark != null">remark = #{remark},</if>
- <if test="createById != null">create_by_id = #{createById},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateById != null">update_by_id = #{updateById},</if>
- <if test="updateBy != null">update_by = #{updateBy},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="delFlag != null">del_flag = #{delFlag},</if>
- <if test="dataApprovalStatus != null">data_approval_status = #{dataApprovalStatus},</if>
- <if test="processKey != null">process_key = #{processKey},</if>
- <if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
- <if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteTeamPersonnelChangeInformationById" parameterType="Long">
- delete from {DBNAME}.team_personnel_change_information where id = #{id}
- </delete>
- <delete id="deleteTeamPersonnelChangeInformationByIds" parameterType="String">
- delete from {DBNAME}.team_personnel_change_information where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- </mapper>
|