Commit f8f7e0857829c94ff73425979c04bab80bb38ea7

Authored by 房远帅
1 parent b83064ec

楚江ERP:草稿要车单移动端:添加搜索条件

... ... @@ -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>
... ...