fix(工作台): 仪表盘待办缺陷数目统计有误

--bug=1025659 --user=宋昌昌 [我的工作台]项目集成jira平台-同步缺陷后我的仪表盘-“我的待办”-缺陷管理数量是0,但是“我的待办”tab是584条 https://www.tapd.cn/55049933/s/1365030
This commit is contained in:
song-cc-rock 2023-04-21 10:55:11 +08:00 committed by 刘瑞斌
parent e07de33f38
commit 1c0aea3cdb
1 changed files with 12 additions and 1 deletions

View File

@ -18,7 +18,18 @@
<foreach collection="projectIds" item="projectId" separator="," open="(" close=")">
#{projectId}
</foreach>
and ss.status = 'new'
<!-- 过滤出非完成状态的issue(目前第三方平台的状态写死, 和列表页面一致, 后续插件可优化扩展) -->
and (
(
ss.platform != 'Local' and
ss.platform_status not in ('closed','已关闭','已完成','完成','拒绝','已拒绝','rejected','delete','resolved','Done','verified','已验证')
)
or
(
ss.platform = 'Local' and
ss.status not in ('closed','已关闭','已完成','完成','拒绝','已拒绝','rejected','delete','resolved','Done','verified','已验证')
)
)
and ss.creator = #{userId,jdbcType=VARCHAR}
</select>
<select id="getCountCreat" resultType="java.lang.Integer">