@@ -10,6 +10,8 @@
COUNT(*)
FROM
`dl_plan`
- WHERE deleted = 0;
+ WHERE
+ deleted = 0
+ AND state = 1;
</select>
</mapper>