فهرست منبع

用户和组织的排序优化

shimingxy 1 ماه پیش
والد
کامیت
c88757c567

+ 1 - 1
maxkey-persistence/src/main/resources/org/dromara/maxkey/persistence/mapper/xml/mysql/OrganizationsMapper.xml

@@ -36,7 +36,7 @@
     	from mxk_organizations 
     	where	instid   =   #{instId} 
     	<include refid="dao_where_statement"/>
-    	order by sortindex,id
+    	order by status,sortindex,id
     </select>
   
     <update id="logisticDelete" parameterType="Organizations" >

+ 1 - 1
maxkey-persistence/src/main/resources/org/dromara/maxkey/persistence/mapper/xml/mysql/UserInfoMapper.xml

@@ -59,7 +59,7 @@
 		<if test="departmentId != null and departmentId != ''">
 			and departmentid = #{departmentId}
 		</if>
-		order by sortindex,id 
+		order by status,sortindex,id 
 	</select>
 	
     <update id="updateLocked" parameterType="UserInfo" >