| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?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.TaskProgressLogMapper">
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.TaskProgressLog">
- <id column="id" jdbcType="INTEGER" property="id" />
- <result column="tid" jdbcType="INTEGER" property="tid" />
- <result column="patent_name" jdbcType="VARCHAR" property="patentName" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- </resultMap>
- <sql id="Base_Column_List">
- id, tid, patent_name, `status`, create_time
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from task_progress_log
- where id = #{id,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
- delete from task_progress_log
- where id = #{id,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.TaskProgressLog">
- insert into task_progress_log (id, tid, patent_name,
- `status`, create_time)
- values (#{id,jdbcType=INTEGER}, #{tid,jdbcType=INTEGER}, #{patentName,jdbcType=VARCHAR},
- #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.TaskProgressLog">
- insert into task_progress_log
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="tid != null">
- tid,
- </if>
- <if test="patentName != null">
- patent_name,
- </if>
- <if test="status != null">
- `status`,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=INTEGER},
- </if>
- <if test="tid != null">
- #{tid,jdbcType=INTEGER},
- </if>
- <if test="patentName != null">
- #{patentName,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TaskProgressLog">
- update task_progress_log
- <set>
- <if test="tid != null">
- tid = #{tid,jdbcType=INTEGER},
- </if>
- <if test="patentName != null">
- patent_name = #{patentName,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- `status` = #{status,jdbcType=INTEGER},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where id = #{id,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TaskProgressLog">
- update task_progress_log
- set tid = #{tid,jdbcType=INTEGER},
- patent_name = #{patentName,jdbcType=VARCHAR},
- `status` = #{status,jdbcType=INTEGER},
- create_time = #{createTime,jdbcType=TIMESTAMP}
- where id = #{id,jdbcType=INTEGER}
- </update>
-
- <select id="selectTaskProgressLog" resultType="com.goafanti.order.bo.OutTaskProgressLog">
- select
- id, tid, patent_name patentName, `status`, date_format(create_time,'%Y-%m-%d %H:%i:%S')createTime
- from task_progress_log
- where tid = #{tid,jdbcType=INTEGER}
- </select>
- </mapper>
|