添加首页数据查询

This commit is contained in:
YY
2025-07-22 15:06:26 +08:00
parent de1d80f36e
commit 24c87756c9
6 changed files with 89 additions and 5 deletions

View File

@ -279,4 +279,14 @@
where cat.status = 0
and cat.start_time <= now()
</select>
<select id="selectAnnualrviewCountNum" resultType="com.chinaunicom.zyhy.ebtp.supplier.coscoEvaluate.vo.EvaluateCountNumVo">
SELECT
count( CASE WHEN STATUS = 0 THEN 1 END ) AS noStartNum,
count( CASE WHEN STATUS = 1 THEN 1 END ) AS doingNum,
count( CASE WHEN STATUS = 2 THEN 1 END ) AS completeNum
FROM
cosco_annualreview_task
WHERE
del_flag = 'normal'
</select>
</mapper>

View File

@ -433,6 +433,14 @@
</where>
order by cet.create_time desc
</select>
<select id="selectEvaluateCountNum" resultType="com.chinaunicom.zyhy.ebtp.supplier.coscoEvaluate.vo.EvaluateCountNumVo">
select
count(case when status = 0 then 1 end) as noStartNum,
count(case when status = 1 then 1 end) as doingNum,
count(case when approve_status = 0 then 1 end) as auditNum,
count(case when approve_status = 1 or approve_status = 2 then 1 end) as completeNum
from cosco_evaluate_task
where del_flag='normal'
</select>
</mapper>