UnionCallLogMapper.xml
1.16 KB
<?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.unions.dal.IunionsCallLogDAO">
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionCallLog">
<id column="id" property="id" jdbcType="INTEGER" />
<result column="url" property="url" jdbcType="VARCHAR" />
<result column="params" property="params" jdbcType="VARCHAR" />
<result column="mode" property="mode" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="INTEGER" />
<result column="message" property="message" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List">
id, url, params, mode, status, message, create_time
</sql>
<insert id="insert" parameterType="com.yoho.unions.dal.model.UnionCallLog">
insert into unions_call_log (url, params, mode, status, message, create_time)
values (#{url,jdbcType=VARCHAR}, #{params,jdbcType=VARCHAR}, #{mode,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{message,jdbcType=VARCHAR}, UNIX_TIMESTAMP())
</insert>
</mapper>