From 528658799b844839502e824bbf540c6827588427 Mon Sep 17 00:00:00 2001
From: houruijun <411269194@kidgrow.com>
Date: Tue, 20 Oct 2020 19:17:05 +0800
Subject: [PATCH] 增加到期套餐查询功能

---
 kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysCompanyMapper.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 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 33532fc..c8f04ea 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
@@ -4,7 +4,7 @@
 <mapper namespace="com.kidgrow.usercenter.mapper.SysCompanyMapper">
     <!--定义查询列-->
     <sql id="Column_List">
-	   *
+	   DISTINCT *
 	</sql>
 
     <!--sql查询片段-->
@@ -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}
@@ -63,6 +63,7 @@
             <if test="p.updateTime != null and p.updateTime !=''">
                 and update_time = #{p.updateTime}
             </if>
+            <include refid="com.kidgrow.usercenter.mapper.SysRoleOrganizationMapper.Role_Organization"></include>
         </where>
     </sql>
 

--
Gitblit v1.8.0