添加首页数据查询
This commit is contained in:
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user