<?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.ltgk.boat.mapper.DsEnterOutBoatCountryMapper">
    <resultMap id="BaseResultMap" type="com.ltgk.boat.domain.entity.DsEnterOutBoatCountry">
        <!--@mbg.generated-->
        <!--@Table ds_enter_out_boat_country-->
        <result column="id" jdbcType="VARCHAR" property="id"/>
        <result column="boat_id" jdbcType="VARCHAR" property="boatId"/>
        <result column="nationality_id" jdbcType="VARCHAR" property="nationalityId"/>
        <result column="boat_type" jdbcType="VARCHAR" property="boatType"/>
        <result column="update_at" jdbcType="TIMESTAMP" property="updateAt"/>
        <result column="boat_name" jdbcType="VARCHAR" property="boatName"/>
        <result column="id_cord" jdbcType="VARCHAR" property="idCord"/>
        <result column="area_code" jdbcType="VARCHAR" property="areaCode"/>
    </resultMap>
    <sql id="Base_Column_List">
        <!--@mbg.generated-->
        id, boat_id, nationality_id, boat_type, update_at, boat_name, id_cord, area_code
    </sql>
    <insert id="insert" parameterType="com.ltgk.boat.domain.entity.DsEnterOutBoatCountry">
        <!--@mbg.generated-->
        insert into ds_enter_out_boat_country (id, boat_id, nationality_id,
        boat_type, update_at, boat_name,
        id_cord, area_code)
        values (#{id,jdbcType=VARCHAR}, #{boatId,jdbcType=VARCHAR}, #{nationalityId,jdbcType=VARCHAR},
        #{boatType,jdbcType=VARCHAR}, #{updateAt,jdbcType=TIMESTAMP}, #{boatName,jdbcType=VARCHAR},
        #{idCord,jdbcType=VARCHAR}, #{areaCode,jdbcType=VARCHAR})
    </insert>
    <insert id="insertSelective" parameterType="com.ltgk.boat.domain.entity.DsEnterOutBoatCountry">
        <!--@mbg.generated-->
        insert into ds_enter_out_boat_country
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">
                id,
            </if>
            <if test="boatId != null">
                boat_id,
            </if>
            <if test="nationalityId != null">
                nationality_id,
            </if>
            <if test="boatType != null">
                boat_type,
            </if>
            <if test="updateAt != null">
                update_at,
            </if>
            <if test="boatName != null">
                boat_name,
            </if>
            <if test="idCord != null">
                id_cord,
            </if>
            <if test="areaCode != null">
                area_code,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">
                #{id,jdbcType=VARCHAR},
            </if>
            <if test="boatId != null">
                #{boatId,jdbcType=VARCHAR},
            </if>
            <if test="nationalityId != null">
                #{nationalityId,jdbcType=VARCHAR},
            </if>
            <if test="boatType != null">
                #{boatType,jdbcType=VARCHAR},
            </if>
            <if test="updateAt != null">
                #{updateAt,jdbcType=TIMESTAMP},
            </if>
            <if test="boatName != null">
                #{boatName,jdbcType=VARCHAR},
            </if>
            <if test="idCord != null">
                #{idCord,jdbcType=VARCHAR},
            </if>
            <if test="areaCode != null">
                #{areaCode,jdbcType=VARCHAR},
            </if>
        </trim>
    </insert>
</mapper>