Commit 0845c6d0a603e36e8cceb84b56ffd3301e9b3e8c

Authored by yeqianyong
1 parent 566ad67b

楚江ERP-客户资信根据名称模糊搜索

... ... @@ -192,7 +192,9 @@
192 192 <if test="vo.companySuggestedCategory != null and vo.companySuggestedCategory != ''">
193 193 AND tb.company_suggested_category = #{vo.companySuggestedCategory}
194 194 </if>
195   -
  195 + <if test="vo.companyName != null and vo.companyName != ''">
  196 + AND cu.name LIKE CONCAT('%', #{vo.companyName},'%')
  197 + </if>
196 198 </where>
197 199 </select>
198 200
... ... @@ -202,9 +204,6 @@
202 204 <if test="id != null">
203 205 AND tb.id = #{id}
204 206 </if>
205   - <if test="vo.companyName != null and vo.companyName != ''">
206   - AND cu.name LIKE CONCAT('%', #{vo.companyName},'%')
207   - </if>
208 207 </where>
209 208 </select>
210 209
... ...