|
|
@@ -4,13 +4,15 @@
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.crm.manager.dao.mapper.TenantMapper">
|
|
|
<select id="searchByPageCount" resultType="java.lang.Integer">
|
|
|
- select count(merchant.id) from merchant
|
|
|
+ select count(m.id) from merchant m
|
|
|
<include refid="selectCondition">
|
|
|
</include>
|
|
|
</select>
|
|
|
|
|
|
- <select id="searchByPageList" resultType="com.crm.rely.backend.core.pojo.table.MerchantTable">
|
|
|
- select id, merchant_code, merchant_name, add_time, add_user, add_ip, modify_time, modify_user, modify_ip, note, email, mobile, address, first_name, last_name, country from merchant
|
|
|
+ <select id="searchByPageList" resultType="com.crm.rely.backend.core.dto.tenant.TenantSearchDto">
|
|
|
+ select m.id, merchant_code, merchant_name, m.add_time, m.add_user, m.add_ip, m.modify_time, m.modify_user,
|
|
|
+ m.modify_ip, m.note, email, mobile, address, first_name, last_name, country,coun.`name` countryName,coun.`en_name` countryEnName from merchant m
|
|
|
+ LEFT JOIN sys_country coun ON coun.code =m.country
|
|
|
<include refid="selectCondition">
|
|
|
</include>
|
|
|
<if test="page != null">
|
|
|
@@ -21,7 +23,7 @@
|
|
|
<sql id="selectCondition">
|
|
|
where 1=1
|
|
|
<if test="merchantName!=null and merchantName!=''">
|
|
|
- and merchant.merchant_name like concat('%',#{name},'%')
|
|
|
+ and m.merchant_name like concat('%',#{merchantName},'%')
|
|
|
</if>
|
|
|
</sql>
|
|
|
</mapper>
|