DepositCodeMapper.xml 687 Bytes
<?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.yoho.order.dal.DepositCodeMapper">
    <resultMap id="BaseResultMap" type="com.yoho.order.model.DepositCode">
        <id column="id" jdbcType="INTEGER" property="id" />
        <result column="create_time" jdbcType="INTEGER" property="createTime" />
    </resultMap>

    <insert id="insert" keyColumn="id" keyProperty="id" useGeneratedKeys="true" parameterType="com.yoho.order.model.DepositCode">
        insert into deposit_code (create_time)
        values (#{createTime,jdbcType=INTEGER})
    </insert>
</mapper>