无关风月
3 天以前 df4733091b30b0434a04dacd0e844663114d4cfe
cloud-server-management/src/main/resources/mapper/RoleMapper.xml
@@ -42,6 +42,17 @@
      <if test="type==3">
         and objType =3 and objId =#{id}
      </if>
      <if test="type == 2">
         and (objType = 2 and objId =#{id}
         or
         <if test="storeIds != null and storeIds.size()>0">
            objId IN
            <foreach collection="storeIds" separator="," item="id" open="(" close=")">
               #{id}
            </foreach>
         </if>
         )
      </if>
   </select>
      <select id="roleTreeListByRoleId" resultType="com.dsh.course.model.node.ZTreeNode">
@@ -80,6 +91,17 @@
      <if test="type==3">
         and objType =3 and objId =#{id}
      </if>
         <if test="type == 2">
            and (objType = 2 and objId =#{id}
            or
            <if test="storeIds != null and storeIds.size()>0">
               objId IN
               <foreach collection="storeIds" separator="," item="id" open="(" close=")">
                  #{id}
               </foreach>
            </if>
            )
         </if>
      ) r1 ON r.ID = r1.ID
      ORDER BY
      pId,