|
@@ -5,7 +5,7 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 23 10:03:29 CST 2021.
|
|
|
-->
|
|
-->
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
<result column="banner_url" jdbcType="VARCHAR" property="bannerUrl" />
|
|
<result column="banner_url" jdbcType="VARCHAR" property="bannerUrl" />
|
|
@@ -14,107 +14,21 @@
|
|
|
<result column="display" jdbcType="INTEGER" property="display" />
|
|
<result column="display" jdbcType="INTEGER" property="display" />
|
|
|
<result column="position" jdbcType="INTEGER" property="position" />
|
|
<result column="position" jdbcType="INTEGER" property="position" />
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
+ <result column="jump_url" jdbcType="VARCHAR" property="jumpUrl" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
- <sql id="Example_Where_Clause">
|
|
|
|
|
- <!--
|
|
|
|
|
- WARNING - @mbg.generated
|
|
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
- -->
|
|
|
|
|
- <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">
|
|
|
|
|
- <!--
|
|
|
|
|
- WARNING - @mbg.generated
|
|
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
- -->
|
|
|
|
|
- <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">
|
|
<sql id="Base_Column_List">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 23 10:03:29 CST 2021.
|
|
|
-->
|
|
-->
|
|
|
- id, banner_url, title, sort, display, position, create_time
|
|
|
|
|
|
|
+ id, banner_url, title, sort, display, `position`, create_time, jump_url
|
|
|
</sql>
|
|
</sql>
|
|
|
- <select id="selectByExample" parameterType="com.kede.common.model.BannerDetailsExample" resultMap="BaseResultMap">
|
|
|
|
|
- <!--
|
|
|
|
|
- WARNING - @mbg.generated
|
|
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
- -->
|
|
|
|
|
- select
|
|
|
|
|
- <if test="distinct">
|
|
|
|
|
- distinct
|
|
|
|
|
- </if>
|
|
|
|
|
- <include refid="Base_Column_List" />
|
|
|
|
|
- from banner_details
|
|
|
|
|
- <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 id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 23 10:03:29 CST 2021.
|
|
|
-->
|
|
-->
|
|
|
select
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
@@ -125,40 +39,29 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 23 10:03:29 CST 2021.
|
|
|
-->
|
|
-->
|
|
|
delete from banner_details
|
|
delete from banner_details
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
</delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.kede.common.model.BannerDetailsExample">
|
|
|
|
|
- <!--
|
|
|
|
|
- WARNING - @mbg.generated
|
|
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
- -->
|
|
|
|
|
- delete from banner_details
|
|
|
|
|
- <if test="_parameter != null">
|
|
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
|
|
- </if>
|
|
|
|
|
- </delete>
|
|
|
|
|
<insert id="insert" parameterType="com.kede.common.model.BannerDetails">
|
|
<insert id="insert" parameterType="com.kede.common.model.BannerDetails">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 23 10:03:29 CST 2021.
|
|
|
-->
|
|
-->
|
|
|
insert into banner_details (id, banner_url, title,
|
|
insert into banner_details (id, banner_url, title,
|
|
|
- sort, display, position,
|
|
|
|
|
- create_time)
|
|
|
|
|
|
|
+ sort, display, `position`,
|
|
|
|
|
+ create_time, jump_url)
|
|
|
values (#{id,jdbcType=INTEGER}, #{bannerUrl,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
|
|
values (#{id,jdbcType=INTEGER}, #{bannerUrl,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
|
|
|
#{sort,jdbcType=INTEGER}, #{display,jdbcType=INTEGER}, #{position,jdbcType=INTEGER},
|
|
#{sort,jdbcType=INTEGER}, #{display,jdbcType=INTEGER}, #{position,jdbcType=INTEGER},
|
|
|
- #{createTime,jdbcType=TIMESTAMP})
|
|
|
|
|
|
|
+ #{createTime,jdbcType=TIMESTAMP}, #{jumpUrl,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.kede.common.model.BannerDetails">
|
|
<insert id="insertSelective" parameterType="com.kede.common.model.BannerDetails">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 23 10:03:29 CST 2021.
|
|
|
-->
|
|
-->
|
|
|
insert into banner_details
|
|
insert into banner_details
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -178,11 +81,14 @@
|
|
|
display,
|
|
display,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="position != null">
|
|
<if test="position != null">
|
|
|
- position,
|
|
|
|
|
|
|
+ `position`,
|
|
|
</if>
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time,
|
|
create_time,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="jumpUrl != null">
|
|
|
|
|
+ jump_url,
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -206,76 +112,16 @@
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="jumpUrl != null">
|
|
|
|
|
+ #{jumpUrl,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
- <select id="countByExample" parameterType="com.kede.common.model.BannerDetailsExample" resultType="java.lang.Long">
|
|
|
|
|
- <!--
|
|
|
|
|
- WARNING - @mbg.generated
|
|
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
- -->
|
|
|
|
|
- select count(*) from banner_details
|
|
|
|
|
- <if test="_parameter != null">
|
|
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
|
|
- </if>
|
|
|
|
|
- </select>
|
|
|
|
|
- <update id="updateByExampleSelective" parameterType="map">
|
|
|
|
|
- <!--
|
|
|
|
|
- WARNING - @mbg.generated
|
|
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
- -->
|
|
|
|
|
- update banner_details
|
|
|
|
|
- <set>
|
|
|
|
|
- <if test="record.id != null">
|
|
|
|
|
- id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="record.bannerUrl != null">
|
|
|
|
|
- banner_url = #{record.bannerUrl,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="record.title != null">
|
|
|
|
|
- title = #{record.title,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="record.sort != null">
|
|
|
|
|
- sort = #{record.sort,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="record.display != null">
|
|
|
|
|
- display = #{record.display,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="record.position != null">
|
|
|
|
|
- position = #{record.position,jdbcType=INTEGER},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="record.createTime != null">
|
|
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- </set>
|
|
|
|
|
- <if test="_parameter != null">
|
|
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
- </if>
|
|
|
|
|
- </update>
|
|
|
|
|
- <update id="updateByExample" parameterType="map">
|
|
|
|
|
- <!--
|
|
|
|
|
- WARNING - @mbg.generated
|
|
|
|
|
- This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
- -->
|
|
|
|
|
- update banner_details
|
|
|
|
|
- set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
- banner_url = #{record.bannerUrl,jdbcType=VARCHAR},
|
|
|
|
|
- title = #{record.title,jdbcType=VARCHAR},
|
|
|
|
|
- sort = #{record.sort,jdbcType=INTEGER},
|
|
|
|
|
- display = #{record.display,jdbcType=INTEGER},
|
|
|
|
|
- position = #{record.position,jdbcType=INTEGER},
|
|
|
|
|
- create_time = #{record.createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
- <if test="_parameter != null">
|
|
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
- </if>
|
|
|
|
|
- </update>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.kede.common.model.BannerDetails">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.kede.common.model.BannerDetails">
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 23 10:03:29 CST 2021.
|
|
|
-->
|
|
-->
|
|
|
update banner_details
|
|
update banner_details
|
|
|
<set>
|
|
<set>
|
|
@@ -292,11 +138,14 @@
|
|
|
display = #{display,jdbcType=INTEGER},
|
|
display = #{display,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="position != null">
|
|
<if test="position != null">
|
|
|
- position = #{position,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ `position` = #{position,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
<if test="createTime != null">
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="jumpUrl != null">
|
|
|
|
|
+ jump_url = #{jumpUrl,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
@@ -304,25 +153,28 @@
|
|
|
<!--
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
WARNING - @mbg.generated
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
- This element was generated on Wed Dec 25 14:10:15 CST 2019.
|
|
|
|
|
|
|
+ This element was generated on Tue Mar 23 10:03:29 CST 2021.
|
|
|
-->
|
|
-->
|
|
|
update banner_details
|
|
update banner_details
|
|
|
set banner_url = #{bannerUrl,jdbcType=VARCHAR},
|
|
set banner_url = #{bannerUrl,jdbcType=VARCHAR},
|
|
|
title = #{title,jdbcType=VARCHAR},
|
|
title = #{title,jdbcType=VARCHAR},
|
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
sort = #{sort,jdbcType=INTEGER},
|
|
|
display = #{display,jdbcType=INTEGER},
|
|
display = #{display,jdbcType=INTEGER},
|
|
|
- position = #{position,jdbcType=INTEGER},
|
|
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ `position` = #{position,jdbcType=INTEGER},
|
|
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ jump_url = #{jumpUrl,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
- <select id="selectByid" parameterType="java.lang.Integer" resultType="com.kede.banners.bo.OutBannerDetails" >
|
|
|
|
|
- select id, banner_url bannerUrl, title, sort, display, position, date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert
|
|
|
|
|
|
|
+ <select id="selectByid" parameterType="java.lang.Integer" resultType="com.kede.banners.bo.OutBannerDetails">
|
|
|
|
|
+ select id, banner_url bannerUrl, title, sort, display, position,jump_url jumpUrl,
|
|
|
|
|
+ date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert
|
|
|
from banner_details where id = #{id,jdbcType=INTEGER}
|
|
from banner_details where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="findBannersList" resultType="com.kede.banners.bo.OutBannerDetails">
|
|
<select id="findBannersList" resultType="com.kede.banners.bo.OutBannerDetails">
|
|
|
- select id, banner_url bannerUrl, title, sort, display, position, date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert
|
|
|
|
|
|
|
+ select id, banner_url bannerUrl, title, sort, display, position,jump_url jumpUrl,
|
|
|
|
|
+ date_format(create_time,'%Y-%m-%d %H:%i:%S') as createTimeConvert
|
|
|
from banner_details where 1=1
|
|
from banner_details where 1=1
|
|
|
<if test="b.id!=null">
|
|
<if test="b.id!=null">
|
|
|
and id = #{b.id}
|
|
and id = #{b.id}
|