|
- <?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.EvaDayStatMapper" >
- <resultMap id="BaseResultMap" type="com.imitate.common.k8s.pojo.EvaDayStat">
- <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="pull_slow" property="pullSlow" jdbcType="INTEGER" />
- <result column="pull_fail" property="pullFail" jdbcType="INTEGER" />
- <result column="create_pod_slow" property="createPodSlow" jdbcType="INTEGER" />
- <result column="create_pod_fail" property="createPodFail" jdbcType="INTEGER" />
- <result column="exec_fail" property="execFail" jdbcType="INTEGER" />
- <result column="others_fail" property="othersFail" jdbcType="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, pull_slow, full_fail, create_pod_slow, create_pod_fail, exec_fail, others_fail, eva_fail_ratio, eva_timeout, eva_timeout_ratio
- </sql>
-
-
- <insert id="insert" parameterType="com.imitate.common.k8s.pojo.EvaDayStat" >
- insert into eva_day_stat (id, stat_date, eva_total, pull_slow, pull_fail,
- create_pod_slow, create_pod_fail, exec_fail, others_fail, eva_fail_ratio,
- eva_timeout, eva_timeout_ratio)
- values (#{id,jdbcType=BIGINT}, #{statDate,jdbcType=INTEGER}, #{evaTotal,jdbcType=INTEGER},
- #{pullSlow,jdbcType=INTEGER}, #{pullFail,jdbcType=INTEGER}, #{createPodSlow,jdbcType=INTEGER}, #{createPodFail,jdbcType=INTEGER},
- #{execFail,jdbcType=INTEGER}, #{othersFail,jdbcType=INTEGER}, #{evaFailRatio,jdbcType=DOUBLE},
- #{evaTimeout,jdbcType=INTEGER}, #{evaTimeoutRatio,jdbcType=DOUBLE})
- </insert>
- <insert id="insertSelective" useGeneratedKeys="true" keyProperty="id"
- parameterType="com.imitate.common.k8s.pojo.EvaDayStat" >
- insert into 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="pullSlow != null" >
- pull_slow,
- </if>
- <if test="pullFail != null" >
- pull_fail,
- </if>
- <if test="createPodSlow != null" >
- create_pod_slow,
- </if>
- <if test="createPodFail != null" >
- create_pod_fail,
- </if>
- <if test="execFail != null" >
- exec_fail,
- </if>
- <if test="othersFail != null" >
- others_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="pullSlow != null" >
- #{pullSlow,jdbcType=INTEGER},
- </if>
- <if test="pullFail != null" >
- #{pullFail,jdbcType=INTEGER},
- </if>
- <if test="createPodSlow != null" >
- #{createPodSlow,jdbcType=INTEGER},
- </if>
- <if test="createPodFail != null" >
- #{createPodFail,jdbcType=INTEGER},
- </if>
- <if test="execFail != null" >
- #{execFail,jdbcType=INTEGER},
- </if>
- <if test="othersFail != null" >
- #{othersFail,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>
|