| 
					
				 | 
			
			
				@@ -4,39 +4,37 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 通用查询映射结果 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <resultMap id="BaseResultMap" type="com.usky.system.domain.SysPlatform"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <id column="id" property="id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <result column="platform_name" property="platformName" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <result column="status" property="status" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <result column="remark" property="remark" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <result column="create_by" property="createBy" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <result column="create_time" property="createTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <result column="update_by" property="updateBy" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <result column="update_time" property="updateTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        <result column="tenantKey" property="tenantKey" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <id column="id" property="id"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="platform_name" property="platformName"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="status" property="status"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="remark" property="remark"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="create_by" property="createBy"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="create_time" property="createTime"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="update_by" property="updateBy"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="update_time" property="updateTime"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="tenantKey" property="tenantKey"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="getPlatformList" resultType="com.usky.system.service.vo.SysPlatformVo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        a.*, COUNT(b.id) AS tenantCount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        a.*, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        (SELECT COUNT(*) FROM sys_tenant b WHERE b.system_name = a.id) AS tenantCount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        sys_platform AS a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        LEFT JOIN sys_tenant AS b ON a.id = b.system_name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        sys_platform a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            and a.status=1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            AND a.status = 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="platformName != null and platformName != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                and a.platform_name LIKE CONCAT(CONCAT('%', #{platformName}), '%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                AND a.platform_name LIKE CONCAT('%', #{platformName}, '%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="id != null and id != 0 and id != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                and a.id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                AND a.id = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="endTime != null and startTime != null and endTime != '' and startTime != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                and a.create_time BETWEEN #{startTime} and #{endTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                AND a.create_time BETWEEN #{startTime} AND #{endTime} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        GROUP BY 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        a.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="current != null and size != null and size != 0"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            limit #{current},#{size} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            LIMIT #{current}, #{size} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -73,15 +71,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <delete id="deletePlatformMenuBy" parameterType="Long"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        delete from sys_platform_menu where platform_id=#{platformId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from sys_platform_menu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where platform_id = #{platformId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <delete id="deleteMobilePlatformMenuBy" parameterType="Long"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        delete from sys_mobile_platform_menu where platform_id=#{platformId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        delete 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from sys_mobile_platform_menu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where platform_id = #{platformId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <select id="getMenuListOne"  resultType="com.usky.system.domain.SysPlatformMenu" > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="getMenuListOne" resultType="com.usky.system.domain.SysPlatformMenu"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         b.* 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         FROM 
			 |