|
|
@@ -13,6 +13,7 @@
|
|
|
<result column="telephone" property="telephone" jdbcType="VARCHAR" />
|
|
|
<result column="remark" property="remark" jdbcType="VARCHAR" />
|
|
|
<result column="image" property="image" jdbcType="VARCHAR" />
|
|
|
+ <result column="email" property="email" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
<trim suffixOverrides="," >
|
|
|
@@ -38,6 +39,8 @@
|
|
|
|
|
|
image,
|
|
|
|
|
|
+ email,
|
|
|
+
|
|
|
</trim>
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
@@ -85,6 +88,9 @@
|
|
|
</if>
|
|
|
<if test="image!= null" >
|
|
|
image,
|
|
|
+ </if>
|
|
|
+ <if test="email!= null" >
|
|
|
+ email,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
@@ -120,6 +126,9 @@
|
|
|
</if>
|
|
|
<if test="image != null" >
|
|
|
#{image,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="email != null" >
|
|
|
+ #{email,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -158,6 +167,9 @@
|
|
|
</if>
|
|
|
<if test="image != null" >
|
|
|
image= #{image,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="email != null" >
|
|
|
+ email= #{email,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where
|
|
|
@@ -209,6 +221,9 @@
|
|
|
</if>
|
|
|
<if test="record.image != null and !"".equals(record.image)">
|
|
|
and image = #{record.image}
|
|
|
+ </if>
|
|
|
+ <if test="record.email != null and !"".equals(record.email)">
|
|
|
+ and email = #{record.email}
|
|
|
</if>
|
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
|
@@ -216,6 +231,7 @@
|
|
|
OR telephone LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR remark LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR image LIKE concat('%',#{record.searchKey},'%')
|
|
|
+ OR email LIKE concat('%',#{record.searchKey},'%')
|
|
|
</trim>
|
|
|
</if>
|
|
|
|
|
|
@@ -310,6 +326,9 @@
|
|
|
</if>
|
|
|
<if test="image != null and !"".equals(image)">
|
|
|
and image = #{image}
|
|
|
+ </if>
|
|
|
+ <if test="email != null and !"".equals(email)">
|
|
|
+ and email = #{email}
|
|
|
</if>
|
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR" >
|
|
|
@@ -317,6 +336,7 @@
|
|
|
OR telephone LIKE concat('%',#{searchKey},'%')
|
|
|
OR remark LIKE concat('%',#{searchKey},'%')
|
|
|
OR image LIKE concat('%',#{searchKey},'%')
|
|
|
+ OR email LIKE concat('%',#{searchKey},'%')
|
|
|
</trim>
|
|
|
</if>
|
|
|
<if test="advancedQuery != null and !"".equals(advancedQuery)">
|
|
|
@@ -407,6 +427,9 @@
|
|
|
</if>
|
|
|
<if test="image != null and !"".equals(image)">
|
|
|
and image = #{image}
|
|
|
+ </if>
|
|
|
+ <if test="email != null and !"".equals(email)">
|
|
|
+ and email = #{email}
|
|
|
</if>
|
|
|
|
|
|
</where>
|
|
|
@@ -427,7 +450,7 @@
|
|
|
select <include refid="Base_Column_List"/> from feedback
|
|
|
<where>
|
|
|
and del_flag = 'N'
|
|
|
- </where>
|
|
|
+ </where>
|
|
|
order by id desc
|
|
|
</select>
|
|
|
</mapper>
|