|
|
@@ -0,0 +1,58 @@
|
|
|
+<?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.goafanti.common.dao.TOrderTaskDetailsMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrderTaskDetails">
|
|
|
+ <id column="tid" jdbcType="INTEGER" property="tid" />
|
|
|
+ <result column="change" jdbcType="INTEGER" property="change" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ tid, `change`
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from t_order_task_details
|
|
|
+ where tid = #{tid,jdbcType=INTEGER}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
+ delete from t_order_task_details
|
|
|
+ where tid = #{tid,jdbcType=INTEGER}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.goafanti.common.model.TOrderTaskDetails">
|
|
|
+ insert into t_order_task_details (tid, `change`)
|
|
|
+ values (#{tid,jdbcType=INTEGER}, #{change,jdbcType=INTEGER})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderTaskDetails">
|
|
|
+ insert into t_order_task_details
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="tid != null">
|
|
|
+ tid,
|
|
|
+ </if>
|
|
|
+ <if test="change != null">
|
|
|
+ `change`,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="tid != null">
|
|
|
+ #{tid,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="change != null">
|
|
|
+ #{change,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderTaskDetails">
|
|
|
+ update t_order_task_details
|
|
|
+ <set>
|
|
|
+ <if test="change != null">
|
|
|
+ `change` = #{change,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where tid = #{tid,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderTaskDetails">
|
|
|
+ update t_order_task_details
|
|
|
+ set `change` = #{change,jdbcType=INTEGER}
|
|
|
+ where tid = #{tid,jdbcType=INTEGER}
|
|
|
+ </update>
|
|
|
+</mapper>
|