<?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.mzl.flower.mapper.film.LikeCommentPoMapper">
|
<!-- <resultMap id="BaseResultMap" type="com.liang.bbs.user.persistence.entity.LikeCommentPo">-->
|
<!-- <id column="id" jdbcType="INTEGER" property="id" />-->
|
<!-- <result column="comment_id" jdbcType="INTEGER" property="commentId" />-->
|
<!-- <result column="state" jdbcType="BIT" property="state" />-->
|
<!-- <result column="like_user" jdbcType="BIGINT" property="likeUser" />-->
|
<!-- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />-->
|
<!-- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />-->
|
<!-- </resultMap>-->
|
<!-- <sql id="Example_Where_Clause">-->
|
<!-- <where>-->
|
<!-- <foreach collection="oredCriteria" item="criteria" separator="or">-->
|
<!-- <if test="criteria.valid">-->
|
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
|
<!-- <foreach collection="criteria.criteria" item="criterion">-->
|
<!-- <choose>-->
|
<!-- <when test="criterion.noValue">-->
|
<!-- and ${criterion.condition}-->
|
<!-- </when>-->
|
<!-- <when test="criterion.singleValue">-->
|
<!-- and ${criterion.condition} #{criterion.value}-->
|
<!-- </when>-->
|
<!-- <when test="criterion.betweenValue">-->
|
<!-- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}-->
|
<!-- </when>-->
|
<!-- <when test="criterion.listValue">-->
|
<!-- and ${criterion.condition}-->
|
<!-- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">-->
|
<!-- #{listItem}-->
|
<!-- </foreach>-->
|
<!-- </when>-->
|
<!-- </choose>-->
|
<!-- </foreach>-->
|
<!-- </trim>-->
|
<!-- </if>-->
|
<!-- </foreach>-->
|
<!-- </where>-->
|
<!-- </sql>-->
|
<!-- <sql id="Update_By_Example_Where_Clause">-->
|
<!-- <where>-->
|
<!-- <foreach collection="example.oredCriteria" item="criteria" separator="or">-->
|
<!-- <if test="criteria.valid">-->
|
<!-- <trim prefix="(" prefixOverrides="and" suffix=")">-->
|
<!-- <foreach collection="criteria.criteria" item="criterion">-->
|
<!-- <choose>-->
|
<!-- <when test="criterion.noValue">-->
|
<!-- and ${criterion.condition}-->
|
<!-- </when>-->
|
<!-- <when test="criterion.singleValue">-->
|
<!-- and ${criterion.condition} #{criterion.value}-->
|
<!-- </when>-->
|
<!-- <when test="criterion.betweenValue">-->
|
<!-- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}-->
|
<!-- </when>-->
|
<!-- <when test="criterion.listValue">-->
|
<!-- and ${criterion.condition}-->
|
<!-- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">-->
|
<!-- #{listItem}-->
|
<!-- </foreach>-->
|
<!-- </when>-->
|
<!-- </choose>-->
|
<!-- </foreach>-->
|
<!-- </trim>-->
|
<!-- </if>-->
|
<!-- </foreach>-->
|
<!-- </where>-->
|
<!-- </sql>-->
|
<!-- <sql id="Base_Column_List">-->
|
<!-- id, comment_id, `state`, like_user, create_time, update_time-->
|
<!-- </sql>-->
|
<!-- <select id="selectByExample" parameterType="com.liang.bbs.user.persistence.entity.LikeCommentPoExample" resultMap="BaseResultMap">-->
|
<!-- select-->
|
<!-- <if test="distinct">-->
|
<!-- distinct-->
|
<!-- </if>-->
|
<!-- <include refid="Base_Column_List" />-->
|
<!-- from fs_comment_like-->
|
<!-- <if test="_parameter != null">-->
|
<!-- <include refid="Example_Where_Clause" />-->
|
<!-- </if>-->
|
<!-- <if test="orderByClause != null">-->
|
<!-- order by ${orderByClause}-->
|
<!-- </if>-->
|
<!-- </select>-->
|
<!-- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">-->
|
<!-- select -->
|
<!-- <include refid="Base_Column_List" />-->
|
<!-- from fs_comment_like-->
|
<!-- where id = #{id,jdbcType=INTEGER}-->
|
<!-- </select>-->
|
<!-- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">-->
|
<!-- delete from fs_comment_like-->
|
<!-- where id = #{id,jdbcType=INTEGER}-->
|
<!-- </delete>-->
|
<!-- <delete id="deleteByExample" parameterType="com.liang.bbs.user.persistence.entity.LikeCommentPoExample">-->
|
<!-- delete from fs_comment_like-->
|
<!-- <if test="_parameter != null">-->
|
<!-- <include refid="Example_Where_Clause" />-->
|
<!-- </if>-->
|
<!-- </delete>-->
|
<!-- <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.liang.bbs.user.persistence.entity.LikeCommentPo" useGeneratedKeys="true">-->
|
<!-- insert into fs_comment_like (comment_id, `state`, like_user, -->
|
<!-- create_time, update_time)-->
|
<!-- values (#{commentId,jdbcType=INTEGER}, #{state,jdbcType=BIT}, #{likeUser,jdbcType=BIGINT}, -->
|
<!-- #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})-->
|
<!-- </insert>-->
|
<!-- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.liang.bbs.user.persistence.entity.LikeCommentPo" useGeneratedKeys="true">-->
|
<!-- insert into fs_comment_like-->
|
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
|
<!-- <if test="commentId != null">-->
|
<!-- comment_id,-->
|
<!-- </if>-->
|
<!-- <if test="state != null">-->
|
<!-- `state`,-->
|
<!-- </if>-->
|
<!-- <if test="likeUser != null">-->
|
<!-- like_user,-->
|
<!-- </if>-->
|
<!-- <if test="createTime != null">-->
|
<!-- create_time,-->
|
<!-- </if>-->
|
<!-- <if test="updateTime != null">-->
|
<!-- update_time,-->
|
<!-- </if>-->
|
<!-- </trim>-->
|
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
|
<!-- <if test="commentId != null">-->
|
<!-- #{commentId,jdbcType=INTEGER},-->
|
<!-- </if>-->
|
<!-- <if test="state != null">-->
|
<!-- #{state,jdbcType=BIT},-->
|
<!-- </if>-->
|
<!-- <if test="likeUser != null">-->
|
<!-- #{likeUser,jdbcType=BIGINT},-->
|
<!-- </if>-->
|
<!-- <if test="createTime != null">-->
|
<!-- #{createTime,jdbcType=TIMESTAMP},-->
|
<!-- </if>-->
|
<!-- <if test="updateTime != null">-->
|
<!-- #{updateTime,jdbcType=TIMESTAMP},-->
|
<!-- </if>-->
|
<!-- </trim>-->
|
<!-- </insert>-->
|
<!-- <select id="countByExample" parameterType="com.liang.bbs.user.persistence.entity.LikeCommentPoExample" resultType="java.lang.Long">-->
|
<!-- select count(*) from fs_comment_like-->
|
<!-- <if test="_parameter != null">-->
|
<!-- <include refid="Example_Where_Clause" />-->
|
<!-- </if>-->
|
<!-- </select>-->
|
<!-- <update id="updateByExampleSelective" parameterType="map">-->
|
<!-- update fs_comment_like-->
|
<!-- <set>-->
|
<!-- <if test="record.id != null">-->
|
<!-- id = #{record.id,jdbcType=INTEGER},-->
|
<!-- </if>-->
|
<!-- <if test="record.commentId != null">-->
|
<!-- comment_id = #{record.commentId,jdbcType=INTEGER},-->
|
<!-- </if>-->
|
<!-- <if test="record.state != null">-->
|
<!-- `state` = #{record.state,jdbcType=BIT},-->
|
<!-- </if>-->
|
<!-- <if test="record.likeUser != null">-->
|
<!-- like_user = #{record.likeUser,jdbcType=BIGINT},-->
|
<!-- </if>-->
|
<!-- <if test="record.createTime != null">-->
|
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
|
<!-- </if>-->
|
<!-- <if test="record.updateTime != null">-->
|
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP},-->
|
<!-- </if>-->
|
<!-- </set>-->
|
<!-- <if test="_parameter != null">-->
|
<!-- <include refid="Update_By_Example_Where_Clause" />-->
|
<!-- </if>-->
|
<!-- </update>-->
|
<!-- <update id="updateByExample" parameterType="map">-->
|
<!-- update fs_comment_like-->
|
<!-- set id = #{record.id,jdbcType=INTEGER},-->
|
<!-- comment_id = #{record.commentId,jdbcType=INTEGER},-->
|
<!-- `state` = #{record.state,jdbcType=BIT},-->
|
<!-- like_user = #{record.likeUser,jdbcType=BIGINT},-->
|
<!-- create_time = #{record.createTime,jdbcType=TIMESTAMP},-->
|
<!-- update_time = #{record.updateTime,jdbcType=TIMESTAMP}-->
|
<!-- <if test="_parameter != null">-->
|
<!-- <include refid="Update_By_Example_Where_Clause" />-->
|
<!-- </if>-->
|
<!-- </update>-->
|
<!-- <update id="updateByPrimaryKeySelective" parameterType="com.liang.bbs.user.persistence.entity.LikeCommentPo">-->
|
<!-- update fs_comment_like-->
|
<!-- <set>-->
|
<!-- <if test="commentId != null">-->
|
<!-- comment_id = #{commentId,jdbcType=INTEGER},-->
|
<!-- </if>-->
|
<!-- <if test="state != null">-->
|
<!-- `state` = #{state,jdbcType=BIT},-->
|
<!-- </if>-->
|
<!-- <if test="likeUser != null">-->
|
<!-- like_user = #{likeUser,jdbcType=BIGINT},-->
|
<!-- </if>-->
|
<!-- <if test="createTime != null">-->
|
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
|
<!-- </if>-->
|
<!-- <if test="updateTime != null">-->
|
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP},-->
|
<!-- </if>-->
|
<!-- </set>-->
|
<!-- where id = #{id,jdbcType=INTEGER}-->
|
<!-- </update>-->
|
<!-- <update id="updateByPrimaryKey" parameterType="com.liang.bbs.user.persistence.entity.LikeCommentPo">-->
|
<!-- update fs_comment_like-->
|
<!-- set comment_id = #{commentId,jdbcType=INTEGER},-->
|
<!-- `state` = #{state,jdbcType=BIT},-->
|
<!-- like_user = #{likeUser,jdbcType=BIGINT},-->
|
<!-- create_time = #{createTime,jdbcType=TIMESTAMP},-->
|
<!-- update_time = #{updateTime,jdbcType=TIMESTAMP}-->
|
<!-- where id = #{id,jdbcType=INTEGER}-->
|
<!-- </update>-->
|
</mapper>
|