微信小程序查询案例

This commit is contained in:
xiezhijun
2021-03-18 16:11:54 +08:00
parent 75d11bb9e3
commit 4247860f69
3 changed files with 94 additions and 4 deletions

View File

@ -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;
}

View File

@ -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>