|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
inner join rules r on i.rule_id =r.id
|
|
|
|
|
inner join projects p on p.uuid =i.component_uuid
|
|
|
|
|
where i.project_uuid = #{projectUuid,jdbcType=VARCHAR}
|
|
|
|
|
and i.status='OPEN'
|
|
|
|
|
and p.root_uuid =#{projectUuid,jdbcType=VARCHAR} and p.uuid !=#{projectUuid,jdbcType=VARCHAR} and p."scope" ='FIL'
|
|
|
|
|
<if test="issueType != null">
|
|
|
|
|
and i.issue_type=#{issueType,jdbcType=INTEGER}
|
|
|
|
@ -28,6 +29,7 @@
|
|
|
|
|
inner join rules r on i.rule_id =r.id
|
|
|
|
|
inner join projects p on p.uuid =i.component_uuid
|
|
|
|
|
where i.project_uuid = #{projectUuid,jdbcType=VARCHAR}
|
|
|
|
|
and i.status='OPEN'
|
|
|
|
|
and p.root_uuid =#{projectUuid,jdbcType=VARCHAR} and p.uuid !=#{projectUuid,jdbcType=VARCHAR} and p."scope" ='FIL'
|
|
|
|
|
<if test="issueType != null">
|
|
|
|
|
and i.issue_type=#{issueType,jdbcType=INTEGER}
|
|
|
|
@ -40,11 +42,11 @@
|
|
|
|
|
|
|
|
|
|
<select id="queryDegree" resultType="net.educoder.ecsonar.model.dto.DegreeDTO">
|
|
|
|
|
select
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType}) total,
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType} and severity = 'MAJOR') major,
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType} and severity = 'MINOR') minor,
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType} and severity = 'BLOCKER') blocker,
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType} and severity = 'CRITICAL') critical,
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType} and status='OPEN') total,
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType} and severity = 'MAJOR' and status='OPEN') major,
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType} and severity = 'MINOR' and status='OPEN') minor,
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType} and severity = 'BLOCKER' and status='OPEN') blocker,
|
|
|
|
|
(select count(1) from issues i where project_uuid =#{projectUuid} and issue_type=#{issueType} and severity = 'CRITICAL' and status='OPEN') critical,
|
|
|
|
|
(select text_value from project_measures i where component_uuid =#{projectUuid} and metric_id = 80 order by id desc limit 1) levelStr
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|