CwStutemperaturereocrdMapper.xml 3.72 KB
<?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.sincere.smartSearch.mapper.CwStutemperaturereocrdMapper">
    <resultMap id="BaseResultMap" type="com.sincere.common.dto.smartCampus.CwStutemperaturereocrd">
        <result column="Id" jdbcType="INTEGER" property="id"/>
        <result column="UserId" jdbcType="VARCHAR" property="userid"/>
        <result column="StudentId" jdbcType="INTEGER" property="studentid"/>
        <result column="Name" jdbcType="VARCHAR" property="name"/>
        <result column="ClassId" jdbcType="INTEGER" property="classid"/>
        <result column="ClassName" jdbcType="VARCHAR" property="classname"/>
        <result column="Temperature" jdbcType="DECIMAL" property="temperature"/>
        <result column="Type" jdbcType="INTEGER" property="type"/>
        <result column="SchoolId" jdbcType="INTEGER" property="schoolid"/>
        <result column="Intime" jdbcType="TIMESTAMP" property="intime"/>
    </resultMap>
    <insert id="insert" parameterType="com.sincere.common.dto.smartCampus.CwStutemperaturereocrd">
        insert into CW_StuTemperatureReocrd ( UserId, StudentId,
        Name, ClassId, ClassName,
        Temperature, Type, SchoolId,
        Intime)
        values ( #{userid,jdbcType=VARCHAR}, #{studentid,jdbcType=INTEGER},
        #{name,jdbcType=VARCHAR}, #{classid,jdbcType=INTEGER}, #{classname,jdbcType=VARCHAR},
        #{temperature,jdbcType=DECIMAL}, #{type,jdbcType=INTEGER}, #{schoolid,jdbcType=INTEGER},
        #{intime,jdbcType=TIMESTAMP})
    </insert>
    <insert id="insertSelective" parameterType="com.sincere.common.dto.smartCampus.CwStutemperaturereocrd">
        insert into CW_StuTemperatureReocrd
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">
                Id,
            </if>
            <if test="userid != null">
                UserId,
            </if>
            <if test="studentid != null">
                StudentId,
            </if>
            <if test="name != null">
                Name,
            </if>
            <if test="classid != null">
                ClassId,
            </if>
            <if test="classname != null">
                ClassName,
            </if>
            <if test="temperature != null">
                Temperature,
            </if>
            <if test="type != null">
                Type,
            </if>
            <if test="schoolid != null">
                SchoolId,
            </if>
            <if test="intime != null">
                Intime,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">
                #{id,jdbcType=INTEGER},
            </if>
            <if test="userid != null">
                #{userid,jdbcType=VARCHAR},
            </if>
            <if test="studentid != null">
                #{studentid,jdbcType=INTEGER},
            </if>
            <if test="name != null">
                #{name,jdbcType=VARCHAR},
            </if>
            <if test="classid != null">
                #{classid,jdbcType=INTEGER},
            </if>
            <if test="classname != null">
                #{classname,jdbcType=VARCHAR},
            </if>
            <if test="temperature != null">
                #{temperature,jdbcType=DECIMAL},
            </if>
            <if test="type != null">
                #{type,jdbcType=INTEGER},
            </if>
            <if test="schoolid != null">
                #{schoolid,jdbcType=INTEGER},
            </if>
            <if test="intime != null">
                #{intime,jdbcType=TIMESTAMP},
            </if>
        </trim>
    </insert>
</mapper>