Commit 0845c6d0a603e36e8cceb84b56ffd3301e9b3e8c

Authored by yeqianyong
1 parent 566ad67b

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

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