|
- <?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.imitate.common.k8s.mapper.OjEvaDayStatMapper" >
- <resultMap id="BaseResultMap" type="com.imitate.common.k8s.pojo.OjEvaDayStat">
- <id column="id" property="id" jdbcType="BIGINT" />
- <result column="stat_date" property="statDate" jdbcType="INTEGER" />
- <result column="eva_total" property="evaTotal" jdbcType="INTEGER" />
- <result column="eva_fail" property="evaFail" javaType="INTEGER" />
- <result column="eva_fail_ratio" property="evaFailRatio" jdbcType="DOUBLE" />
- <result column="eva_timeout" property="evaTimeout" jdbcType="INTEGER" />
- <result column="eva_timeout_ratio" property="evaTimeoutRatio" jdbcType="DOUBLE" />
- </resultMap>
-
- <sql id="Base_Column_List">
- id, stat_date, eva_total, eva_fail, eva_fail_ratio, eva_timeout, eva_timeout_ratio
- </sql>
- <insert id="insertSelective" useGeneratedKeys="true" keyProperty="id"
- parameterType="com.imitate.common.k8s.pojo.OjEvaDayStat" >
- insert into oj_eva_day_stat
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="statDate != null" >
- stat_date,
- </if>
- <if test="evaTotal != null" >
- eva_total,
- </if>
- <if test="evaFail != null" >
- eva_fail,
- </if>
- <if test="evaFailRatio != null" >
- eva_fail_ratio,
- </if>
- <if test="evaTimeout != null" >
- eva_timeout,
- </if>
- <if test="evaTimeoutRatio != null" >
- eva_timeout_ratio,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=BIGINT},
- </if>
- <if test="statDate != null" >
- #{statDate,jdbcType=INTEGER},
- </if>
- <if test="evaTotal != null" >
- #{evaTotal,jdbcType=INTEGER},
- </if>
- <if test="evaFail != null" >
- #{evaFail,jdbcType=INTEGER},
- </if>
- <if test="evaFailRatio != null" >
- #{evaFailRatio,jdbcType=DOUBLE},
- </if>
- <if test="evaTimeout != null" >
- #{evaTimeout,jdbcType=INTEGER},
- </if>
- <if test="evaTimeoutRatio != null" >
- #{evaTimeoutRatio,jdbcType=DOUBLE},
- </if>
- </trim>
- </insert>
- </mapper>
|