Merge branch 'feature/gongfu' into feature/quotation

This commit is contained in:
曹鹏飞 2026-01-21 16:59:31 +08:00
commit 63fb47a708
7 changed files with 25 additions and 0 deletions

View File

@ -39,4 +39,9 @@ public class DeviceQuery extends PageBaseQuery {
* 质保结束日期区间查询
*/
private String warrantyEndDate;
/**
* 搜索设备编号和机型
*/
private String key;
}

View File

@ -40,4 +40,7 @@ public class AdminTicketSearchRequest extends TicketSearchRequest {
* 搜索关键字同时搜索标题设备编号设备机型问题描述问题部位
*/
private String key;
//工单编号或者标题
private String no;
}

View File

@ -39,4 +39,9 @@ public class DeviceQuery extends PageBaseQuery {
* 质保结束日期区间查询
*/
private String warrantyEndDate;
/**
* 搜索设备编号和机型
*/
private String key;
}

View File

@ -42,6 +42,9 @@
and a.start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <=
#{query.warrantyEndDate}
</if>
<if test="query.key!=null and query.key!=''">
and concat(a.customer_name,a.device_no) LIKE concat('%', #{query.key}, '%')
</if>
</sql>
<select id="getList" resultType="com.nflg.mobilebroken.repository.entity.Device">

View File

@ -31,6 +31,9 @@
and a.start_warranty_date &gt;= #{query.warrantyStartDate} and start_warranty_date &lt;=
#{query.warrantyEndDate}
</if>
<if test="query.key!=null and query.key!=''">
and concat(a.customer_name,a.device_no) LIKE concat('%', #{query.key}, '%')
</if>
</sql>
<select id="getList" resultType="com.nflg.mobilebroken.repository.entity.GongfuDevice">

View File

@ -74,6 +74,9 @@
<if test="request.title!=null and request.title!=''">
AND (t.title LIKE CONCAT('%', #{request.title}, '%') OR t.no LIKE CONCAT('%', #{request.title}, '%'))
</if>
<if test="request.no!=null and request.no!=''">
AND (t.title LIKE CONCAT('%', #{request.no}, '%') OR t.no LIKE CONCAT('%', #{request.no}, '%'))
</if>
<if test="request.deviceNo!=null and request.deviceNo!=''">
AND t.device_no LIKE CONCAT('%', #{request.deviceNo}, '%')
</if>

View File

@ -77,6 +77,9 @@
<if test="request.title!=null and request.title!=''">
AND (t.title LIKE CONCAT('%', #{request.title}, '%') OR t.no LIKE CONCAT('%', #{request.title}, '%'))
</if>
<if test="request.no!=null and request.no!=''">
AND (t.title LIKE CONCAT('%', #{request.no}, '%') OR t.no LIKE CONCAT('%', #{request.no}, '%'))
</if>
<if test="request.deviceNo!=null and request.deviceNo!=''">
AND t.device_no LIKE CONCAT('%', #{request.deviceNo}, '%')
</if>