diff --git a/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml b/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml index 1045584413..0da2956493 100644 --- a/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml +++ b/workstation/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml @@ -18,7 +18,18 @@ #{projectId} - and ss.status = 'new' + + 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}