HttpLogMapper.xml
682 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.example.mapper.log.HttpLogMapper">
<insert id="create" parameterType="com.example.models.log.HttpLog" useGeneratedKeys="true" keyProperty="id">
INSERT INTO t_http_log (
url,
param,
create_at,
restful
)
VALUES (
#{url},
#{param},
#{create_at},
#{restful}
)
</insert>
<update id="update">
update t_http_log set restful = #{restful} where id = #{id}
</update>
</mapper>