Commit ab9dc362313fcebced9b5a67d7d1d1298e03003d

Authored by 房远帅
1 parent ea158c30

订单接口:移动端-根据订货单位和订货单编号模糊搜索

... ... @@ -175,6 +175,10 @@
175 175 <if test="vo.orderingUnitName != null and vo.orderingUnitName != ''">
176 176 AND cu.name LIKE CONCAT('%', #{vo.orderingUnitName},'%')
177 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 182 <if test="vo.orderDateStart != null">
179 183 AND tb.order_date >= #{vo.orderDateStart}
180 184 </if>
... ...