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