Showing
1 changed file
with
4 additions
and
0 deletions
| @@ -175,6 +175,10 @@ | @@ -175,6 +175,10 @@ | ||
| 175 | <if test="vo.orderingUnitName != null and vo.orderingUnitName != ''"> | 175 | <if test="vo.orderingUnitName != null and vo.orderingUnitName != ''"> |
| 176 | AND cu.name LIKE CONCAT('%', #{vo.orderingUnitName},'%') | 176 | AND cu.name LIKE CONCAT('%', #{vo.orderingUnitName},'%') |
| 177 | </if> | 177 | </if> |
| 178 | + <if test="vo.searchKey != null and vo.searchKey != ''"> | ||
| 179 | + AND (cu.name LIKE CONCAT('%', #{vo.searchKey},'%') | ||
| 180 | + or tb.order_no LIKE CONCAT('%', #{vo.searchKey},'%')) | ||
| 181 | + </if> | ||
| 178 | <if test="vo.orderDateStart != null"> | 182 | <if test="vo.orderDateStart != null"> |
| 179 | AND tb.order_date >= #{vo.orderDateStart} | 183 | AND tb.order_date >= #{vo.orderDateStart} |
| 180 | </if> | 184 | </if> |