Skip to content

Commit f96b772

Browse files
author
苏和
committed
update case analyze sql
1 parent 8fdaf31 commit f96b772

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ build/*
55
.project
66
.metadata
77
WebContent/WEB-INF/lib/*
8+
/build/

src/com/intel/cid/common/dao/impl/TestCaseDaoImpl.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ public Object mapRow(ResultSet rs, int i)
758758

759759
public List<TestCase> listTestCaseNumInProjectByFeature(int id) {
760760
String sql = "select b.FEATURENAME, count(*) as Num from testcase a left join feature b on a.featureid=b.FEATUREID "
761-
+ "where a.PROJECTID='"+id+"' group by a.FEATUREID";
761+
+ "where (a.status <> 1 or a.status is null) and a.PROJECTID='"+id+"' group by a.FEATUREID";
762762
logger.info("listTestCaseNumInProjectByFeature sql:" + sql);
763763
@SuppressWarnings("unchecked")
764764
List<TestCase> caseList = userJdbcTemplate.query(sql,
@@ -776,7 +776,7 @@ public Object mapRow(ResultSet rs, int i)
776776

777777
public List<TestCase> listTestCaseNumInProjectByAuto(int id) {
778778
String sql = "select b.AUTONAME, count(*) as Num from testcase a left join automation b on a.autoid=b.autoid "
779-
+ "where a.PROJECTID='"+id+"' group by a.autoid";
779+
+ "where (a.status <> 1 or a.status is null) and a.PROJECTID='"+id+"' group by a.autoid";
780780
logger.info("listTestCaseNumInProjectByAuto sql:" + sql);
781781
@SuppressWarnings("unchecked")
782782
List<TestCase> caseList = userJdbcTemplate.query(sql,

0 commit comments

Comments
 (0)