Commit 2bcde84d2266b2d3ef86ab90d4fc60d59d5da426

Authored by 房远帅
1 parent c1515ee8

楚江ERP:要车单-移动端增加搜索条件

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