| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?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.DemandOrderLogMapper" >
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.DemandOrderLog" >
- <id column="id" property="id" jdbcType="VARCHAR" />
- <result column="demand_order_id" property="demandOrderId" jdbcType="VARCHAR" />
- <result column="record_time" property="recordTime" jdbcType="TIMESTAMP" />
- <result column="status" property="status" jdbcType="INTEGER" />
- <result column="operator" property="operator" jdbcType="VARCHAR" />
- <result column="comment" property="comment" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, demand_order_id, record_time, status, operator, comment
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from demand_order_log
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
- delete from demand_order_log
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.DemandOrderLog" >
- insert into demand_order_log (id, demand_order_id, record_time,
- status, operator, comment
- )
- values (#{id,jdbcType=VARCHAR}, #{demandOrderId,jdbcType=VARCHAR}, #{recordTime,jdbcType=TIMESTAMP},
- #{status,jdbcType=INTEGER}, #{operator,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.DemandOrderLog" >
- insert into demand_order_log
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="demandOrderId != null" >
- demand_order_id,
- </if>
- <if test="recordTime != null" >
- record_time,
- </if>
- <if test="status != null" >
- status,
- </if>
- <if test="operator != null" >
- operator,
- </if>
- <if test="comment != null" >
- comment,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="demandOrderId != null" >
- #{demandOrderId,jdbcType=VARCHAR},
- </if>
- <if test="recordTime != null" >
- #{recordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="status != null" >
- #{status,jdbcType=INTEGER},
- </if>
- <if test="operator != null" >
- #{operator,jdbcType=VARCHAR},
- </if>
- <if test="comment != null" >
- #{comment,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.DemandOrderLog" >
- update demand_order_log
- <set >
- <if test="demandOrderId != null" >
- demand_order_id = #{demandOrderId,jdbcType=VARCHAR},
- </if>
- <if test="recordTime != null" >
- record_time = #{recordTime,jdbcType=TIMESTAMP},
- </if>
- <if test="status != null" >
- status = #{status,jdbcType=INTEGER},
- </if>
- <if test="operator != null" >
- operator = #{operator,jdbcType=VARCHAR},
- </if>
- <if test="comment != null" >
- comment = #{comment,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.DemandOrderLog" >
- update demand_order_log
- set demand_order_id = #{demandOrderId,jdbcType=VARCHAR},
- record_time = #{recordTime,jdbcType=TIMESTAMP},
- status = #{status,jdbcType=INTEGER},
- operator = #{operator,jdbcType=VARCHAR},
- comment = #{comment,jdbcType=VARCHAR}
- where id = #{id,jdbcType=VARCHAR}
- </update>
- </mapper>
|