| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?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.yaorong.eai.web.detect.mapper.DetectDetailMapper">
- <resultMap id="BaseResultMap" type="com.yaorong.eai.web.detect.vo.DetectDetail">
- <result column="detect_id" jdbcType="BIGINT" property="detectId"/>
- <result column="topic_start_time" jdbcType="TIMESTAMP" property="topicStartTime"/>
- <result column="topic_end_time" jdbcType="TIMESTAMP" property="topicEndTime"/>
- <result column="user_time" jdbcType="VARCHAR" property="userTime"/>
- <result column="results" jdbcType="INTEGER" property="results"/>
- <result column="topic_main_pic" jdbcType="VARCHAR" property="topicMainPic"/>
- <result column="topic_right_pic" jdbcType="VARCHAR" property="topicRightPic"/>
- <result column="user_chose_pic" jdbcType="VARCHAR" property="userChosePic"/>
- <result column="stage_level" jdbcType="VARCHAR" property="stageLevel"/>
- </resultMap>
- <insert id="insert" parameterType="com.yaorong.eai.web.detect.vo.DetectDetail">
- insert into ea_detect_detail (detect_id, topic_start_time, topic_end_time,
- user_time, results, topic_main_pic,
- topic_right_pic, user_chose_pic)
- values (#{detectId,jdbcType=BIGINT}, #{topicStartTime,jdbcType=TIMESTAMP}, #{topicEndTime,jdbcType=TIMESTAMP},
- #{userTime,jdbcType=TIMESTAMP}, #{results,jdbcType=INTEGER}, #{topicMainPic,jdbcType=VARCHAR},
- #{topicRightPic,jdbcType=VARCHAR}, #{userChosePic,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.yaorong.eai.web.detect.vo.DetectDetail">
- insert into ea_detect_detail
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="detectId != null">
- detect_id,
- </if>
- <if test="topicStartTime != null">
- topic_start_time,
- </if>
- <if test="topicEndTime != null">
- topic_end_time,
- </if>
- <if test="userTime != null">
- user_time,
- </if>
- <if test="results != null">
- results,
- </if>
- <if test="topicMainPic != null">
- topic_main_pic,
- </if>
- <if test="topicRightPic != null">
- topic_right_pic,
- </if>
- <if test="userChosePic != null">
- user_chose_pic,
- </if>
- <if test="stageLevel != null">
- stage_level,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="detectId != null">
- #{detectId,jdbcType=BIGINT},
- </if>
- <if test="topicStartTime != null">
- #{topicStartTime,jdbcType=TIMESTAMP},
- </if>
- <if test="topicEndTime != null">
- #{topicEndTime,jdbcType=TIMESTAMP},
- </if>
- <if test="userTime != null">
- #{userTime,jdbcType=VARCHAR},
- </if>
- <if test="results != null">
- #{results,jdbcType=INTEGER},
- </if>
- <if test="topicMainPic != null">
- #{topicMainPic,jdbcType=VARCHAR},
- </if>
- <if test="topicRightPic != null">
- #{topicRightPic,jdbcType=VARCHAR},
- </if>
- <if test="userChosePic != null">
- #{userChosePic,jdbcType=VARCHAR},
- </if>
- <if test="stageLevel != null">
- #{stageLevel,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- </mapper>
|