@@ -367,7 +367,7 @@
FROM t_customer_carbon_val a
INNER JOIN t_customer_info b ON b.guid = a.t_customer_id
WHERE a.year_time BETWEEN YEAR(DATE_SUB(NOW(),INTERVAL 3 YEAR)) AND YEAR(NOW())
- AND a.type = 1
+ AND a.`status` = 1
<if test="type != null and type == 1">
AND b.customer_type = 1
</if>