|
|
@@ -75,6 +75,28 @@
|
|
|
<if test="custId != null and custId != ''">
|
|
|
AND CUST_ID = #{custId}
|
|
|
</if>
|
|
|
+ <if test="condition != null and condition != ''">
|
|
|
+ <choose>
|
|
|
+ <when test="search != null and search == 'custId'">
|
|
|
+ AND
|
|
|
+ <foreach collection="conditions" item="item" index="index" separator="or">
|
|
|
+ UPPER(CUST_ID) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ <when test="search != null and search == 'custNm'">
|
|
|
+ AND
|
|
|
+ <foreach collection="conditions" item="item" index="index" separator="or">
|
|
|
+ UPPER(CUST_NM) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ <when test="search != null and search == 'email'">
|
|
|
+ AND
|
|
|
+ <foreach collection="conditions" item="item" index="index" separator="or">
|
|
|
+ UPPER(EMAIL) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<!-- 활동회원목록 -->
|
|
|
@@ -187,6 +209,28 @@
|
|
|
<if test="custId != null and custId != ''">
|
|
|
AND CUST_ID = #{custId}
|
|
|
</if>
|
|
|
+ <if test="condition != null and condition != ''">
|
|
|
+ <choose>
|
|
|
+ <when test="search != null and search == 'custId'">
|
|
|
+ AND
|
|
|
+ <foreach collection="conditions" item="item" index="index" separator="or">
|
|
|
+ UPPER(CUST_ID) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ <when test="search != null and search == 'custNm'">
|
|
|
+ AND
|
|
|
+ <foreach collection="conditions" item="item" index="index" separator="or">
|
|
|
+ UPPER(CUST_NM) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ <when test="search != null and search == 'email'">
|
|
|
+ AND
|
|
|
+ <foreach collection="conditions" item="item" index="index" separator="or">
|
|
|
+ UPPER(EMAIL) LIKE CONCAT('%',UPPER(#{item}),'%')
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </if>
|
|
|
<if test='cpnPubPopYn != null and cpnPubPopYn != "Y"'>
|
|
|
<include refid="selectForPagingFooter"/>
|
|
|
</if>
|