Showing
1 changed file
with
4 additions
and
0 deletions
| @@ -191,6 +191,10 @@ | @@ -191,6 +191,10 @@ | ||
| 191 | <if test="vo.orderingUnitName != null and vo.orderingUnitName != ''"> | 191 | <if test="vo.orderingUnitName != null and vo.orderingUnitName != ''"> |
| 192 | AND cu.name LIKE CONCAT('%', #{vo.orderingUnitName},'%') | 192 | AND cu.name LIKE CONCAT('%', #{vo.orderingUnitName},'%') |
| 193 | </if> | 193 | </if> |
| 194 | + <if test="vo.searchKey != null and vo.searchKey != ''"> | ||
| 195 | + AND (cu.name LIKE CONCAT('%', #{vo.searchKey},'%') | ||
| 196 | + or tb.order_no LIKE CONCAT('%', #{vo.searchKey},'%')) | ||
| 197 | + </if> | ||
| 194 | <if test="vo.orderDateStart != null"> | 198 | <if test="vo.orderDateStart != null"> |
| 195 | AND tb.order_date >= #{vo.orderDateStart} | 199 | AND tb.order_date >= #{vo.orderDateStart} |
| 196 | </if> | 200 | </if> |