|
|
|
@ -87,7 +87,7 @@ |
|
|
|
o.id |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="lwStatistics2" resultType="com.research.system.domain.vo.ClientPrjProjInfoVo$Statistics$Zl"> |
|
|
|
<select id="zjStatistics2" resultType="com.research.system.domain.vo.ClientPrjProjInfoVo$Statistics$Zl"> |
|
|
|
select o.id as orgId, |
|
|
|
o.org_name as orgName, |
|
|
|
sum(case when a.category_id_1 = '11' then 1 else 0 end) as fm, |
|
|
|
@ -101,11 +101,29 @@ |
|
|
|
o.id |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="lwStatistics3" resultType="com.research.system.domain.vo.ClientPrjProjInfoVo$Statistics$Gcc"> |
|
|
|
|
|
|
|
<select id="zjStatistics3" resultType="com.research.system.domain.vo.ClientPrjProjInfoVo$Statistics$Gcc"> |
|
|
|
select o.id as orgId, |
|
|
|
o.org_name as orgName, |
|
|
|
count(a.id) as dtr |
|
|
|
from prj_proj_org o |
|
|
|
left join |
|
|
|
ach_achievement a on a.proj_org_id = o.id and category_id_1 = 5 |
|
|
|
where o.del_flag = 0 |
|
|
|
GROUP BY |
|
|
|
o.id |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="lwStatistics4" resultType="com.research.system.domain.vo.ClientPrjProjInfoVo$Statistics$Rcpy"> |
|
|
|
|
|
|
|
<select id="zjStatistics4" resultType="com.research.system.domain.vo.ClientPrjProjInfoVo$Statistics$Rcpy"> |
|
|
|
select o.id as orgId, |
|
|
|
o.org_name as orgName, |
|
|
|
sum(case when a.type = '0' then 1 else 0 end) as bsh, |
|
|
|
sum(case when a.type = '1' then 1 else 0 end) as bs, |
|
|
|
sum(case when a.type = '2' then 1 else 0 end) as ss |
|
|
|
from prj_proj_org o |
|
|
|
left join |
|
|
|
ach_achievement a on a.proj_org_id = o.id and category_id_1 = 6 |
|
|
|
where o.del_flag = 0 |
|
|
|
GROUP BY |
|
|
|
o.id |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
|