|
|
@ -274,7 +274,7 @@
|
|
|
|
MAX(law_sort) AS sort,
|
|
|
|
MAX(law_sort) AS sort,
|
|
|
|
COUNT(law_areas) AS count,
|
|
|
|
COUNT(law_areas) AS count,
|
|
|
|
SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) AS completed,
|
|
|
|
SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) AS completed,
|
|
|
|
100 * SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) / COUNT(law_areas) AS completion_rate
|
|
|
|
ROUND(100 * SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) / COUNT(law_areas)) AS completion_rate
|
|
|
|
FROM b_plan_enterprise
|
|
|
|
FROM b_plan_enterprise
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="req.plannedYear !=null and req.plannedYear!='' ">
|
|
|
|
<if test="req.plannedYear !=null and req.plannedYear!='' ">
|
|
|
@ -302,7 +302,7 @@
|
|
|
|
MAX(law_sort) AS sort,
|
|
|
|
MAX(law_sort) AS sort,
|
|
|
|
COUNT(law_areas) AS count,
|
|
|
|
COUNT(law_areas) AS count,
|
|
|
|
SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) AS completed,
|
|
|
|
SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) AS completed,
|
|
|
|
100 * SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) / COUNT(law_areas) AS completion_rate
|
|
|
|
ROUND(100 * SUM(CASE WHEN check_status = 1 THEN 1 ELSE 0 END) / COUNT(law_areas)) AS completion_rate
|
|
|
|
FROM b_plan_enterprise
|
|
|
|
FROM b_plan_enterprise
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="req.plannedYear !=null and req.plannedYear!='' ">
|
|
|
|
<if test="req.plannedYear !=null and req.plannedYear!='' ">
|
|
|
|