feat: bug-612 管理端APP,安卓及苹果端,待处理的界面,搜索功能不能用,输入任何关键词都搜索不了

This commit is contained in:
曹鹏飞 2025-08-25 09:33:01 +08:00
parent bb415c9b70
commit 3b80984bcc
2 changed files with 13 additions and 0 deletions

View File

@ -35,4 +35,9 @@ public class AdminTicketSearchRequest extends TicketSearchRequest {
//代理商编码
private String agentCode;
/**
* 搜索关键字同时搜索标题设备编号设备机型问题描述问题部位
*/
private String key;
}

View File

@ -80,6 +80,14 @@
<if test="request.createUserName!=null and request.createUserName!=''">
AND d.customer_name LIKE CONCAT('%', #{request.createUserName}, '%')
</if>
<if test="request.key!=null and request.key!=''">
AND (t.title LIKE CONCAT('%', #{request.key}, '%')
or t.device_no LIKE CONCAT('%', #{request.key}, '%')
or d.model_no LIKE CONCAT('%', #{request.key}, '%')
or t.description LIKE CONCAT('%', #{request.key},'%')
or p.part_name LIKE CONCAT('%', #{request.key}, '%')
)
</if>
</where>
</sql>