|
|
@@ -51,26 +51,32 @@
|
|
|
, SECEDE_RSN
|
|
|
, SECEDE_DTL_RSN
|
|
|
, DATE_FORMAT(SECEDE_DT, '%Y%m%d%H%i%S') AS SECEDE_DT
|
|
|
- , FN_GET_USER_NM(REG_NO) AS REG_NM
|
|
|
- , DATE_FORMAT(REG_DT, '%Y%m%d%H%i%S') AS REG_DT
|
|
|
- , FN_GET_USER_NM(UPD_NO) AS UPD_NM
|
|
|
- , DATE_FORMAT(UPD_DT, '%Y%m%d%H%i%S') AS UPD_DT
|
|
|
+ , FN_GET_USER_NM(REG_NO) AS REG_NM
|
|
|
+ , DATE_FORMAT(REG_DT, '%Y%m%d%H%i%S') AS REG_DT
|
|
|
+ , FN_GET_USER_NM(UPD_NO) AS UPD_NM
|
|
|
+ , DATE_FORMAT(UPD_DT, '%Y%m%d%H%i%S') AS UPD_DT
|
|
|
FROM TB_CUSTOMER
|
|
|
- WHERE CUST_NO = #{custNo}
|
|
|
+ WHERE SITE_CD = #{siteCd}
|
|
|
+ <if test="custNo != null and custNo != ''">
|
|
|
+ AND CUST_NO = #{custNo}
|
|
|
+ </if>
|
|
|
<if test="custStat != null and custStat != ''">
|
|
|
AND CUST_STAT = #{custStat}
|
|
|
</if>
|
|
|
<if test="siteCd != null and siteCd != ''">
|
|
|
AND SITE_CD = #{siteCd}
|
|
|
</if>
|
|
|
- <if test="email != null and email != ''">
|
|
|
- AND EMAIL = #{email}
|
|
|
+ <if test="encodedEmail != null and encodedEmail != ''">
|
|
|
+ AND EMAIL = #{encodedEmail}
|
|
|
</if>
|
|
|
<if test="custId != null and custId !=''">
|
|
|
AND CUST_ID = #{custId}
|
|
|
</if>
|
|
|
- <if test="custNm != null and custNm != ''">
|
|
|
- AND CUST_NM = #{custNm}
|
|
|
+ <if test="encodedCustNm != null and encodedCustNm != ''">
|
|
|
+ AND CUST_NM = #{encodedCustNm}
|
|
|
+ </if>
|
|
|
+ <if test="encodedBirthYmd != null and encodedBirthYmd != ''">
|
|
|
+ AND BIRTH_YMD = #{encodedBirthYmd}
|
|
|
</if>
|
|
|
</select>
|
|
|
|