项目清单 新增字段符合-未符合-不展示逻辑 以及部分条件下未维护清单不显示问题

This commit is contained in:
yuezhihang
2021-12-06 09:45:36 +08:00
parent 02edc0ba2e
commit 3a952eea82
3 changed files with 15 additions and 4 deletions
@@ -120,10 +120,10 @@
ON team.project_code = library.project_number
WHERE
<if test="flag == 1">
library.id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
library.id NOT IN ( SELECT DISTINCT project_id FROM sar_stand_project_relation WHERE project_id is NOT NULL )
</if>
<if test="flag == 2">
library.id IN ( SELECT project_id FROM sar_stand_project_relation )
library.id IN ( SELECT DISTINCT project_id FROM sar_stand_project_relation WHERE project_id is NOT NULL )
</if>
<if test="flag == 4">
1=1