|
- <?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.ErrorPodInfoMapper" >
- <resultMap id="BaseResultMap" type="com.imitate.common.k8s.pojo.ErrorPodInfo" >
- <id column="id" property="id" jdbcType="BIGINT" />
- <result column="error_time" property="errorTime" jdbcType="TIMESTAMP" />
- <result column="pod_name" property="podName" jdbcType="VARCHAR" />
- <result column="node_Ip" property="nodeIp" jdbcType="VARCHAR" />
- <result column="tpi_ID" property="tpiID" jdbcType="VARCHAR" />
- <result column="build_ID" property="buildID" jdbcType="VARCHAR" />
- <result column="pod_phase" property="podPhase" jdbcType="VARCHAR" />
- <result column="pod_status_reason" property="podStatusReason" jdbcType="VARCHAR" />
- <result column="pod_status_message" property="podStatusMessage" jdbcType="VARCHAR" />
- <result column="pod_condition_type" property="podConditionType" jdbcType="VARCHAR" />
- <result column="pod_condition_status" property="podConditionStatus" jdbcType="VARCHAR" />
- <result column="pod_condition_reason" property="podConditionReason" jdbcType="VARCHAR" />
- <result column="pod_condition_message" property="podConditionMessage" jdbcType="VARCHAR" />
- <result column="container_status_ready" property="containerStatusReady" jdbcType="VARCHAR" />
- <result column="container_status_waiting" property="containerStatusWaiting" jdbcType="VARCHAR" />
- <result column="container_status_waiting_reason" property="containerStatusWaitingReason" jdbcType="VARCHAR" />
- <result column="container_status_waiting_message" property="containerStatusWaitingMessage" jdbcType="VARCHAR" />
- <result column="container_status_terminated" property="containerStatusTerminated" jdbcType="VARCHAR" />
- <result column="container_status_terminated_reason" property="containerStatusTerminatedReason" jdbcType="VARCHAR" />
- <result column="container_status_terminated_message" property="containerStatusTerminatedMessage" jdbcType="VARCHAR" />
- <result column="image_exist" property="imageExist" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, error_time, pod_name, node_Ip, tpi_ID, build_ID, pod_phase, pod_status_reason, pod_status_message, pod_condition_type, pod_condition_status, pod_condition_reason, pod_condition_message, container_status_ready, container_status_waiting, container_status_waiting_reason, container_status_waiting_message, container_status_terminated, container_status_terminated_reason, container_status_terminated_message, image_exist
- </sql>
- <insert id="insert" useGeneratedKeys="true" keyProperty="id"
- parameterType="com.imitate.common.k8s.pojo.ErrorPodInfo" >
- insert into error_pod_info
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="errorTime != null" >
- error_time,
- </if>
- <if test="podName != null" >
- pod_name,
- </if>
- <if test="nodeIp != null" >
- node_Ip,
- </if>
- <if test="tpiID != null" >
- tpi_ID,
- </if>
- <if test="buildID != null" >
- build_ID,
- </if>
- <if test="podPhase != null" >
- pod_phase,
- </if>
- <if test="podStatusReason != null" >
- pod_status_reason,
- </if>
- <if test="podStatusMessage != null" >
- pod_status_message,
- </if>
- <if test="podConditionType != null" >
- pod_condition_type,
- </if>
- <if test="podConditionStatus != null" >
- pod_condition_status,
- </if>
- <if test="podConditionReason != null" >
- pod_condition_reason,
- </if>
- <if test="podConditionMessage != null" >
- pod_condition_message,
- </if>
- <if test="containerStatusReady != null" >
- container_status_ready,
- </if>
- <if test="containerStatusWaiting != null" >
- container_status_waiting,
- </if>
- <if test="containerStatusWaitingReason != null" >
- container_status_waiting_reason,
- </if>
- <if test="containerStatusWaitingMessage != null" >
- container_status_waiting_message,
- </if>
- <if test="containerStatusTerminated != null" >
- container_status_terminated,
- </if>
- <if test="containerStatusTerminatedReason != null" >
- container_status_terminated_reason,
- </if>
- <if test="containerStatusTerminatedMessage != null" >
- container_status_terminated_message,
- </if>
- <if test="imageExist != null" >
- image_exist,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=BIGINT},
- </if>
- <if test="errorTime != null" >
- #{errorTime,jdbcType=TIMESTAMP},
- </if>
- <if test="podName != null" >
- #{podName,jdbcType=VARCHAR},
- </if>
- <if test="nodeIp != null" >
- #{nodeIp,jdbcType=VARCHAR},
- </if>
- <if test="tpiID != null" >
- #{tpiID,jdbcType=VARCHAR},
- </if>
- <if test="buildID != null" >
- #{buildID,jdbcType=VARCHAR},
- </if>
- <if test="podPhase != null" >
- #{podPhase,jdbcType=VARCHAR},
- </if>
- <if test="podStatusReason != null" >
- #{podStatusReason,jdbcType=VARCHAR},
- </if>
- <if test="podStatusMessage != null" >
- #{podStatusMessage,jdbcType=VARCHAR},
- </if>
- <if test="podConditionType != null" >
- #{podConditionType,jdbcType=VARCHAR},
- </if>
- <if test="podConditionStatus != null" >
- #{podConditionStatus,jdbcType=VARCHAR},
- </if>
- <if test="podConditionReason != null" >
- #{podConditionReason,jdbcType=VARCHAR},
- </if>
- <if test="podConditionMessage != null" >
- #{podConditionMessage,jdbcType=VARCHAR},
- </if>
- <if test="containerStatusReady != null" >
- #{containerStatusReady,jdbcType=VARCHAR},
- </if>
- <if test="containerStatusWaiting != null" >
- #{containerStatusWaiting,jdbcType=VARCHAR},
- </if>
- <if test="containerStatusWaitingReason != null" >
- #{containerStatusWaitingReason,jdbcType=VARCHAR},
- </if>
- <if test="containerStatusWaitingMessage != null" >
- #{containerStatusWaitingMessage,jdbcType=VARCHAR},
- </if>
- <if test="containerStatusTerminated != null" >
- #{containerStatusTerminated,jdbcType=VARCHAR},
- </if>
- <if test="containerStatusTerminatedReason != null" >
- #{containerStatusTerminatedReason,jdbcType=VARCHAR},
- </if>
- <if test="containerStatusTerminatedMessage != null" >
- #{containerStatusTerminatedMessage,jdbcType=VARCHAR},
- </if>
- <if test="imageExist != null" >
- #{imageExist,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- </mapper>
|