Showing
2 changed files
with
10 additions
and
0 deletions
| ... | ... | @@ -49,4 +49,10 @@ public class QueryDraftRequestCarTicketVo extends PageVo implements BaseVo, Seri |
| 49 | 49 | @ApiModelProperty("订货单ID") |
| 50 | 50 | private String purchaseOrderId; |
| 51 | 51 | |
| 52 | + /** | |
| 53 | + * 搜索:订单编号&客户名称 | |
| 54 | + */ | |
| 55 | + @ApiModelProperty("搜索") | |
| 56 | + private String searchKey; | |
| 57 | + | |
| 52 | 58 | } | ... | ... |
| ... | ... | @@ -99,6 +99,10 @@ |
| 99 | 99 | <if test="vo.purchaseOrderId != null and vo.purchaseOrderId != ''"> |
| 100 | 100 | AND tb.purchase_order_id = #{vo.purchaseOrderId} |
| 101 | 101 | </if> |
| 102 | + <if test="vo.searchKey != null and vo.searchKey != ''"> | |
| 103 | + AND (tb.order_no LIKE CONCAT('%', #{vo.searchKey}, '%') | |
| 104 | + OR cu.name LIKE CONCAT('%', #{vo.searchKey}, '%')) | |
| 105 | + </if> | |
| 102 | 106 | </where> |
| 103 | 107 | ORDER BY tb.create_time DESC |
| 104 | 108 | </select> | ... | ... |