|
|
@@ -1,22 +1,24 @@
|
|
|
<?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.SystemConfigMapper" >
|
|
|
- <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.SystemConfig" >
|
|
|
- <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="order_rate" property="orderRate" jdbcType="VARCHAR" />
|
|
|
- <result column="tixian_rate" property="tixianRate" jdbcType="VARCHAR" />
|
|
|
- <result column="extra" property="extra" jdbcType="VARCHAR" />
|
|
|
- <result column="use_flag" property="useFlag" jdbcType="CHAR" />
|
|
|
- <result column="personal_deposit" property="personalDeposit" jdbcType="INTEGER" />
|
|
|
- <result column="company_deposit" property="companyDeposit" jdbcType="INTEGER" />
|
|
|
- </resultMap>
|
|
|
- <sql id="Base_Column_List" >
|
|
|
- <trim suffixOverrides="," >
|
|
|
+<mapper namespace="com.izouma.awesomeadmin.dao.SystemConfigMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
+ <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="order_rate" property="orderRate" jdbcType="VARCHAR"/>
|
|
|
+ <result column="tixian_rate" property="tixianRate" jdbcType="VARCHAR"/>
|
|
|
+ <result column="extra" property="extra" jdbcType="VARCHAR"/>
|
|
|
+ <result column="use_flag" property="useFlag" jdbcType="CHAR"/>
|
|
|
+ <result column="personal_deposit" property="personalDeposit" jdbcType="INTEGER"/>
|
|
|
+ <result column="company_deposit" property="companyDeposit" jdbcType="INTEGER"/>
|
|
|
+ <result column="personal_size" property="personalSize" jdbcType="INTEGER"/>
|
|
|
+ <result column="company_size" property="companySize" jdbcType="INTEGER"/>
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ <trim suffixOverrides=",">
|
|
|
id,
|
|
|
|
|
|
del_flag,
|
|
|
@@ -41,137 +43,160 @@
|
|
|
|
|
|
company_deposit,
|
|
|
|
|
|
- </trim>
|
|
|
+ personal_size,
|
|
|
+
|
|
|
+ company_size,
|
|
|
+
|
|
|
+ </trim>
|
|
|
</sql>
|
|
|
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
from system_config
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
delete from system_config
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
- <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.SystemConfig" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.SystemConfig" useGeneratedKeys="true"
|
|
|
+ keyProperty="id">
|
|
|
insert into system_config
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
- <if test="id!= null" >
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id!= null">
|
|
|
id,
|
|
|
</if>
|
|
|
- <if test="delFlag!= null" >
|
|
|
+ <if test="delFlag!= null">
|
|
|
del_flag,
|
|
|
</if>
|
|
|
- <if test="updateTime!= null" >
|
|
|
+ <if test="updateTime!= null">
|
|
|
update_time,
|
|
|
</if>
|
|
|
- <if test="updateUser!= null" >
|
|
|
+ <if test="updateUser!= null">
|
|
|
update_user,
|
|
|
</if>
|
|
|
- <if test="createTime!= null" >
|
|
|
+ <if test="createTime!= null">
|
|
|
create_time,
|
|
|
</if>
|
|
|
- <if test="createUser!= null" >
|
|
|
+ <if test="createUser!= null">
|
|
|
create_user,
|
|
|
</if>
|
|
|
- <if test="orderRate!= null" >
|
|
|
+ <if test="orderRate!= null">
|
|
|
order_rate,
|
|
|
</if>
|
|
|
- <if test="tixianRate!= null" >
|
|
|
+ <if test="tixianRate!= null">
|
|
|
tixian_rate,
|
|
|
</if>
|
|
|
- <if test="extra!= null" >
|
|
|
+ <if test="extra!= null">
|
|
|
extra,
|
|
|
</if>
|
|
|
- <if test="useFlag!= null" >
|
|
|
+ <if test="useFlag!= null">
|
|
|
use_flag,
|
|
|
</if>
|
|
|
- <if test="personalDeposit!= null" >
|
|
|
+ <if test="personalDeposit!= null">
|
|
|
personal_deposit,
|
|
|
</if>
|
|
|
- <if test="companyDeposit!= null" >
|
|
|
+ <if test="companyDeposit!= null">
|
|
|
company_deposit,
|
|
|
</if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="id != null" >
|
|
|
+ <if test="personalSize!= null">
|
|
|
+ personal_size,
|
|
|
+ </if>
|
|
|
+ <if test="companySize!= null">
|
|
|
+ company_size,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="delFlag != null" >
|
|
|
+ <if test="delFlag != null">
|
|
|
#{delFlag,jdbcType=CHAR},
|
|
|
</if>
|
|
|
- <if test="updateTime != null" >
|
|
|
+ <if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="updateUser != null" >
|
|
|
+ <if test="updateUser != null">
|
|
|
#{updateUser,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="createTime != null" >
|
|
|
+ <if test="createTime != null">
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="createUser != null" >
|
|
|
+ <if test="createUser != null">
|
|
|
#{createUser,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="orderRate != null" >
|
|
|
+ <if test="orderRate != null">
|
|
|
#{orderRate,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="tixianRate != null" >
|
|
|
+ <if test="tixianRate != null">
|
|
|
#{tixianRate,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="extra != null" >
|
|
|
+ <if test="extra != null">
|
|
|
#{extra,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="useFlag != null" >
|
|
|
+ <if test="useFlag != null">
|
|
|
#{useFlag,jdbcType=CHAR},
|
|
|
</if>
|
|
|
- <if test="personalDeposit != null" >
|
|
|
+ <if test="personalDeposit != null">
|
|
|
#{personalDeposit,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="companyDeposit != null" >
|
|
|
+ <if test="companyDeposit != null">
|
|
|
#{companyDeposit,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- </trim>
|
|
|
+ <if test="personalSize != null">
|
|
|
+ #{personalSize,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="companySize != null">
|
|
|
+ #{companySize,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.SystemConfig" >
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
update system_config
|
|
|
- <set >
|
|
|
- <if test="id != null" >
|
|
|
- id= #{id,jdbcType=INTEGER},
|
|
|
+ <set>
|
|
|
+ <if test="id != null">
|
|
|
+ id= #{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="delFlag != null" >
|
|
|
- del_flag= #{delFlag,jdbcType=CHAR},
|
|
|
+ <if test="delFlag != null">
|
|
|
+ del_flag= #{delFlag,jdbcType=CHAR},
|
|
|
</if>
|
|
|
- <if test="updateTime != null" >
|
|
|
- update_time= #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time= #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="updateUser != null" >
|
|
|
- update_user= #{updateUser,jdbcType=VARCHAR},
|
|
|
+ <if test="updateUser != null">
|
|
|
+ update_user= #{updateUser,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="createTime != null" >
|
|
|
- create_time= #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time= #{createTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
- <if test="createUser != null" >
|
|
|
- create_user= #{createUser,jdbcType=VARCHAR},
|
|
|
+ <if test="createUser != null">
|
|
|
+ create_user= #{createUser,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="orderRate != null" >
|
|
|
- order_rate= #{orderRate,jdbcType=VARCHAR},
|
|
|
+ <if test="orderRate != null">
|
|
|
+ order_rate= #{orderRate,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="tixianRate != null" >
|
|
|
- tixian_rate= #{tixianRate,jdbcType=VARCHAR},
|
|
|
+ <if test="tixianRate != null">
|
|
|
+ tixian_rate= #{tixianRate,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="extra != null" >
|
|
|
- extra= #{extra,jdbcType=VARCHAR},
|
|
|
+ <if test="extra != null">
|
|
|
+ extra= #{extra,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="useFlag != null" >
|
|
|
- use_flag= #{useFlag,jdbcType=CHAR},
|
|
|
+ <if test="useFlag != null">
|
|
|
+ use_flag= #{useFlag,jdbcType=CHAR},
|
|
|
</if>
|
|
|
- <if test="personalDeposit != null" >
|
|
|
- personal_deposit= #{personalDeposit,jdbcType=INTEGER},
|
|
|
+ <if test="personalDeposit != null">
|
|
|
+ personal_deposit= #{personalDeposit,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="companyDeposit != null" >
|
|
|
- company_deposit= #{companyDeposit,jdbcType=INTEGER},
|
|
|
+ <if test="companyDeposit != null">
|
|
|
+ company_deposit= #{companyDeposit,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- </set>
|
|
|
+ <if test="personalSize != null">
|
|
|
+ personal_size= #{personalSize,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="companySize != null">
|
|
|
+ company_size= #{companySize,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
where
|
|
|
<if test="id != null and !"".equals(id)">
|
|
|
id = #{id,jdbcType=INTEGER}
|
|
|
@@ -182,59 +207,62 @@
|
|
|
</if>
|
|
|
|
|
|
</update>
|
|
|
- <select id="querySystemConfigByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
- select <include refid="Base_Column_List"/> from system_config
|
|
|
+ <select id="querySystemConfigByPage" parameterType="java.util.Map"
|
|
|
+ resultType="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from system_config
|
|
|
<where>
|
|
|
and del_flag = 'N'
|
|
|
<if test="record.idStr != null and !"".equals(record.idStr)">
|
|
|
and id in (${record.idStr})
|
|
|
</if>
|
|
|
- <if test="record.id != null and !"".equals(record.id)">
|
|
|
- and id = #{record.id}
|
|
|
+ <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 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 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 test="record.updateUser != null and !"".equals(record.updateUser)">
|
|
|
+ and update_user = #{record.updateUser}
|
|
|
</if>
|
|
|
- <if test="record.createTime != null and !"".equals(record.createTime)">
|
|
|
- and create_time = #{record.createTime}
|
|
|
+ <if test="record.createTime != null and !"".equals(record.createTime)">
|
|
|
+ and create_time = #{record.createTime}
|
|
|
</if>
|
|
|
- <if test="record.createUser != null and !"".equals(record.createUser)">
|
|
|
- and create_user = #{record.createUser}
|
|
|
+ <if test="record.createUser != null and !"".equals(record.createUser)">
|
|
|
+ and create_user = #{record.createUser}
|
|
|
</if>
|
|
|
- <if test="record.orderRate != null and !"".equals(record.orderRate)">
|
|
|
- and order_rate = #{record.orderRate}
|
|
|
+ <if test="record.orderRate != null and !"".equals(record.orderRate)">
|
|
|
+ and order_rate = #{record.orderRate}
|
|
|
</if>
|
|
|
- <if test="record.tixianRate != null and !"".equals(record.tixianRate)">
|
|
|
- and tixian_rate = #{record.tixianRate}
|
|
|
+ <if test="record.tixianRate != null and !"".equals(record.tixianRate)">
|
|
|
+ and tixian_rate = #{record.tixianRate}
|
|
|
</if>
|
|
|
- <if test="record.extra != null and !"".equals(record.extra)">
|
|
|
- and extra = #{record.extra}
|
|
|
+ <if test="record.extra != null and !"".equals(record.extra)">
|
|
|
+ and extra = #{record.extra}
|
|
|
</if>
|
|
|
- <if test="record.useFlag != null and !"".equals(record.useFlag)">
|
|
|
- and use_flag = #{record.useFlag}
|
|
|
+ <if test="record.useFlag != null and !"".equals(record.useFlag)">
|
|
|
+ and use_flag = #{record.useFlag}
|
|
|
</if>
|
|
|
- <if test="record.personalDeposit != null and !"".equals(record.personalDeposit)">
|
|
|
- and personal_deposit = #{record.personalDeposit}
|
|
|
+ <if test="record.personalDeposit != null and !"".equals(record.personalDeposit)">
|
|
|
+ and personal_deposit = #{record.personalDeposit}
|
|
|
</if>
|
|
|
- <if test="record.companyDeposit != null and !"".equals(record.companyDeposit)">
|
|
|
- and company_deposit = #{record.companyDeposit}
|
|
|
+ <if test="record.companyDeposit != null and !"".equals(record.companyDeposit)">
|
|
|
+ and company_deposit = #{record.companyDeposit}
|
|
|
+ </if>
|
|
|
+ <if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
+ <trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
+ OR order_rate LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR tixian_rate LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR extra LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR use_flag LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR personal_deposit LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR company_deposit LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ </trim>
|
|
|
</if>
|
|
|
- <if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
- <trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
|
- OR order_rate LIKE concat('%',#{record.searchKey},'%')
|
|
|
- OR tixian_rate LIKE concat('%',#{record.searchKey},'%')
|
|
|
- OR extra LIKE concat('%',#{record.searchKey},'%')
|
|
|
- OR use_flag LIKE concat('%',#{record.searchKey},'%')
|
|
|
- OR personal_deposit LIKE concat('%',#{record.searchKey},'%')
|
|
|
- OR company_deposit LIKE concat('%',#{record.searchKey},'%')
|
|
|
- </trim>
|
|
|
- </if>
|
|
|
|
|
|
<if test="record.advancedQuery != null and !"".equals(record.advancedQuery)">
|
|
|
<foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
|
|
|
@@ -288,93 +316,96 @@
|
|
|
</if>
|
|
|
id desc
|
|
|
</select>
|
|
|
- <select id="queryAllSystemConfig" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
- select <include refid="Base_Column_List"/> from system_config
|
|
|
+ <select id="queryAllSystemConfig" parameterType="java.util.Map"
|
|
|
+ resultType="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from system_config
|
|
|
<where>
|
|
|
and del_flag = 'N'
|
|
|
<if test="idStr != null and !"".equals(idStr)">
|
|
|
and id in (${idStr})
|
|
|
</if>
|
|
|
- <if test="id != null and !"".equals(id)">
|
|
|
- and id = #{id}
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
+ and id = #{id}
|
|
|
</if>
|
|
|
- <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
- and del_flag = #{delFlag}
|
|
|
+ <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
+ and del_flag = #{delFlag}
|
|
|
</if>
|
|
|
- <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
- and update_time = #{updateTime}
|
|
|
+ <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
+ and update_time = #{updateTime}
|
|
|
</if>
|
|
|
- <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
- and update_user = #{updateUser}
|
|
|
+ <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
+ and update_user = #{updateUser}
|
|
|
</if>
|
|
|
- <if test="createTime != null and !"".equals(createTime)">
|
|
|
- and create_time = #{createTime}
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
+ and create_time = #{createTime}
|
|
|
</if>
|
|
|
- <if test="createUser != null and !"".equals(createUser)">
|
|
|
- and create_user = #{createUser}
|
|
|
+ <if test="createUser != null and !"".equals(createUser)">
|
|
|
+ and create_user = #{createUser}
|
|
|
</if>
|
|
|
- <if test="orderRate != null and !"".equals(orderRate)">
|
|
|
- and order_rate = #{orderRate}
|
|
|
+ <if test="orderRate != null and !"".equals(orderRate)">
|
|
|
+ and order_rate = #{orderRate}
|
|
|
</if>
|
|
|
- <if test="tixianRate != null and !"".equals(tixianRate)">
|
|
|
- and tixian_rate = #{tixianRate}
|
|
|
+ <if test="tixianRate != null and !"".equals(tixianRate)">
|
|
|
+ and tixian_rate = #{tixianRate}
|
|
|
</if>
|
|
|
- <if test="extra != null and !"".equals(extra)">
|
|
|
- and extra = #{extra}
|
|
|
+ <if test="extra != null and !"".equals(extra)">
|
|
|
+ and extra = #{extra}
|
|
|
</if>
|
|
|
- <if test="useFlag != null and !"".equals(useFlag)">
|
|
|
- and use_flag = #{useFlag}
|
|
|
+ <if test="useFlag != null and !"".equals(useFlag)">
|
|
|
+ and use_flag = #{useFlag}
|
|
|
</if>
|
|
|
- <if test="personalDeposit != null and !"".equals(personalDeposit)">
|
|
|
- and personal_deposit = #{personalDeposit}
|
|
|
+ <if test="personalDeposit != null and !"".equals(personalDeposit)">
|
|
|
+ and personal_deposit = #{personalDeposit}
|
|
|
</if>
|
|
|
- <if test="companyDeposit != null and !"".equals(companyDeposit)">
|
|
|
- and company_deposit = #{companyDeposit}
|
|
|
+ <if test="companyDeposit != null and !"".equals(companyDeposit)">
|
|
|
+ and company_deposit = #{companyDeposit}
|
|
|
</if>
|
|
|
- <if test="searchKey != null and !"".equals(searchKey)">
|
|
|
- <trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
|
- OR order_rate LIKE concat('%',#{searchKey},'%')
|
|
|
- OR tixian_rate LIKE concat('%',#{searchKey},'%')
|
|
|
- OR extra LIKE concat('%',#{searchKey},'%')
|
|
|
- OR use_flag LIKE concat('%',#{searchKey},'%')
|
|
|
- OR personal_deposit LIKE concat('%',#{searchKey},'%')
|
|
|
- OR company_deposit LIKE concat('%',#{searchKey},'%')
|
|
|
- </trim>
|
|
|
+ <if test="searchKey != null and !"".equals(searchKey)">
|
|
|
+ <trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
+ OR order_rate LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR tixian_rate LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR extra LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR use_flag LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR personal_deposit LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR company_deposit LIKE concat('%',#{searchKey},'%')
|
|
|
+ </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="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>
|
|
|
+ <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>
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
|
|
|
+ <if test="detailIndex == 3">
|
|
|
+ #{itemDetail}
|
|
|
+ </if>
|
|
|
|
|
|
- </foreach>
|
|
|
- </otherwise>
|
|
|
- </choose>
|
|
|
+ <if test="detailIndex < 3">
|
|
|
+ ${itemDetail}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </foreach>
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
|
|
|
|
|
|
- </foreach>
|
|
|
+ </foreach>
|
|
|
|
|
|
|
|
|
-</if>
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by
|
|
|
|
|
|
@@ -393,47 +424,50 @@
|
|
|
|
|
|
id desc
|
|
|
</select>
|
|
|
- <select id="querySystemConfig" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
- select <include refid="Base_Column_List"/> from system_config
|
|
|
+ <select id="querySystemConfig" parameterType="java.util.Map"
|
|
|
+ resultType="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from system_config
|
|
|
<where>
|
|
|
and del_flag = 'N'
|
|
|
- <if test="id != null and !"".equals(id)">
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
and id = #{id}
|
|
|
</if>
|
|
|
- <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
+ <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
and del_flag = #{delFlag}
|
|
|
</if>
|
|
|
- <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
+ <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
and update_time = #{updateTime}
|
|
|
</if>
|
|
|
- <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
+ <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
and update_user = #{updateUser}
|
|
|
</if>
|
|
|
- <if test="createTime != null and !"".equals(createTime)">
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
and create_time = #{createTime}
|
|
|
</if>
|
|
|
- <if test="createUser != null and !"".equals(createUser)">
|
|
|
+ <if test="createUser != null and !"".equals(createUser)">
|
|
|
and create_user = #{createUser}
|
|
|
</if>
|
|
|
- <if test="orderRate != null and !"".equals(orderRate)">
|
|
|
+ <if test="orderRate != null and !"".equals(orderRate)">
|
|
|
and order_rate = #{orderRate}
|
|
|
</if>
|
|
|
- <if test="tixianRate != null and !"".equals(tixianRate)">
|
|
|
+ <if test="tixianRate != null and !"".equals(tixianRate)">
|
|
|
and tixian_rate = #{tixianRate}
|
|
|
</if>
|
|
|
- <if test="extra != null and !"".equals(extra)">
|
|
|
+ <if test="extra != null and !"".equals(extra)">
|
|
|
and extra = #{extra}
|
|
|
</if>
|
|
|
- <if test="useFlag != null and !"".equals(useFlag)">
|
|
|
+ <if test="useFlag != null and !"".equals(useFlag)">
|
|
|
and use_flag = #{useFlag}
|
|
|
</if>
|
|
|
- <if test="personalDeposit != null and !"".equals(personalDeposit)">
|
|
|
+ <if test="personalDeposit != null and !"".equals(personalDeposit)">
|
|
|
and personal_deposit = #{personalDeposit}
|
|
|
</if>
|
|
|
- <if test="companyDeposit != null and !"".equals(companyDeposit)">
|
|
|
+ <if test="companyDeposit != null and !"".equals(companyDeposit)">
|
|
|
and company_deposit = #{companyDeposit}
|
|
|
</if>
|
|
|
-
|
|
|
+
|
|
|
</where>
|
|
|
LIMIT 1
|
|
|
</select>
|
|
|
@@ -449,10 +483,12 @@
|
|
|
</if>
|
|
|
</update>
|
|
|
<select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
- select <include refid="Base_Column_List"/> from system_config
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ from system_config
|
|
|
<where>
|
|
|
and del_flag = 'N'
|
|
|
- </where>
|
|
|
+ </where>
|
|
|
order by id desc
|
|
|
</select>
|
|
|
</mapper>
|