<?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.th.demo.mapping.finance.ModPriceLogMapper" >
    <resultMap id="BaseResultMap" type="com.th.demo.model.finance.ModPriceLog" >
        <result column="crt_time" property="crtTime" jdbcType="TIMESTAMP" />
        <result column="crt_user_Id" property="crtUserId" jdbcType="VARCHAR" />
        <result column="out_rcd_id" property="outRcdId" jdbcType="VARCHAR" />
        <result column="plate_no" property="plateNo" jdbcType="VARCHAR" />
        <result column="raw_price" property="rawPrice" jdbcType="DOUBLE" />
        <result column="mod_price" property="modPrice" jdbcType="DOUBLE" />
    </resultMap>
    <select id="select" resultMap="BaseResultMap" >
        select * from t_finance_mod_price_log t
    </select>
    <insert id="writeLog" parameterType="com.th.demo.model.finance.ModPriceLog" >
        insert into t_finance_mod_price_log(crt_time,crt_user_Id,out_rcd_id,plate_no,raw_price,mod_price)
        values (#{crtTime,jdbcType=TIMESTAMP},#{crtUserId,jdbcType=VARCHAR},#{outRcdId,jdbcType=VARCHAR},#{plateNo,jdbcType=VARCHAR},#{rawPrice,jdbcType=DOUBLE}
        ,#{modPrice,jdbcType=DOUBLE})
    </insert>
</mapper>