Merge branch 'feature/gongfu' into feature/quotation
This commit is contained in:
commit
63fb47a708
|
|
@ -39,4 +39,9 @@ public class DeviceQuery extends PageBaseQuery {
|
||||||
* 质保结束日期(区间查询)
|
* 质保结束日期(区间查询)
|
||||||
*/
|
*/
|
||||||
private String warrantyEndDate;
|
private String warrantyEndDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 搜索设备编号和机型
|
||||||
|
*/
|
||||||
|
private String key;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,4 +40,7 @@ public class AdminTicketSearchRequest extends TicketSearchRequest {
|
||||||
* 搜索关键字,同时搜索标题、设备编号、设备机型、问题描述、问题部位
|
* 搜索关键字,同时搜索标题、设备编号、设备机型、问题描述、问题部位
|
||||||
*/
|
*/
|
||||||
private String key;
|
private String key;
|
||||||
|
|
||||||
|
//工单编号或者标题
|
||||||
|
private String no;
|
||||||
}
|
}
|
||||||
|
|
@ -39,4 +39,9 @@ public class DeviceQuery extends PageBaseQuery {
|
||||||
* 质保结束日期(区间查询)
|
* 质保结束日期(区间查询)
|
||||||
*/
|
*/
|
||||||
private String warrantyEndDate;
|
private String warrantyEndDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 搜索设备编号和机型
|
||||||
|
*/
|
||||||
|
private String key;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,9 @@
|
||||||
and a.start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <=
|
and a.start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <=
|
||||||
#{query.warrantyEndDate}
|
#{query.warrantyEndDate}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="query.key!=null and query.key!=''">
|
||||||
|
and concat(a.customer_name,a.device_no) LIKE concat('%', #{query.key}, '%')
|
||||||
|
</if>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="getList" resultType="com.nflg.mobilebroken.repository.entity.Device">
|
<select id="getList" resultType="com.nflg.mobilebroken.repository.entity.Device">
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,9 @@
|
||||||
and a.start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <=
|
and a.start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <=
|
||||||
#{query.warrantyEndDate}
|
#{query.warrantyEndDate}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="query.key!=null and query.key!=''">
|
||||||
|
and concat(a.customer_name,a.device_no) LIKE concat('%', #{query.key}, '%')
|
||||||
|
</if>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="getList" resultType="com.nflg.mobilebroken.repository.entity.GongfuDevice">
|
<select id="getList" resultType="com.nflg.mobilebroken.repository.entity.GongfuDevice">
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,9 @@
|
||||||
<if test="request.title!=null and request.title!=''">
|
<if test="request.title!=null and request.title!=''">
|
||||||
AND (t.title LIKE CONCAT('%', #{request.title}, '%') OR t.no LIKE CONCAT('%', #{request.title}, '%'))
|
AND (t.title LIKE CONCAT('%', #{request.title}, '%') OR t.no LIKE CONCAT('%', #{request.title}, '%'))
|
||||||
</if>
|
</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!=''">
|
<if test="request.deviceNo!=null and request.deviceNo!=''">
|
||||||
AND t.device_no LIKE CONCAT('%', #{request.deviceNo}, '%')
|
AND t.device_no LIKE CONCAT('%', #{request.deviceNo}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,9 @@
|
||||||
<if test="request.title!=null and request.title!=''">
|
<if test="request.title!=null and request.title!=''">
|
||||||
AND (t.title LIKE CONCAT('%', #{request.title}, '%') OR t.no LIKE CONCAT('%', #{request.title}, '%'))
|
AND (t.title LIKE CONCAT('%', #{request.title}, '%') OR t.no LIKE CONCAT('%', #{request.title}, '%'))
|
||||||
</if>
|
</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!=''">
|
<if test="request.deviceNo!=null and request.deviceNo!=''">
|
||||||
AND t.device_no LIKE CONCAT('%', #{request.deviceNo}, '%')
|
AND t.device_no LIKE CONCAT('%', #{request.deviceNo}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue