k94314517
2024-10-16 17efddc6a667670dca682bf36b51a43e99615e6d
server/system_service/src/main/resources/mappers/SystemDataPermissionMapper.xml
@@ -64,13 +64,9 @@
      <if test="dto.type != null">
        AND sdp.`TYPE` =  #{dto.type}
      </if>
      <if test="role.companyId != null">
        AND role.`COMPANY_ID` =  #{role.companyId}
      </if>
      <if test="userId != null">
        AND exists (select sr.id from system_user_role sr where sr.role_id=sdp.role_id and sr.user_id=#{userId} and sr.STATUS=0 and sr.deleted=0)
        AND exists (select sr.id from system_user_role sr where sr.role_id=sdp.role_id and sr.user_id=#{userId} and sr.deleted=0)
      </if>
    </where>
    order by role.`TYPE` asc
  </select>
</mapper>