|
|
|
@ -444,30 +444,30 @@ |
|
|
|
</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}, ','))) |
|
|
|
(b.project_no like '%'+#{query.projectNo}+'%' OR b.project_no IN (SELECT Value FROM CKT_MES_II_REAL.dbo.SplitString(#{query.projectNo}, ','))) |
|
|
|
</if> |
|
|
|
<if test="query.projectDesc != null and query.projectDesc != ''"> |
|
|
|
and b.project_desc like #{query.projectDesc} |
|
|
|
and b.project_desc like '%'+#{query.projectDesc}+'%' |
|
|
|
</if> |
|
|
|
<if test="query.projectPartId != null and query.projectPartId != ''"> |
|
|
|
and a.id = #{query.projectPartId} |
|
|
|
</if> |
|
|
|
<if test="query.testPartNo != null and query.testPartNo != ''"> |
|
|
|
AND ( |
|
|
|
a.test_part_no like #{query.testPartNo} |
|
|
|
a.test_part_no like '%'+#{query.testPartNo}+'%' |
|
|
|
OR a.test_part_no IN ( |
|
|
|
SELECT Value FROM CKT_MES_II_REAL.dbo.SplitString(#{query.testPartNo}, ',') |
|
|
|
) |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="query.partDesc != null and query.partDesc != ''"> |
|
|
|
and a.part_desc like #{query.partDesc} |
|
|
|
and a.part_desc like '%'+#{query.partDesc}+'%' |
|
|
|
</if> |
|
|
|
<if test="query.customerNo != null and query.customerNo != ''"> |
|
|
|
and a.customer_no like #{query.customerNo} |
|
|
|
and a.customer_no like '%'+#{query.customerNo}+'%' |
|
|
|
</if> |
|
|
|
<if test="query.customerDesc != null and query.customerDesc != ''"> |
|
|
|
and c.customer_desc like #{query.customerDesc} |
|
|
|
and c.customer_desc like '%'+#{query.customerDesc}+'%' |
|
|
|
</if> |
|
|
|
<if test="query.buDesc != null and query.buDesc != ''"> |
|
|
|
AND dbo.get_bu_desc ( b.site, b.bu_no ) = #{query.buDesc} |
|
|
|
|