feat(系统设置): 项目管理高级查询接口优化

#14443 /project/listAll 需要支持 带jirakey/tapdId等的高级查询
This commit is contained in:
song-cc-rock 2022-06-27 16:01:27 +08:00 committed by 刘瑞斌
parent 0e6af9affd
commit ddb157eeb0
1 changed files with 28 additions and 0 deletions

View File

@ -83,6 +83,34 @@
#{value}
</foreach>
</when>
<when test="key == 'tapd_id'">
AND p.platform = 'Tapd'
AND p.tapd_id IN
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</when>
<when test="key == 'jira_key'">
AND p.platform = 'Jira'
AND p.jira_key IN
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</when>
<when test="key == 'zentao_id'">
AND p.platform = 'Zentao'
AND p.zentao_id IN
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</when>
<when test="key == 'azure_devops_id'">
AND p.platform = 'AzureDevops'
AND p.azure_devops_id IN
<foreach collection="values" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</when>
</choose>
</if>
</foreach>