|
|
@@ -1,7 +1,7 @@
|
|
|
<?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.zheng.cms.mapper.CmsCommentMapper" >
|
|
|
- <resultMap id="BaseResultMap" type="com.zheng.cms.model.CmsComment" >
|
|
|
+<mapper namespace="com.zheng.cms.dao.mapper.CmsCommentMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.zheng.cms.dao.model.CmsComment" >
|
|
|
<id column="comment_id" property="commentId" jdbcType="INTEGER" />
|
|
|
<result column="pid" property="pid" jdbcType="INTEGER" />
|
|
|
<result column="article_id" property="articleId" jdbcType="INTEGER" />
|
|
|
@@ -11,7 +11,7 @@
|
|
|
<result column="agent" property="agent" jdbcType="VARCHAR" />
|
|
|
<result column="ctime" property="ctime" jdbcType="BIGINT" />
|
|
|
</resultMap>
|
|
|
- <resultMap id="ResultMapWithBLOBs" type="com.zheng.cms.model.CmsComment" extends="BaseResultMap" >
|
|
|
+ <resultMap id="ResultMapWithBLOBs" type="com.zheng.cms.dao.model.CmsComment" extends="BaseResultMap" >
|
|
|
<result column="content" property="content" jdbcType="LONGVARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause" >
|
|
|
@@ -78,7 +78,7 @@
|
|
|
<sql id="Blob_Column_List" >
|
|
|
content
|
|
|
</sql>
|
|
|
- <select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.zheng.cms.model.CmsCommentExample" >
|
|
|
+ <select id="selectByExampleWithBLOBs" resultMap="ResultMapWithBLOBs" parameterType="com.zheng.cms.dao.model.CmsCommentExample" >
|
|
|
select
|
|
|
<if test="distinct" >
|
|
|
distinct
|
|
|
@@ -94,7 +94,7 @@
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.cms.model.CmsCommentExample" >
|
|
|
+ <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.zheng.cms.dao.model.CmsCommentExample" >
|
|
|
select
|
|
|
<if test="distinct" >
|
|
|
distinct
|
|
|
@@ -128,13 +128,13 @@
|
|
|
delete from cms_comment
|
|
|
where comment_id = #{commentId,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.zheng.cms.model.CmsCommentExample" >
|
|
|
+ <delete id="deleteByExample" parameterType="com.zheng.cms.dao.model.CmsCommentExample" >
|
|
|
delete from cms_comment
|
|
|
<if test="_parameter != null" >
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
</if>
|
|
|
</delete>
|
|
|
- <insert id="insert" parameterType="com.zheng.cms.model.CmsComment" >
|
|
|
+ <insert id="insert" parameterType="com.zheng.cms.dao.model.CmsComment" >
|
|
|
insert into cms_comment (comment_id, pid, article_id,
|
|
|
user_id, status, ip,
|
|
|
agent, ctime, content
|
|
|
@@ -144,7 +144,7 @@
|
|
|
#{agent,jdbcType=VARCHAR}, #{ctime,jdbcType=BIGINT}, #{content,jdbcType=LONGVARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="com.zheng.cms.model.CmsComment" >
|
|
|
+ <insert id="insertSelective" parameterType="com.zheng.cms.dao.model.CmsComment" >
|
|
|
insert into cms_comment
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="commentId != null" >
|
|
|
@@ -205,7 +205,7 @@
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
- <select id="countByExample" parameterType="com.zheng.cms.model.CmsCommentExample" resultType="java.lang.Integer" >
|
|
|
+ <select id="countByExample" parameterType="com.zheng.cms.dao.model.CmsCommentExample" resultType="java.lang.Integer" >
|
|
|
select count(*) from cms_comment
|
|
|
<if test="_parameter != null" >
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
@@ -275,7 +275,7 @@
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.zheng.cms.model.CmsComment" >
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.zheng.cms.dao.model.CmsComment" >
|
|
|
update cms_comment
|
|
|
<set >
|
|
|
<if test="pid != null" >
|
|
|
@@ -305,7 +305,7 @@
|
|
|
</set>
|
|
|
where comment_id = #{commentId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.zheng.cms.model.CmsComment" >
|
|
|
+ <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.zheng.cms.dao.model.CmsComment" >
|
|
|
update cms_comment
|
|
|
set pid = #{pid,jdbcType=INTEGER},
|
|
|
article_id = #{articleId,jdbcType=INTEGER},
|
|
|
@@ -317,7 +317,7 @@
|
|
|
content = #{content,jdbcType=LONGVARCHAR}
|
|
|
where comment_id = #{commentId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.zheng.cms.model.CmsComment" >
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.zheng.cms.dao.model.CmsComment" >
|
|
|
update cms_comment
|
|
|
set pid = #{pid,jdbcType=INTEGER},
|
|
|
article_id = #{articleId,jdbcType=INTEGER},
|