Commit 34b3d553e478b0fce94db30ce79bed5f47c46b90
1 parent
8d518e68
update:流水查询增加商品名称模糊匹配
Showing
2 changed files
with
16 additions
and
0 deletions
etrade-order/src/main/java/com/diligrp/etrade/order/domain/xreport/BusinessFlowCO.java
... | ... | @@ -12,6 +12,8 @@ public class BusinessFlowCO extends ClientPageQueryCO implements Serializable { |
12 | 12 | */ |
13 | 13 | private List<Long> products; |
14 | 14 | |
15 | + private String productsName; | |
16 | + | |
15 | 17 | /** |
16 | 18 | *订单号 |
17 | 19 | */ |
... | ... | @@ -199,4 +201,12 @@ public class BusinessFlowCO extends ClientPageQueryCO implements Serializable { |
199 | 201 | public void setOrderAchieveState(List<Integer> orderAchieveState) { |
200 | 202 | this.orderAchieveState = orderAchieveState; |
201 | 203 | } |
204 | + | |
205 | + public String getProductsName() { | |
206 | + return productsName; | |
207 | + } | |
208 | + | |
209 | + public void setProductsName(String productsName) { | |
210 | + this.productsName = productsName; | |
211 | + } | |
202 | 212 | } | ... | ... |
etrade-order/src/main/resources/com/diligrp/etrade/dao/mapper/order/OrderQueryMapper.xml
... | ... | @@ -476,6 +476,9 @@ |
476 | 476 | <if test="source !=null"> |
477 | 477 | and o.source = #{source} |
478 | 478 | </if> |
479 | + <if test="productsName !=null and productsName != ''"> | |
480 | + and og.product_name like CONCAT('%',#{productsName},'%') | |
481 | + </if> | |
479 | 482 | <if test="lowLevel !=null"> |
480 | 483 | and og.product_total_price <![CDATA[>= #{lowLevel}]]> |
481 | 484 | </if> |
... | ... | @@ -577,6 +580,9 @@ |
577 | 580 | <if test="endSettleDateTime !=null"> |
578 | 581 | and o.pay_time <![CDATA[<= #{endSettleDateTime}]]> |
579 | 582 | </if> |
583 | + <if test="productsName !=null and productsName != ''"> | |
584 | + and og.product_name like CONCAT('%',#{productsName},'%') | |
585 | + </if> | |
580 | 586 | <if test="modifyTimeStart != null"> |
581 | 587 | and o.modified_time >= #{modifyTimeStart} |
582 | 588 | </if> | ... | ... |