微信小程序查询案例
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
package com.stdiet.custom.dto.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class CustomerCaseResponse {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String keyword;
|
||||
|
||||
private String remark;
|
||||
|
||||
private List<String> fileList;
|
||||
}
|
@ -37,16 +37,12 @@
|
||||
select scc.id, scc.name, scc.keyword, scc.remark, scc.customer_id, scc.create_time,sc.name as customer_name from sys_customer_case scc
|
||||
left join sys_customer sc on sc.id = scc.customer_id and sc.del_flag = 0
|
||||
where scc.del_flag = 0
|
||||
<!--<if test="name != null and name != ''">
|
||||
and (scc.name like concat('%', #{name}, '%') OR scc.remark like concat('%', #{name}, '%'))
|
||||
</if>-->
|
||||
<include refid="searchKey">
|
||||
<property name="keywordArray" value="#{keywordArray}"/>
|
||||
</include>
|
||||
<if test="customerName != null and customerName != ''">
|
||||
and sc.name like concat('%', #{customerName}, '%')
|
||||
</if>
|
||||
OR scc.keyword like concat('%', #{name}, '%')
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
|
Reference in New Issue
Block a user