|
|
|
@ -430,6 +430,18 @@ |
|
|
|
) |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="query.feedingFlag != null and query.feedingFlag == 1 "> |
|
|
|
and ( |
|
|
|
select count(*) from plm_proofing_information ppi |
|
|
|
where ppi.project_id = a.project_id and ppi.test_part_id = a.id |
|
|
|
) > 0 |
|
|
|
</if> |
|
|
|
<if test="query.feedingFlag != null and query.feedingFlag == 2 "> |
|
|
|
and ( |
|
|
|
select count(*) from plm_proofing_information ppi |
|
|
|
where ppi.project_id = a.project_id and ppi.test_part_id = a.id |
|
|
|
) = 0 |
|
|
|
</if> |
|
|
|
<if test="query.projectNo != null and query.projectNo != ''"> |
|
|
|
AND |
|
|
|
(b.project_no = #{query.projectNo} OR b.project_no IN (SELECT Value FROM CKT_MES_II_REAL.dbo.SplitString(#{query.projectNo}, ','))) |
|
|
|
|