禅道分析

整理excel语句
1、=G2&"("&A2&")"
2、=AN2&"、"&G2&"("&A2&")"


3、查数据语句
select b.keywords, count(*)
from zt_bug b,zt_build v
where b.openedbuild=v.id
and v.name='初始版本2'
and b.severity in (1,2,3)
and b.module in (
select id
from zt_module
where path like ',1,3,%'
or path like ',2,%'
)
group by b.keywords
order by keywords;


4、查模块信息
(1)查企业端
select id
from zt_module
where path like ',1,3,%'
(2)查审批端
select id
from zt_module
where path like ',2,%'

5、版本表
zt_build
值:
id name
1 初始版本
2 初始版本2


6、查版本问题数目
select openedbuild,count(*)
from zt_bug
group by openedbuild;

目前结果为:

openedbuild count(*)
1 497
1, 3
2 86
trunk 17

7、查未关闭,解决方案为空的
select b.keywords, count(*)
from zt_bug b,zt_build v
where b.openedbuild=v.id
and b.status in ('active','resolved')
and resolution is null
#and b.severity in (1,2,3)
and b.module in (
select id
from zt_module
where path like ',1,3,%'
or path like ',2,%'
)
group by b.keywords
order by keywords;

posted @ 2021-01-25 15:21  雪紫  阅读(128)  评论(0编辑  收藏  举报