<?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="life.majiang.community.mapper.CommentExtMapper">
    <resultMap id="BaseResultMap" type="life.majiang.community.model.Comment">
        <!--
          WARNING - @mbg.generated
          This element is automatically generated by MyBatis Generator, do not modify.
          This element was generated on Tue Jun 04 08:06:47 CST 2019.
        -->
        <id column="ID" jdbcType="BIGINT" property="id"/>
        <result column="PARENT_ID" jdbcType="BIGINT" property="parentId"/>
        <result column="TYPE" jdbcType="INTEGER" property="type"/>
        <result column="COMMENTATOR" jdbcType="BIGINT" property="commentator"/>
        <result column="GMT_CREATE" jdbcType="BIGINT" property="gmtCreate"/>
        <result column="GMT_MODIFIED" jdbcType="BIGINT" property="gmtModified"/>
        <result column="LIKE_COUNT" jdbcType="BIGINT" property="likeCount"/>
        <result column="CONTENT" jdbcType="VARCHAR" property="content"/>
        <result column="COMMENT_COUNT" jdbcType="INTEGER" property="commentCount"/>
    </resultMap>
    <update id="incCommentCount" parameterType="life.majiang.community.model.Comment">
    update COMMENT
    set
    COMMENT_COUNT = COMMENT_COUNT + #{commentCount,jdbcType=INTEGER}
    where id = #{id}
    </update>
</mapper>