Pu Zhibing
昨天 aa72a1d1d8c792b322281f5ab01996bc62820b13
ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/RoleMapper.xml
@@ -20,7 +20,7 @@
   <select id="selectRoles" resultType="map">
      select rr.*,(SELECT COUNT(id) from sys_user where FIND_IN_SET(rr.id,roleid)) as userCount
      from sys_role as rr where 1 = 1
      <if test="condition != null">
      <if test="condition != null and condition !=''">
         and rr.name like CONCAT('%',#{condition},'%')
      </if>
      <if test="null != objectId">
@@ -66,14 +66,14 @@
      ID
      FROM
      sys_role
      WHERE r.objectId = #{objectId} and
      WHERE objectId = #{objectId} and
      ID IN
      <foreach collection="array" index="index" item="i" open="(" separator="," close=")">
         #{i}
      </foreach>
      ) r1 ON r.ID = r1.ID where objectId = #{objectId}
      ) r1 ON r.ID = r1.ID where r.objectId = #{objectId}
      ORDER BY
      pId,
      num ASC