|
@@ -1,106 +0,0 @@
|
|
|
-<?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.ruoyi.generator.mapper.community.CommunityArticleImagesMapper">
|
|
|
-
|
|
|
- <resultMap id="BaseResultMap" type="com.ruoyi.generator.domain.Community.CommunityArticleImages">
|
|
|
- <id property="imageId" column="image_id" jdbcType="INTEGER"/>
|
|
|
- <result property="articleId" column="article_id" jdbcType="INTEGER"/>
|
|
|
- <result property="imageUrl" column="image_url" jdbcType="VARCHAR"/>
|
|
|
- <result property="createBy" column="create_by" jdbcType="INTEGER"/>
|
|
|
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
- <result property="updateBy" column="update_by" jdbcType="INTEGER"/>
|
|
|
- <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
- <result property="remark" column="remark" jdbcType="VARCHAR"/>
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <sql id="Base_Column_List">
|
|
|
- image_id,article_id,image_url,
|
|
|
- create_by,create_time,update_by,
|
|
|
- update_time,remark
|
|
|
- </sql>
|
|
|
-
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from community_article_images
|
|
|
- where image_id = #{imageId,jdbcType=INTEGER}
|
|
|
- </select>
|
|
|
-
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
- delete from community_article_images
|
|
|
- where image_id = #{imageId,jdbcType=INTEGER}
|
|
|
- </delete>
|
|
|
- <insert id="insert" keyColumn="image_id" keyProperty="imageId" parameterType="com.ruoyi.generator.domain.Community.CommunityArticleImages" useGeneratedKeys="true">
|
|
|
- insert into community_article_images
|
|
|
- ( image_id,article_id,image_url
|
|
|
- ,create_by,create_time,update_by
|
|
|
- ,update_time,remark)
|
|
|
- values (#{imageId,jdbcType=INTEGER},#{articleId,jdbcType=INTEGER},#{imageUrl,jdbcType=VARCHAR}
|
|
|
- ,#{createBy,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=INTEGER}
|
|
|
- ,#{updateTime,jdbcType=TIMESTAMP},#{remark,jdbcType=VARCHAR})
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" keyColumn="image_id" keyProperty="imageId" parameterType="com.ruoyi.generator.domain.Community.CommunityArticleImages" useGeneratedKeys="true">
|
|
|
- insert into community_article_images
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="imageId != null">image_id,</if>
|
|
|
- <if test="articleId != null">article_id,</if>
|
|
|
- <if test="imageUrl != null">image_url,</if>
|
|
|
- <if test="createBy != null">create_by,</if>
|
|
|
- <if test="createTime != null">create_time,</if>
|
|
|
- <if test="updateBy != null">update_by,</if>
|
|
|
- <if test="updateTime != null">update_time,</if>
|
|
|
- <if test="remark != null">remark,</if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="imageId != null">#{imageId,jdbcType=INTEGER},</if>
|
|
|
- <if test="articleId != null">#{articleId,jdbcType=INTEGER},</if>
|
|
|
- <if test="imageUrl != null">#{imageUrl,jdbcType=VARCHAR},</if>
|
|
|
- <if test="createBy != null">#{createBy,jdbcType=INTEGER},</if>
|
|
|
- <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if>
|
|
|
- <if test="updateBy != null">#{updateBy,jdbcType=INTEGER},</if>
|
|
|
- <if test="updateTime != null">#{updateTime,jdbcType=TIMESTAMP},</if>
|
|
|
- <if test="remark != null">#{remark,jdbcType=VARCHAR},</if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.ruoyi.generator.domain.Community.CommunityArticleImages">
|
|
|
- update community_article_images
|
|
|
- <set>
|
|
|
- <if test="articleId != null">
|
|
|
- article_id = #{articleId,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="imageUrl != null">
|
|
|
- image_url = #{imageUrl,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="createBy != null">
|
|
|
- create_by = #{createBy,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="updateBy != null">
|
|
|
- update_by = #{updateBy,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="remark != null">
|
|
|
- remark = #{remark,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where image_id = #{imageId,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.ruoyi.generator.domain.Community.CommunityArticleImages">
|
|
|
- update community_article_images
|
|
|
- set
|
|
|
- article_id = #{articleId,jdbcType=INTEGER},
|
|
|
- image_url = #{imageUrl,jdbcType=VARCHAR},
|
|
|
- create_by = #{createBy,jdbcType=INTEGER},
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- update_by = #{updateBy,jdbcType=INTEGER},
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- remark = #{remark,jdbcType=VARCHAR}
|
|
|
- where image_id = #{imageId,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
-</mapper>
|