| New file | 
 |  |  | 
 |  |  | <?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.dy.pipIrrGlobal.daoOp.OpeTaskTypeMapper"> | 
 |  |  |   <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoOp.OpeTaskType"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     <!--@Table ope_task_type--> | 
 |  |  |     <id column="id" jdbcType="BIGINT" property="id" /> | 
 |  |  |     <result column="task_type" jdbcType="VARCHAR" property="taskType" /> | 
 |  |  |     <result column="deleted" jdbcType="BIGINT" property="deleted" /> | 
 |  |  |   </resultMap> | 
 |  |  |   <sql id="Base_Column_List"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     id, task_type, deleted | 
 |  |  |   </sql> | 
 |  |  |   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     select  | 
 |  |  |     <include refid="Base_Column_List" /> | 
 |  |  |     from ope_task_type | 
 |  |  |     where id = #{id,jdbcType=BIGINT} | 
 |  |  |   </select> | 
 |  |  |   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     delete from ope_task_type | 
 |  |  |     where id = #{id,jdbcType=BIGINT} | 
 |  |  |   </delete> | 
 |  |  |   <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeTaskType"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     insert into ope_task_type (id, task_type, deleted | 
 |  |  |       ) | 
 |  |  |     values (#{id,jdbcType=BIGINT}, #{taskType,jdbcType=VARCHAR}, #{deleted,jdbcType=BIGINT} | 
 |  |  |       ) | 
 |  |  |   </insert> | 
 |  |  |   <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeTaskType"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     insert into ope_task_type | 
 |  |  |     <trim prefix="(" suffix=")" suffixOverrides=","> | 
 |  |  |       <if test="id != null"> | 
 |  |  |         id, | 
 |  |  |       </if> | 
 |  |  |       <if test="taskType != null"> | 
 |  |  |         task_type, | 
 |  |  |       </if> | 
 |  |  |       <if test="deleted != null"> | 
 |  |  |         deleted, | 
 |  |  |       </if> | 
 |  |  |     </trim> | 
 |  |  |     <trim prefix="values (" suffix=")" suffixOverrides=","> | 
 |  |  |       <if test="id != null"> | 
 |  |  |         #{id,jdbcType=BIGINT}, | 
 |  |  |       </if> | 
 |  |  |       <if test="taskType != null"> | 
 |  |  |         #{taskType,jdbcType=VARCHAR}, | 
 |  |  |       </if> | 
 |  |  |       <if test="deleted != null"> | 
 |  |  |         #{deleted,jdbcType=BIGINT}, | 
 |  |  |       </if> | 
 |  |  |     </trim> | 
 |  |  |   </insert> | 
 |  |  |   <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeTaskType"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     update ope_task_type | 
 |  |  |     <set> | 
 |  |  |       <if test="taskType != null"> | 
 |  |  |         task_type = #{taskType,jdbcType=VARCHAR}, | 
 |  |  |       </if> | 
 |  |  |       <if test="deleted != null"> | 
 |  |  |         deleted = #{deleted,jdbcType=BIGINT}, | 
 |  |  |       </if> | 
 |  |  |     </set> | 
 |  |  |     where id = #{id,jdbcType=BIGINT} | 
 |  |  |   </update> | 
 |  |  |   <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeTaskType"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     update ope_task_type | 
 |  |  |     set task_type = #{taskType,jdbcType=VARCHAR}, | 
 |  |  |       deleted = #{deleted,jdbcType=BIGINT} | 
 |  |  |     where id = #{id,jdbcType=BIGINT} | 
 |  |  |   </update> | 
 |  |  |  | 
 |  |  |   <!--获取任务类型列表--> | 
 |  |  |   <select id="getTaskTypes" resultType="com.dy.pipIrrGlobal.voOp.VoTaskType"> | 
 |  |  |     SELECT | 
 |  |  |       id AS taskTypeId, | 
 |  |  |       task_type AS taskType | 
 |  |  |     FROM ope_task_type | 
 |  |  |     WHERE deleted = 0 | 
 |  |  |   </select> | 
 |  |  | </mapper> |