|
@@ -1,229 +1,303 @@
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?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.izouma.awesomeadmin.dao.BannerInfoMapper" >
|
|
|
|
|
- <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.BannerInfo" >
|
|
|
|
|
- <id column="id" property="id" jdbcType="INTEGER" />
|
|
|
|
|
- <result column="del_flag" property="delFlag" jdbcType="CHAR" />
|
|
|
|
|
- <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
- <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
|
|
|
|
|
- <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
|
|
|
|
|
- <result column="create_user" property="createUser" jdbcType="VARCHAR" />
|
|
|
|
|
- <result column="location" property="location" jdbcType="VARCHAR" />
|
|
|
|
|
- <result column="title" property="title" jdbcType="VARCHAR" />
|
|
|
|
|
- <result column="subtitle" property="subtitle" jdbcType="VARCHAR" />
|
|
|
|
|
- <result column="url" property="url" jdbcType="VARCHAR" />
|
|
|
|
|
- <result column="image_url" property="imageUrl" jdbcType="VARCHAR" />
|
|
|
|
|
- <result column="rank" property="rank" jdbcType="INTEGER" />
|
|
|
|
|
- </resultMap>
|
|
|
|
|
- <sql id="Base_Column_List" >
|
|
|
|
|
- <trim suffixOverrides="," >
|
|
|
|
|
- id,
|
|
|
|
|
-
|
|
|
|
|
- del_flag,
|
|
|
|
|
-
|
|
|
|
|
- update_time,
|
|
|
|
|
-
|
|
|
|
|
- update_user,
|
|
|
|
|
-
|
|
|
|
|
- create_time,
|
|
|
|
|
-
|
|
|
|
|
- create_user,
|
|
|
|
|
-
|
|
|
|
|
- location,
|
|
|
|
|
-
|
|
|
|
|
- title,
|
|
|
|
|
-
|
|
|
|
|
- subtitle,
|
|
|
|
|
-
|
|
|
|
|
- url,
|
|
|
|
|
-
|
|
|
|
|
- image_url,
|
|
|
|
|
-
|
|
|
|
|
- rank,
|
|
|
|
|
-
|
|
|
|
|
- </trim>
|
|
|
|
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
+<mapper namespace="com.izouma.awesomeadmin.dao.BannerInfoMapper">
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.BannerInfo">
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ <id column="id" property="id" jdbcType="INTEGER"/>
|
|
|
|
|
+ <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
|
|
|
|
|
+ <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
|
|
|
|
+ <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
|
|
|
|
|
+ <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="user_id" property="userId" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="mini_id" property="miniId" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="store_id" property="storeId" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="status_flag" property="statusFlag" jdbcType="INTEGER"/>
|
|
|
|
|
+ <result column="type_flag" property="typeFlag" jdbcType="INTEGER"/>
|
|
|
|
|
+ <result column="title" property="title" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="subtitle" property="subtitle" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="image_url" property="imageUrl" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="path_url" property="pathUrl" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="remark" property="remark" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result column="rank" property="rank" jdbcType="INTEGER"/>
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
+
|
|
|
|
|
+ <sql id="Base_Column_List">
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ id, del_flag, update_time, update_user, create_time, create_user, user_id, mini_id, store_id, status_flag, type_flag, title, subtitle, image_url, path_url, remark, rank <!--generatedEnd-->
|
|
|
</sql>
|
|
</sql>
|
|
|
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
|
|
- select
|
|
|
|
|
- <include refid="Base_Column_List" />
|
|
|
|
|
- from banner_info
|
|
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
|
|
+ FROM banner_info
|
|
|
|
|
+ WHERE id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
|
|
- delete from banner_info
|
|
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
|
|
+ DELETE
|
|
|
|
|
+ FROM banner_info
|
|
|
|
|
+ WHERE id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
</delete>
|
|
|
|
|
+
|
|
|
<insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.BannerInfo" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.BannerInfo" useGeneratedKeys="true" keyProperty="id">
|
|
|
- insert into banner_info
|
|
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
|
|
- <if test="id!= null" >
|
|
|
|
|
|
|
+ INSERT INTO banner_info
|
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ <if test="id!= null">
|
|
|
id,
|
|
id,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="delFlag!= null" >
|
|
|
|
|
|
|
+ <if test="delFlag!= null">
|
|
|
del_flag,
|
|
del_flag,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateTime!= null" >
|
|
|
|
|
|
|
+ <if test="updateTime!= null">
|
|
|
update_time,
|
|
update_time,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateUser!= null" >
|
|
|
|
|
|
|
+ <if test="updateUser!= null">
|
|
|
update_user,
|
|
update_user,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createTime!= null" >
|
|
|
|
|
|
|
+ <if test="createTime!= null">
|
|
|
create_time,
|
|
create_time,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createUser!= null" >
|
|
|
|
|
|
|
+ <if test="createUser!= null">
|
|
|
create_user,
|
|
create_user,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="location!= null" >
|
|
|
|
|
- location,
|
|
|
|
|
|
|
+ <if test="userId!= null">
|
|
|
|
|
+ user_id,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="miniId!= null">
|
|
|
|
|
+ mini_id,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="storeId!= null">
|
|
|
|
|
+ store_id,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="statusFlag!= null">
|
|
|
|
|
+ status_flag,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="title!= null" >
|
|
|
|
|
|
|
+ <if test="typeFlag!= null">
|
|
|
|
|
+ type_flag,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="title!= null">
|
|
|
title,
|
|
title,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="subtitle!= null" >
|
|
|
|
|
|
|
+ <if test="subtitle!= null">
|
|
|
subtitle,
|
|
subtitle,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="url!= null" >
|
|
|
|
|
- url,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="imageUrl!= null" >
|
|
|
|
|
|
|
+ <if test="imageUrl!= null">
|
|
|
image_url,
|
|
image_url,
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="rank!= null" >
|
|
|
|
|
|
|
+ <if test="pathUrl!= null">
|
|
|
|
|
+ path_url,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="remark!= null">
|
|
|
|
|
+ remark,
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="rank!= null">
|
|
|
rank,
|
|
rank,
|
|
|
</if>
|
|
</if>
|
|
|
- </trim>
|
|
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
|
|
- <if test="id != null" >
|
|
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ <if test="id != null">
|
|
|
#{id,jdbcType=INTEGER},
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="delFlag != null" >
|
|
|
|
|
|
|
+ <if test="delFlag != null">
|
|
|
#{delFlag,jdbcType=CHAR},
|
|
#{delFlag,jdbcType=CHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateTime != null" >
|
|
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateUser != null" >
|
|
|
|
|
|
|
+ <if test="updateUser != null">
|
|
|
#{updateUser,jdbcType=VARCHAR},
|
|
#{updateUser,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createTime != null" >
|
|
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createUser != null" >
|
|
|
|
|
|
|
+ <if test="createUser != null">
|
|
|
#{createUser,jdbcType=VARCHAR},
|
|
#{createUser,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="location != null" >
|
|
|
|
|
- #{location,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="userId != null">
|
|
|
|
|
+ #{userId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="miniId != null">
|
|
|
|
|
+ #{miniId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="storeId != null">
|
|
|
|
|
+ #{storeId,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="statusFlag != null">
|
|
|
|
|
+ #{statusFlag,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="title != null" >
|
|
|
|
|
|
|
+ <if test="typeFlag != null">
|
|
|
|
|
+ #{typeFlag,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="title != null">
|
|
|
#{title,jdbcType=VARCHAR},
|
|
#{title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="subtitle != null" >
|
|
|
|
|
|
|
+ <if test="subtitle != null">
|
|
|
#{subtitle,jdbcType=VARCHAR},
|
|
#{subtitle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="url != null" >
|
|
|
|
|
- #{url,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="imageUrl != null" >
|
|
|
|
|
|
|
+ <if test="imageUrl != null">
|
|
|
#{imageUrl,jdbcType=VARCHAR},
|
|
#{imageUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="rank != null" >
|
|
|
|
|
|
|
+ <if test="pathUrl != null">
|
|
|
|
|
+ #{pathUrl,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="remark != null">
|
|
|
|
|
+ #{remark,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="rank != null">
|
|
|
#{rank,jdbcType=INTEGER},
|
|
#{rank,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- </trim>
|
|
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
|
|
+ </trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.BannerInfo" >
|
|
|
|
|
- update banner_info
|
|
|
|
|
- <set >
|
|
|
|
|
- <if test="id != null" >
|
|
|
|
|
- id= #{id,jdbcType=INTEGER},
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.BannerInfo">
|
|
|
|
|
+ UPDATE banner_info
|
|
|
|
|
+ <set>
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ <if test="id != null">
|
|
|
|
|
+ id= #{id,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="delFlag != null">
|
|
|
|
|
+ del_flag= #{delFlag,jdbcType=CHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ update_time= #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateUser != null">
|
|
|
|
|
+ update_user= #{updateUser,jdbcType=VARCHAR},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ create_time= #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createUser != null">
|
|
|
|
|
+ create_user= #{createUser,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="delFlag != null" >
|
|
|
|
|
- del_flag= #{delFlag,jdbcType=CHAR},
|
|
|
|
|
|
|
+ <if test="userId != null">
|
|
|
|
|
+ user_id= #{userId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateTime != null" >
|
|
|
|
|
- update_time= #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ <if test="miniId != null">
|
|
|
|
|
+ mini_id= #{miniId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateUser != null" >
|
|
|
|
|
- update_user= #{updateUser,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="storeId != null">
|
|
|
|
|
+ store_id= #{storeId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createTime != null" >
|
|
|
|
|
- create_time= #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
+ <if test="statusFlag != null">
|
|
|
|
|
+ status_flag= #{statusFlag,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createUser != null" >
|
|
|
|
|
- create_user= #{createUser,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="typeFlag != null">
|
|
|
|
|
+ type_flag= #{typeFlag,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="location != null" >
|
|
|
|
|
- location= #{location,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="title != null">
|
|
|
|
|
+ title= #{title,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="title != null" >
|
|
|
|
|
- title= #{title,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="subtitle != null">
|
|
|
|
|
+ subtitle= #{subtitle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="subtitle != null" >
|
|
|
|
|
- subtitle= #{subtitle,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="imageUrl != null">
|
|
|
|
|
+ image_url= #{imageUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="url != null" >
|
|
|
|
|
- url= #{url,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="pathUrl != null">
|
|
|
|
|
+ path_url= #{pathUrl,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="imageUrl != null" >
|
|
|
|
|
- image_url= #{imageUrl,jdbcType=VARCHAR},
|
|
|
|
|
|
|
+ <if test="remark != null">
|
|
|
|
|
+ remark= #{remark,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="rank != null" >
|
|
|
|
|
- rank= #{rank,jdbcType=INTEGER},
|
|
|
|
|
|
|
+ <if test="rank != null">
|
|
|
|
|
+ rank= #{rank,jdbcType=INTEGER},
|
|
|
</if>
|
|
</if>
|
|
|
- </set>
|
|
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
|
|
+ </set>
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
|
|
+ id = #{id,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="idStr != null and !"".equals(idStr)">
|
|
|
|
|
+ id IN (${idStr})
|
|
|
|
|
+ </if>
|
|
|
</update>
|
|
</update>
|
|
|
|
|
+
|
|
|
<select id="queryBannerInfoByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.BannerInfo">
|
|
<select id="queryBannerInfoByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.BannerInfo">
|
|
|
- select <include refid="Base_Column_List"/> from banner_info
|
|
|
|
|
|
|
+ SELECT <include refid="Base_Column_List"/> FROM banner_info
|
|
|
<where>
|
|
<where>
|
|
|
- and del_flag = 'N'
|
|
|
|
|
- <if test="record.id != null and !"".equals(record.id)">
|
|
|
|
|
- and id = #{record.id}
|
|
|
|
|
|
|
+ AND del_flag = 'N'
|
|
|
|
|
+ <if test="record.idStr != null and !"".equals(record.idStr)">
|
|
|
|
|
+ AND id IN (${record.idStr})
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ <if test="record.id != null and !"".equals(record.id)">
|
|
|
|
|
+ AND id = #{record.id}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.delFlag != null and !"".equals(record.delFlag)">
|
|
|
|
|
+ AND del_flag = #{record.delFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.updateTime != null and !"".equals(record.updateTime)">
|
|
|
|
|
+ AND update_time = #{record.updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.updateUser != null and !"".equals(record.updateUser)">
|
|
|
|
|
+ AND update_user = #{record.updateUser}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.delFlag != null and !"".equals(record.delFlag)">
|
|
|
|
|
- and del_flag = #{record.delFlag}
|
|
|
|
|
|
|
+ <if test="record.createTime != null and !"".equals(record.createTime)">
|
|
|
|
|
+ AND create_time = #{record.createTime}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.updateTime != null and !"".equals(record.updateTime)">
|
|
|
|
|
- and update_time = #{record.updateTime}
|
|
|
|
|
|
|
+ <if test="record.createUser != null and !"".equals(record.createUser)">
|
|
|
|
|
+ AND create_user = #{record.createUser}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.updateUser != null and !"".equals(record.updateUser)">
|
|
|
|
|
- and update_user = #{record.updateUser}
|
|
|
|
|
|
|
+ <if test="record.userId != null and !"".equals(record.userId)">
|
|
|
|
|
+ AND user_id = #{record.userId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.createTime != null and !"".equals(record.createTime)">
|
|
|
|
|
- and create_time = #{record.createTime}
|
|
|
|
|
|
|
+ <if test="record.miniId != null and !"".equals(record.miniId)">
|
|
|
|
|
+ AND mini_id = #{record.miniId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.createUser != null and !"".equals(record.createUser)">
|
|
|
|
|
- and create_user = #{record.createUser}
|
|
|
|
|
|
|
+ <if test="record.storeId != null and !"".equals(record.storeId)">
|
|
|
|
|
+ AND store_id = #{record.storeId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.location != null and !"".equals(record.location)">
|
|
|
|
|
- and location = #{record.location}
|
|
|
|
|
|
|
+ <if test="record.statusFlag != null and !"".equals(record.statusFlag)">
|
|
|
|
|
+ AND status_flag = #{record.statusFlag}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.title != null and !"".equals(record.title)">
|
|
|
|
|
- and title = #{record.title}
|
|
|
|
|
|
|
+ <if test="record.typeFlag != null and !"".equals(record.typeFlag)">
|
|
|
|
|
+ AND type_flag = #{record.typeFlag}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.subtitle != null and !"".equals(record.subtitle)">
|
|
|
|
|
- and subtitle = #{record.subtitle}
|
|
|
|
|
|
|
+ <if test="record.title != null and !"".equals(record.title)">
|
|
|
|
|
+ AND title = #{record.title}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.url != null and !"".equals(record.url)">
|
|
|
|
|
- and url = #{record.url}
|
|
|
|
|
|
|
+ <if test="record.subtitle != null and !"".equals(record.subtitle)">
|
|
|
|
|
+ AND subtitle = #{record.subtitle}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.imageUrl != null and !"".equals(record.imageUrl)">
|
|
|
|
|
- and image_url = #{record.imageUrl}
|
|
|
|
|
|
|
+ <if test="record.imageUrl != null and !"".equals(record.imageUrl)">
|
|
|
|
|
+ AND image_url = #{record.imageUrl}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.rank != null and !"".equals(record.rank)">
|
|
|
|
|
- and rank = #{record.rank}
|
|
|
|
|
|
|
+ <if test="record.pathUrl != null and !"".equals(record.pathUrl)">
|
|
|
|
|
+ AND path_url = #{record.pathUrl}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.remark != null and !"".equals(record.remark)">
|
|
|
|
|
+ AND remark = #{record.remark}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="record.rank != null and !"".equals(record.rank)">
|
|
|
|
|
+ AND rank = #{record.rank}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
|
|
+ <if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
|
|
+ <trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ OR user_id LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR mini_id LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR store_id LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR status_flag LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR type_flag LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR title LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR subtitle LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR image_url LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR path_url LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR remark LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ OR rank LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
|
|
+ </trim>
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
|
|
- <trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
|
|
|
- OR location LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
- OR title LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
- OR subtitle LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
- OR url LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
- OR image_url LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
- OR rank LIKE concat('%',#{record.searchKey},'%')
|
|
|
|
|
- </trim>
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
|
|
|
<if test="record.advancedQuery != null and !"".equals(record.advancedQuery)">
|
|
<if test="record.advancedQuery != null and !"".equals(record.advancedQuery)">
|
|
|
<foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
|
|
<foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
|
|
@@ -233,11 +307,9 @@
|
|
|
<if test="detailIndex == 3">
|
|
<if test="detailIndex == 3">
|
|
|
concat('%',#{itemDetail},'%')
|
|
concat('%',#{itemDetail},'%')
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
<if test="detailIndex < 3">
|
|
<if test="detailIndex < 3">
|
|
|
${itemDetail}
|
|
${itemDetail}
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</when>
|
|
</when>
|
|
|
<otherwise>
|
|
<otherwise>
|
|
@@ -245,27 +317,17 @@
|
|
|
<if test="detailIndex == 3">
|
|
<if test="detailIndex == 3">
|
|
|
#{itemDetail}
|
|
#{itemDetail}
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
<if test="detailIndex < 3">
|
|
<if test="detailIndex < 3">
|
|
|
${itemDetail}
|
|
${itemDetail}
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</otherwise>
|
|
</otherwise>
|
|
|
</choose>
|
|
</choose>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</foreach>
|
|
</foreach>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
</where>
|
|
</where>
|
|
|
- order by
|
|
|
|
|
-
|
|
|
|
|
|
|
+ ORDER BY
|
|
|
<if test="record.orderByStr != null and !"".equals(record.orderByStr)">
|
|
<if test="record.orderByStr != null and !"".equals(record.orderByStr)">
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
|
<foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
|
|
<foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
|
|
|
<foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
<foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
@@ -275,98 +337,115 @@
|
|
|
</trim>
|
|
</trim>
|
|
|
,
|
|
,
|
|
|
</if>
|
|
</if>
|
|
|
- location , rank desc, id desc
|
|
|
|
|
|
|
+ id DESC
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
<select id="queryAllBannerInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.BannerInfo">
|
|
<select id="queryAllBannerInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.BannerInfo">
|
|
|
- select <include refid="Base_Column_List"/> from banner_info
|
|
|
|
|
|
|
+ SELECT <include refid="Base_Column_List"/> FROM banner_info
|
|
|
<where>
|
|
<where>
|
|
|
- and del_flag = 'N'
|
|
|
|
|
- <if test="id != null and !"".equals(id)">
|
|
|
|
|
- and id = #{id}
|
|
|
|
|
|
|
+ AND del_flag = 'N'
|
|
|
|
|
+ <if test="idStr != null and !"".equals(idStr)">
|
|
|
|
|
+ AND id IN (${idStr})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
|
|
- and del_flag = #{delFlag}
|
|
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
|
|
+ AND id = #{id}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
|
|
- and update_time = #{updateTime}
|
|
|
|
|
|
|
+ <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
|
|
+ AND del_flag = #{delFlag}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
|
|
- and update_user = #{updateUser}
|
|
|
|
|
|
|
+ <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
|
|
+ AND update_time = #{updateTime}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createTime != null and !"".equals(createTime)">
|
|
|
|
|
- and create_time = #{createTime}
|
|
|
|
|
|
|
+ <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
|
|
+ AND update_user = #{updateUser}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createUser != null and !"".equals(createUser)">
|
|
|
|
|
- and create_user = #{createUser}
|
|
|
|
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
|
|
+ AND create_time = #{createTime}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="location != null and !"".equals(location)">
|
|
|
|
|
- and location = #{location}
|
|
|
|
|
|
|
+ <if test="createUser != null and !"".equals(createUser)">
|
|
|
|
|
+ AND create_user = #{createUser}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="title != null and !"".equals(title)">
|
|
|
|
|
- and title = #{title}
|
|
|
|
|
|
|
+ <if test="userId != null and !"".equals(userId)">
|
|
|
|
|
+ AND user_id = #{userId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="subtitle != null and !"".equals(subtitle)">
|
|
|
|
|
- and subtitle = #{subtitle}
|
|
|
|
|
|
|
+ <if test="miniId != null and !"".equals(miniId)">
|
|
|
|
|
+ AND mini_id = #{miniId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="url != null and !"".equals(url)">
|
|
|
|
|
- and url = #{url}
|
|
|
|
|
|
|
+ <if test="storeId != null and !"".equals(storeId)">
|
|
|
|
|
+ AND store_id = #{storeId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="imageUrl != null and !"".equals(imageUrl)">
|
|
|
|
|
- and image_url = #{imageUrl}
|
|
|
|
|
|
|
+ <if test="statusFlag != null and !"".equals(statusFlag)">
|
|
|
|
|
+ AND status_flag = #{statusFlag}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="rank != null and !"".equals(rank)">
|
|
|
|
|
- and rank = #{rank}
|
|
|
|
|
|
|
+ <if test="typeFlag != null and !"".equals(typeFlag)">
|
|
|
|
|
+ AND type_flag = #{typeFlag}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="searchKey != null and !"".equals(searchKey)">
|
|
|
|
|
- <trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
|
|
|
- OR location LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
- OR title LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
- OR subtitle LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
- OR url LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
- OR image_url LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
- OR rank LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
- </trim>
|
|
|
|
|
|
|
+ <if test="title != null and !"".equals(title)">
|
|
|
|
|
+ AND title = #{title}
|
|
|
</if>
|
|
</if>
|
|
|
-<if test="advancedQuery != null and !"".equals(advancedQuery)">
|
|
|
|
|
- <foreach item="item" index="index" collection="advancedQuery.split('_;')">
|
|
|
|
|
- <choose>
|
|
|
|
|
- <when test="item.indexOf('like') != -1">
|
|
|
|
|
- <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
- <if test="detailIndex == 3">
|
|
|
|
|
- concat('%',#{itemDetail},'%')
|
|
|
|
|
- </if>
|
|
|
|
|
-
|
|
|
|
|
- <if test="detailIndex < 3">
|
|
|
|
|
- ${itemDetail}
|
|
|
|
|
- </if>
|
|
|
|
|
-
|
|
|
|
|
- </foreach>
|
|
|
|
|
- </when>
|
|
|
|
|
- <otherwise>
|
|
|
|
|
- <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
- <if test="detailIndex == 3">
|
|
|
|
|
- #{itemDetail}
|
|
|
|
|
- </if>
|
|
|
|
|
-
|
|
|
|
|
- <if test="detailIndex < 3">
|
|
|
|
|
- ${itemDetail}
|
|
|
|
|
- </if>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <if test="subtitle != null and !"".equals(subtitle)">
|
|
|
|
|
+ AND subtitle = #{subtitle}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="imageUrl != null and !"".equals(imageUrl)">
|
|
|
|
|
+ AND image_url = #{imageUrl}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="pathUrl != null and !"".equals(pathUrl)">
|
|
|
|
|
+ AND path_url = #{pathUrl}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="remark != null and !"".equals(remark)">
|
|
|
|
|
+ AND remark = #{remark}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="rank != null and !"".equals(rank)">
|
|
|
|
|
+ AND rank = #{rank}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
|
|
+ <if test="searchKey != null and !"".equals(searchKey)">
|
|
|
|
|
+ <trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ OR user_id LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR mini_id LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR store_id LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR status_flag LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR type_flag LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR title LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR subtitle LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR image_url LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR path_url LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR remark LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ OR rank LIKE concat('%',#{searchKey},'%')
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="advancedQuery != null and !"".equals(advancedQuery)">
|
|
|
|
|
+ <foreach item="item" index="index" collection="advancedQuery.split('_;')">
|
|
|
|
|
+ <choose>
|
|
|
|
|
+ <when test="item.indexOf('like') != -1">
|
|
|
|
|
+ <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
+ <if test="detailIndex == 3">
|
|
|
|
|
+ concat('%',#{itemDetail},'%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="detailIndex < 3">
|
|
|
|
|
+ ${itemDetail}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </when>
|
|
|
|
|
+ <otherwise>
|
|
|
|
|
+ <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
|
|
+ <if test="detailIndex == 3">
|
|
|
|
|
+ #{itemDetail}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="detailIndex < 3">
|
|
|
|
|
+ ${itemDetail}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </otherwise>
|
|
|
|
|
+ </choose>
|
|
|
</foreach>
|
|
</foreach>
|
|
|
- </otherwise>
|
|
|
|
|
- </choose>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- </foreach>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-</if>
|
|
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
- order by
|
|
|
|
|
-
|
|
|
|
|
|
|
+ ORDER BY
|
|
|
<if test="orderByStr != null and !"".equals(orderByStr)">
|
|
<if test="orderByStr != null and !"".equals(orderByStr)">
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<trim suffixOverrides=",">
|
|
<trim suffixOverrides=",">
|
|
|
<foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
|
|
<foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
|
|
|
<foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
<foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
@@ -376,65 +455,91 @@
|
|
|
</trim>
|
|
</trim>
|
|
|
,
|
|
,
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
- location , rank desc, id desc
|
|
|
|
|
|
|
+ id DESC
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
<select id="queryBannerInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.BannerInfo">
|
|
<select id="queryBannerInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.BannerInfo">
|
|
|
- select <include refid="Base_Column_List"/> from banner_info
|
|
|
|
|
|
|
+ SELECT <include refid="Base_Column_List"/> FROM banner_info
|
|
|
<where>
|
|
<where>
|
|
|
- and del_flag = 'N'
|
|
|
|
|
- <if test="id != null and !"".equals(id)">
|
|
|
|
|
- and id = #{id}
|
|
|
|
|
|
|
+ AND del_flag = 'N'
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
|
|
+ AND id = #{id}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
|
|
+ AND del_flag = #{delFlag}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
|
|
+ AND update_time = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
|
|
+ AND update_user = #{updateUser}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
|
|
+ AND create_time = #{createTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createUser != null and !"".equals(createUser)">
|
|
|
|
|
+ AND create_user = #{createUser}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
|
|
- and del_flag = #{delFlag}
|
|
|
|
|
|
|
+ <if test="userId != null and !"".equals(userId)">
|
|
|
|
|
+ AND user_id = #{userId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
|
|
- and update_time = #{updateTime}
|
|
|
|
|
|
|
+ <if test="miniId != null and !"".equals(miniId)">
|
|
|
|
|
+ AND mini_id = #{miniId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
|
|
- and update_user = #{updateUser}
|
|
|
|
|
|
|
+ <if test="storeId != null and !"".equals(storeId)">
|
|
|
|
|
+ AND store_id = #{storeId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createTime != null and !"".equals(createTime)">
|
|
|
|
|
- and create_time = #{createTime}
|
|
|
|
|
|
|
+ <if test="statusFlag != null and !"".equals(statusFlag)">
|
|
|
|
|
+ AND status_flag = #{statusFlag}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="createUser != null and !"".equals(createUser)">
|
|
|
|
|
- and create_user = #{createUser}
|
|
|
|
|
|
|
+ <if test="typeFlag != null and !"".equals(typeFlag)">
|
|
|
|
|
+ AND type_flag = #{typeFlag}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="location != null and !"".equals(location)">
|
|
|
|
|
- and location = #{location}
|
|
|
|
|
|
|
+ <if test="title != null and !"".equals(title)">
|
|
|
|
|
+ AND title = #{title}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="title != null and !"".equals(title)">
|
|
|
|
|
- and title = #{title}
|
|
|
|
|
|
|
+ <if test="subtitle != null and !"".equals(subtitle)">
|
|
|
|
|
+ AND subtitle = #{subtitle}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="subtitle != null and !"".equals(subtitle)">
|
|
|
|
|
- and subtitle = #{subtitle}
|
|
|
|
|
|
|
+ <if test="imageUrl != null and !"".equals(imageUrl)">
|
|
|
|
|
+ AND image_url = #{imageUrl}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="url != null and !"".equals(url)">
|
|
|
|
|
- and url = #{url}
|
|
|
|
|
|
|
+ <if test="pathUrl != null and !"".equals(pathUrl)">
|
|
|
|
|
+ AND path_url = #{pathUrl}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="imageUrl != null and !"".equals(imageUrl)">
|
|
|
|
|
- and image_url = #{imageUrl}
|
|
|
|
|
|
|
+ <if test="remark != null and !"".equals(remark)">
|
|
|
|
|
+ AND remark = #{remark}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="rank != null and !"".equals(rank)">
|
|
|
|
|
- and rank = #{rank}
|
|
|
|
|
|
|
+ <if test="rank != null and !"".equals(rank)">
|
|
|
|
|
+ AND rank = #{rank}
|
|
|
</if>
|
|
</if>
|
|
|
-
|
|
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
</where>
|
|
</where>
|
|
|
LIMIT 1
|
|
LIMIT 1
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
<update id="delete">
|
|
<update id="delete">
|
|
|
UPDATE banner_info SET del_flag = 'Y'
|
|
UPDATE banner_info SET del_flag = 'Y'
|
|
|
- <where>
|
|
|
|
|
- AND id = #{id}
|
|
|
|
|
- </where>
|
|
|
|
|
|
|
+ WHERE
|
|
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
|
|
+ id = #{id,jdbcType=INTEGER}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="idStr != null and !"".equals(idStr)">
|
|
|
|
|
+ id IN (${idStr})
|
|
|
|
|
+ </if>
|
|
|
</update>
|
|
</update>
|
|
|
|
|
+
|
|
|
<select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.BannerInfo">
|
|
<select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.BannerInfo">
|
|
|
- select <include refid="Base_Column_List"/> from banner_info
|
|
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
|
|
+ FROM banner_info
|
|
|
<where>
|
|
<where>
|
|
|
- and del_flag = 'N'
|
|
|
|
|
- </where>
|
|
|
|
|
- order by id desc
|
|
|
|
|
|
|
+ AND del_flag = 'N'
|
|
|
|
|
+ <!--generatedStart-->
|
|
|
|
|
+ <!--generatedEnd-->
|
|
|
|
|
+ </where>
|
|
|
|
|
+ ORDER BY id DESC
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|
|
|
|
|
|