|
|
@ -69,6 +69,8 @@ |
|
|
|
<if test='customerName != "" and customerName != null'> |
|
|
|
AND customer_name LIKE concat('%', trim(#{customerName}), '%') |
|
|
|
</if> |
|
|
|
ORDER BY |
|
|
|
created_time DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getAllList" resultMap="customerMap"> |
|
|
@ -106,19 +108,21 @@ |
|
|
|
|
|
|
|
<select id="selectAllCustomerList" resultType="com.epmet.dto.result.CustomerListResultDTO"> |
|
|
|
SELECT |
|
|
|
ID AS "customerId", |
|
|
|
CUSTOMER_NAME, |
|
|
|
TITLE, |
|
|
|
VALIDITY_TIME, |
|
|
|
ORGANIZATION_LEVEL, |
|
|
|
LOGO, |
|
|
|
GRID_NUMBER |
|
|
|
id AS "customerId", |
|
|
|
customer_name, |
|
|
|
title, |
|
|
|
validity_time, |
|
|
|
organization_level, |
|
|
|
logo, |
|
|
|
grid_number |
|
|
|
FROM customer |
|
|
|
WHERE |
|
|
|
DEL_FLAG = '0' |
|
|
|
del_flag = '0' |
|
|
|
<if test='customerName != "" and customerName != null'> |
|
|
|
AND customer_name LIKE concat('%', trim(#{customerName}), '%') |
|
|
|
</if> |
|
|
|
ORDER BY |
|
|
|
created_time DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getExternalAndParentCustomerId" resultType="String"> |
|
|
|