Showing
2 changed files
with
10 additions
and
0 deletions
| @@ -68,4 +68,11 @@ public class QueryRequestCarTicketVo extends PageVo implements BaseVo, Serializa | @@ -68,4 +68,11 @@ public class QueryRequestCarTicketVo extends PageVo implements BaseVo, Serializa | ||
| 68 | @ApiModelProperty("发货单ID") | 68 | @ApiModelProperty("发货单ID") |
| 69 | private String shipmentsOrderId; | 69 | private String shipmentsOrderId; |
| 70 | 70 | ||
| 71 | + /** | ||
| 72 | + * 订单编号和客户名称模糊搜索 | ||
| 73 | + */ | ||
| 74 | + @ApiModelProperty("搜索条件") | ||
| 75 | + private String searchKey; | ||
| 76 | + | ||
| 77 | + | ||
| 71 | } | 78 | } |
| @@ -116,6 +116,9 @@ | @@ -116,6 +116,9 @@ | ||
| 116 | <if test="vo.shipmentsOrderId != null and vo.shipmentsOrderId != ''"> | 116 | <if test="vo.shipmentsOrderId != null and vo.shipmentsOrderId != ''"> |
| 117 | AND tb.shipments_order_id = #{vo.shipmentsOrderId} | 117 | AND tb.shipments_order_id = #{vo.shipmentsOrderId} |
| 118 | </if> | 118 | </if> |
| 119 | + <if test="vo.searchKey != null and vo.searchKey != ''"> | ||
| 120 | + AND (tb.order_no LIKE CONCAT('%', #{vo.searchKey},'%') OR cu.name LIKE CONCAT('%', #{vo.searchKey},'%')) | ||
| 121 | + </if> | ||
| 119 | </where> | 122 | </where> |
| 120 | ORDER BY tb.create_time DESC | 123 | ORDER BY tb.create_time DESC |
| 121 | </select> | 124 | </select> |