Browse Source

运营端客户管理、客户定制化页面查询客户列表接口调整按客户创建时间降序展示

dev_shibei_match
sunyuchao 4 years ago
parent
commit
b4417561a2
  1. 20
      epmet-module/oper-crm/oper-crm-server/src/main/resources/mapper/CustomerDao.xml

20
epmet-module/oper-crm/oper-crm-server/src/main/resources/mapper/CustomerDao.xml

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

Loading…
Cancel
Save