24282 1 năm trước cách đây
mục cha
commit
8e6485852f
1 tập tin đã thay đổi với 13 bổ sung13 xóa
  1. 13 13
      ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml

+ 13 - 13
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml

@@ -48,19 +48,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="roleKey != null and roleKey != ''">
             AND r.role_key like concat('%', #{roleKey}, '%')
         </if>
-        <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
-            and date_format(r.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
-        </if>
-        <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
-            and date_format(r.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
-        </if>
-        <if test="keyword neq null and keyword neq ''">
-            and (instr(r.role_key,#{keyword}) or instr(r.role_name,#{keyword}))
-        </if>
-        <!-- 数据范围过滤 -->
-        ${params.dataScope}
-        order by r.role_sort
-    </select>
+		<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
+			and date_format(r.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
+		</if>
+		<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
+			and date_format(r.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
+		</if>
+		<if test="keyword neq null and keyword neq ''">
+			and (instr(r.role_key,#{keyword}) or instr(r.role_name,#{keyword}))
+		</if>
+		<!-- 数据范围过滤 -->
+		${params.dataScope}
+		order by r.role_sort,r.role_id
+	</select>
     
 	<select id="selectRolePermissionByUserId" parameterType="Long" resultMap="SysRoleResult">
 		<include refid="selectRoleVo"/>