feat: 项目绩效统计新增当月规划/准时上线指标并修复准时率口径

- ProgramCountDTO +2 字段:planReleaseStoryNum / onTimeNum
- IZtCountService.monthScopeByProgram 接入 storyReleaseOnTimeByProducts
  (自然月1~31口径,复用产品经理绩效同款 SQL,老 ±15 天口径不动)
- IZtCountService 团队准时率:零任务成员(无分配工时)不参与平均,
  避免个人准时率按 0 拉低团队值
- ZtStoryMapper storyReleaseOnTimeByProducts 准时子查询增加
  releasedDate >= '2000-01-01' 哨兵,排除禅道历史零日期('0000-00-00')
  导致未发布需求被误计准时的缺陷

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 13:02:41 +08:00
co-authored by Claude Fable 5
parent 41955cff3f
commit 0b8150eeac
3 changed files with 14 additions and 2 deletions
@@ -1397,6 +1397,7 @@
</foreach>) planReleaseStoryNum,
(SELECT count(1) waitRelease from zt_story
WHERE plan_end_date >=#{startTime} and plan_end_date &lt;=#{endTime}
and releasedDate &gt;='2000-01-01'
and releasedDate &lt;=plan_end_date
and releasedDate &lt;=#{endTime}
and status not in ('closed')