<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="io.dataease.base.mapper.ext.ExtIssuesMapper">

    <select id="getIssues" resultType="io.dataease.base.domain.Issues">
        select issues.*
          from test_case_issues, issues
         where test_case_issues.issues_id = issues.id
           and test_case_issues.test_case_id = #{caseId}
           and issues.platform = #{platform}
          order by issues.create_time DESC
    </select>
</mapper>
