article-update-record-mapper.xml
600 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">
<!-- @author kongmingke -->
<mapper namespace="com.cjs.cms.dao.site.ArticleUpdateRecordDao">
<sql id="record_field">
id, user_id, update_time, article_id, before_update, after_update
</sql>
<insert id="save" parameterType="ArticleUpdateRecordInfo">
insert into article_update_record(user_id, article_id, before_update, after_update, update_time)
values(#{userId}, #{articleId}, #{beforeUpdate}, #{afterUpdate}, now());
</insert>
</mapper>