v1.0.64 #76
@@ -20,6 +20,12 @@ public class GaoEventRecordRankPage extends BasePage {
|
||||
/// 客户 ID,为空查询全部客户
|
||||
private String customerId;
|
||||
|
||||
/// 客户搜索关键词
|
||||
private String keyword;
|
||||
|
||||
/// 客户 ID 列表,为空时不限制
|
||||
private List<String> customerIdList;
|
||||
|
||||
/// 登记事件 ID 列表,为空查询全部登记事件
|
||||
private List<String> eventIdList;
|
||||
|
||||
|
||||
@@ -213,6 +213,22 @@
|
||||
<if test="customerId != null and customerId != ''">
|
||||
AND r.`customer_id` = #{customerId}
|
||||
</if>
|
||||
<if test="keyword != null and keyword.trim() != ''">
|
||||
AND (c.`code` LIKE CONCAT('%', #{keyword}, '%')
|
||||
OR c.`name` LIKE CONCAT('%', #{keyword}, '%')
|
||||
OR c.`name_pinyin_full` LIKE CONCAT(#{keyword}, '%')
|
||||
OR c.`name_pinyin_initial` LIKE CONCAT(#{keyword}, '%')
|
||||
OR c.`name_pinyin_mixed` LIKE CONCAT(#{keyword}, '%'))
|
||||
</if>
|
||||
<if test="customerIdList != null">
|
||||
<choose>
|
||||
<when test="customerIdList.size() > 0">
|
||||
AND r.`customer_id` IN
|
||||
<foreach collection="customerIdList" item="id" open="(" separator="," close=")">#{id}</foreach>
|
||||
</when>
|
||||
<otherwise>AND 1 = 0</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
<if test="beginAt != null">
|
||||
AND r.`registered_at` >= #{beginAt}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user