|
|
@@ -12,6 +12,8 @@
|
|
|
<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="," >
|
|
|
@@ -35,6 +37,10 @@
|
|
|
|
|
|
use_flag,
|
|
|
|
|
|
+ personal_deposit,
|
|
|
+
|
|
|
+ company_deposit,
|
|
|
+
|
|
|
</trim>
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
@@ -79,6 +85,12 @@
|
|
|
</if>
|
|
|
<if test="useFlag!= null" >
|
|
|
use_flag,
|
|
|
+ </if>
|
|
|
+ <if test="personalDeposit!= null" >
|
|
|
+ personal_deposit,
|
|
|
+ </if>
|
|
|
+ <if test="companyDeposit!= null" >
|
|
|
+ company_deposit,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
@@ -111,6 +123,12 @@
|
|
|
</if>
|
|
|
<if test="useFlag != null" >
|
|
|
#{useFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="personalDeposit != null" >
|
|
|
+ #{personalDeposit,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="companyDeposit != null" >
|
|
|
+ #{companyDeposit,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -146,14 +164,31 @@
|
|
|
</if>
|
|
|
<if test="useFlag != null" >
|
|
|
use_flag= #{useFlag,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="personalDeposit != null" >
|
|
|
+ personal_deposit= #{personalDeposit,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="companyDeposit != null" >
|
|
|
+ company_deposit= #{companyDeposit,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</set>
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
+ 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>
|
|
|
<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>
|
|
|
@@ -183,6 +218,12 @@
|
|
|
</if>
|
|
|
<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>
|
|
|
+ <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" >
|
|
|
@@ -190,6 +231,8 @@
|
|
|
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>
|
|
|
|
|
|
@@ -249,6 +292,9 @@
|
|
|
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>
|
|
|
@@ -278,6 +324,12 @@
|
|
|
</if>
|
|
|
<if test="useFlag != null and !"".equals(useFlag)">
|
|
|
and use_flag = #{useFlag}
|
|
|
+ </if>
|
|
|
+ <if test="personalDeposit != null and !"".equals(personalDeposit)">
|
|
|
+ and personal_deposit = #{personalDeposit}
|
|
|
+ </if>
|
|
|
+ <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" >
|
|
|
@@ -285,6 +337,8 @@
|
|
|
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)">
|
|
|
@@ -372,6 +426,12 @@
|
|
|
</if>
|
|
|
<if test="useFlag != null and !"".equals(useFlag)">
|
|
|
and use_flag = #{useFlag}
|
|
|
+ </if>
|
|
|
+ <if test="personalDeposit != null and !"".equals(personalDeposit)">
|
|
|
+ and personal_deposit = #{personalDeposit}
|
|
|
+ </if>
|
|
|
+ <if test="companyDeposit != null and !"".equals(companyDeposit)">
|
|
|
+ and company_deposit = #{companyDeposit}
|
|
|
</if>
|
|
|
|
|
|
</where>
|
|
|
@@ -379,15 +439,20 @@
|
|
|
</select>
|
|
|
<update id="delete">
|
|
|
UPDATE system_config 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>
|
|
|
<select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SystemConfig">
|
|
|
select <include refid="Base_Column_List"/> from system_config
|
|
|
<where>
|
|
|
and del_flag = 'N'
|
|
|
- </where>
|
|
|
+ </where>
|
|
|
order by id desc
|
|
|
</select>
|
|
|
</mapper>
|