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.OpeApproveResultMapper"> |
| | | <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoOp.OpeApproveResult"> |
| | | <!--@mbg.generated--> |
| | | <!--@Table ope_approve_result--> |
| | | <id column="id" jdbcType="BIGINT" property="id" /> |
| | | <result column="work_order_id" jdbcType="BIGINT" property="workOrderId" /> |
| | | <result column="processing_result_id" jdbcType="BIGINT" property="processingResultId" /> |
| | | <result column="approver_id" jdbcType="BIGINT" property="approverId" /> |
| | | <result column="approve_time" jdbcType="TIMESTAMP" property="approveTime" /> |
| | | <result column="approve_result" jdbcType="TINYINT" property="approveResult" /> |
| | | <result column="deleted" jdbcType="BIGINT" property="deleted" /> |
| | | </resultMap> |
| | | <sql id="Base_Column_List"> |
| | | <!--@mbg.generated--> |
| | | id, work_order_id, processing_result_id, approver_id, approve_time, approve_result, |
| | | deleted |
| | | </sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
| | | <!--@mbg.generated--> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from ope_approve_result |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | <!--@mbg.generated--> |
| | | delete from ope_approve_result |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeApproveResult"> |
| | | <!--@mbg.generated--> |
| | | insert into ope_approve_result (id, work_order_id, processing_result_id, |
| | | approver_id, approve_time, approve_result, |
| | | deleted) |
| | | values (#{id,jdbcType=BIGINT}, #{workOrderId,jdbcType=BIGINT}, #{processingResultId,jdbcType=BIGINT}, |
| | | #{approverId,jdbcType=BIGINT}, #{approveTime,jdbcType=TIMESTAMP}, #{approveResult,jdbcType=TINYINT}, |
| | | #{deleted,jdbcType=BIGINT}) |
| | | </insert> |
| | | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeApproveResult"> |
| | | <!--@mbg.generated--> |
| | | insert into ope_approve_result |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="workOrderId != null"> |
| | | work_order_id, |
| | | </if> |
| | | <if test="processingResultId != null"> |
| | | processing_result_id, |
| | | </if> |
| | | <if test="approverId != null"> |
| | | approver_id, |
| | | </if> |
| | | <if test="approveTime != null"> |
| | | approve_time, |
| | | </if> |
| | | <if test="approveResult != null"> |
| | | approve_result, |
| | | </if> |
| | | <if test="deleted != null"> |
| | | deleted, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="workOrderId != null"> |
| | | #{workOrderId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="processingResultId != null"> |
| | | #{processingResultId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="approverId != null"> |
| | | #{approverId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="approveTime != null"> |
| | | #{approveTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="approveResult != null"> |
| | | #{approveResult,jdbcType=TINYINT}, |
| | | </if> |
| | | <if test="deleted != null"> |
| | | #{deleted,jdbcType=BIGINT}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeApproveResult"> |
| | | <!--@mbg.generated--> |
| | | update ope_approve_result |
| | | <set> |
| | | <if test="workOrderId != null"> |
| | | work_order_id = #{workOrderId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="processingResultId != null"> |
| | | processing_result_id = #{processingResultId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="approverId != null"> |
| | | approver_id = #{approverId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="approveTime != null"> |
| | | approve_time = #{approveTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="approveResult != null"> |
| | | approve_result = #{approveResult,jdbcType=TINYINT}, |
| | | </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.OpeApproveResult"> |
| | | <!--@mbg.generated--> |
| | | update ope_approve_result |
| | | set work_order_id = #{workOrderId,jdbcType=BIGINT}, |
| | | processing_result_id = #{processingResultId,jdbcType=BIGINT}, |
| | | approver_id = #{approverId,jdbcType=BIGINT}, |
| | | approve_time = #{approveTime,jdbcType=TIMESTAMP}, |
| | | approve_result = #{approveResult,jdbcType=TINYINT}, |
| | | deleted = #{deleted,jdbcType=BIGINT} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | </mapper> |