Commit ab9dc362313fcebced9b5a67d7d1d1298e03003d

Authored by 房远帅
1 parent ea158c30

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

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