<?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.OpeWorkOrderMapper">
|
<resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoOp.OpeWorkOrder">
|
<!--@mbg.generated-->
|
<!--@Table ope_work_order-->
|
<id column="id" jdbcType="BIGINT" property="id" />
|
<result column="dispatcher_id" jdbcType="BIGINT" property="dispatcherId" />
|
<result column="inspector_id" jdbcType="BIGINT" property="inspectorId" />
|
<result column="task_type_id" jdbcType="BIGINT" property="taskTypeId" />
|
<result column="task_content" jdbcType="VARCHAR" property="taskContent" />
|
<result column="complete_criteria" jdbcType="VARCHAR" property="completeCriteria" />
|
<result column="dead_line" jdbcType="TIMESTAMP" property="deadLine" />
|
<result column="complete_time" jdbcType="TIMESTAMP" property="completeTime" />
|
<result column="dispatch_time" jdbcType="TIMESTAMP" property="dispatchTime" />
|
<result column="state" jdbcType="TINYINT" property="state" />
|
<result column="reject_times" jdbcType="INTEGER" property="rejectTimes" />
|
<result column="deleted" jdbcType="BIGINT" property="deleted" />
|
</resultMap>
|
<sql id="Base_Column_List">
|
<!--@mbg.generated-->
|
id, dispatcher_id, inspector_id, task_type_id, task_content, complete_criteria, dead_line,
|
complete_time, dispatch_time, `state`, reject_times, deleted
|
</sql>
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
<!--@mbg.generated-->
|
select
|
<include refid="Base_Column_List" />
|
from ope_work_order
|
where id = #{id,jdbcType=BIGINT}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
<!--@mbg.generated-->
|
delete from ope_work_order
|
where id = #{id,jdbcType=BIGINT}
|
</delete>
|
<insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeWorkOrder">
|
<!--@mbg.generated-->
|
insert into ope_work_order (id, dispatcher_id, inspector_id,
|
task_type_id, task_content, complete_criteria,
|
dead_line, complete_time, dispatch_time,
|
`state`, reject_times, deleted
|
)
|
values (#{id,jdbcType=BIGINT}, #{dispatcherId,jdbcType=BIGINT}, #{inspectorId,jdbcType=BIGINT},
|
#{taskTypeId,jdbcType=BIGINT}, #{taskContent,jdbcType=VARCHAR}, #{completeCriteria,jdbcType=VARCHAR},
|
#{deadLine,jdbcType=TIMESTAMP}, #{completeTime,jdbcType=TIMESTAMP}, #{dispatchTime,jdbcType=TIMESTAMP},
|
#{state,jdbcType=TINYINT}, #{rejectTimes,jdbcType=INTEGER}, #{deleted,jdbcType=BIGINT}
|
)
|
</insert>
|
<insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeWorkOrder">
|
<!--@mbg.generated-->
|
insert into ope_work_order
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
id,
|
</if>
|
<if test="dispatcherId != null">
|
dispatcher_id,
|
</if>
|
<if test="inspectorId != null">
|
inspector_id,
|
</if>
|
<if test="taskTypeId != null">
|
task_type_id,
|
</if>
|
<if test="taskContent != null">
|
task_content,
|
</if>
|
<if test="completeCriteria != null">
|
complete_criteria,
|
</if>
|
<if test="deadLine != null">
|
dead_line,
|
</if>
|
<if test="completeTime != null">
|
complete_time,
|
</if>
|
<if test="dispatchTime != null">
|
dispatch_time,
|
</if>
|
<if test="state != null">
|
`state`,
|
</if>
|
<if test="rejectTimes != null">
|
reject_times,
|
</if>
|
<if test="deleted != null">
|
deleted,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="id != null">
|
#{id,jdbcType=BIGINT},
|
</if>
|
<if test="dispatcherId != null">
|
#{dispatcherId,jdbcType=BIGINT},
|
</if>
|
<if test="inspectorId != null">
|
#{inspectorId,jdbcType=BIGINT},
|
</if>
|
<if test="taskTypeId != null">
|
#{taskTypeId,jdbcType=BIGINT},
|
</if>
|
<if test="taskContent != null">
|
#{taskContent,jdbcType=VARCHAR},
|
</if>
|
<if test="completeCriteria != null">
|
#{completeCriteria,jdbcType=VARCHAR},
|
</if>
|
<if test="deadLine != null">
|
#{deadLine,jdbcType=TIMESTAMP},
|
</if>
|
<if test="completeTime != null">
|
#{completeTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="dispatchTime != null">
|
#{dispatchTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="state != null">
|
#{state,jdbcType=TINYINT},
|
</if>
|
<if test="rejectTimes != null">
|
#{rejectTimes,jdbcType=INTEGER},
|
</if>
|
<if test="deleted != null">
|
#{deleted,jdbcType=BIGINT},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoOp.OpeWorkOrder">
|
<!--@mbg.generated-->
|
update ope_work_order
|
<set>
|
<if test="dispatcherId != null">
|
dispatcher_id = #{dispatcherId,jdbcType=BIGINT},
|
</if>
|
<if test="inspectorId != null">
|
inspector_id = #{inspectorId,jdbcType=BIGINT},
|
</if>
|
<if test="taskTypeId != null">
|
task_type_id = #{taskTypeId,jdbcType=BIGINT},
|
</if>
|
<if test="taskContent != null">
|
task_content = #{taskContent,jdbcType=VARCHAR},
|
</if>
|
<if test="completeCriteria != null">
|
complete_criteria = #{completeCriteria,jdbcType=VARCHAR},
|
</if>
|
<if test="deadLine != null">
|
dead_line = #{deadLine,jdbcType=TIMESTAMP},
|
</if>
|
<if test="completeTime != null">
|
complete_time = #{completeTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="dispatchTime != null">
|
dispatch_time = #{dispatchTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="state != null">
|
`state` = #{state,jdbcType=TINYINT},
|
</if>
|
<if test="rejectTimes != null">
|
reject_times = #{rejectTimes,jdbcType=INTEGER},
|
</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.OpeWorkOrder">
|
<!--@mbg.generated-->
|
update ope_work_order
|
set dispatcher_id = #{dispatcherId,jdbcType=BIGINT},
|
inspector_id = #{inspectorId,jdbcType=BIGINT},
|
task_type_id = #{taskTypeId,jdbcType=BIGINT},
|
task_content = #{taskContent,jdbcType=VARCHAR},
|
complete_criteria = #{completeCriteria,jdbcType=VARCHAR},
|
dead_line = #{deadLine,jdbcType=TIMESTAMP},
|
complete_time = #{completeTime,jdbcType=TIMESTAMP},
|
dispatch_time = #{dispatchTime,jdbcType=TIMESTAMP},
|
`state` = #{state,jdbcType=TINYINT},
|
reject_times = #{rejectTimes,jdbcType=INTEGER},
|
deleted = #{deleted,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
</update>
|
</mapper>
|