From 004e1229ed36a98cc3bb9e3c0eb15be2ab8c0642 Mon Sep 17 00:00:00 2001
From: 克 刘 <4345453@qq.com>
Date: Thu, 16 Apr 2020 11:16:49 +0800
Subject: [PATCH] Merge branch 'dev' of http://192.168.2.240:7070/r/kidgrow-microservices-platform into dev

---
 kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysCompanyMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysCompanyMapper.xml b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysCompanyMapper.xml
index e79f1e0..0073909 100644
--- a/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysCompanyMapper.xml
+++ b/kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysCompanyMapper.xml
@@ -19,7 +19,7 @@
                 and org_id = #{p.orgId}
             </if>
             <if test="p.companyName != null and p.companyName !=''">
-                and company_name = #{p.companyName}
+                and company_name like  '%${p.companyName}%'
             </if>
             <if test="p.companyArea != null and p.companyArea !=''">
                 and company_area = #{p.companyArea}
@@ -73,6 +73,7 @@
         from sys_company
         <include refid="where"/>
         order by id desc
+        limit 1
     </select>
 
     <!--定义根据-SysCompany当作查询条件返回对象集合-->

--
Gitblit v1.8.0