|
|
|
@ -204,7 +204,8 @@ |
|
|
|
so.order_ref1, |
|
|
|
so.order_ref2, |
|
|
|
so.order_ref3, |
|
|
|
so.order_ref4 |
|
|
|
so.order_ref4, |
|
|
|
so.order_ref5 |
|
|
|
FROM eam_object as eo |
|
|
|
LEFT JOIN sys_oss as so ON eo.site = so.order_ref1 and eo.bu_no = so.order_ref4 and eo.ObjectID = so.order_ref2 |
|
|
|
LEFT JOIN eam_location as el ON eo.site = el.site and eo.LocationID = el.LocationID and eo.bu_no = el.bu_no |
|
|
|
@ -218,6 +219,9 @@ |
|
|
|
<if test="query.buDesc != null and query.buDesc != ''"> |
|
|
|
AND dbo.get_bu_desc (eo.site, eo.bu_no) = #{query.buDesc} |
|
|
|
</if> |
|
|
|
<if test="query.fileName != null and query.fileName != ''"> |
|
|
|
AND so.file_name like '%' + #{query.fileName} +'%' |
|
|
|
</if> |
|
|
|
<if test="query.objectID != null and query.objectID != ''"> |
|
|
|
AND eo.ObjectID like '%' + #{query.objectID} +'%' |
|
|
|
</if> |
|
|
|
@ -239,6 +243,12 @@ |
|
|
|
<if test="query.orderRef3 != null and query.orderRef3 != ''"> |
|
|
|
AND so.order_ref3 = #{query.orderRef3} |
|
|
|
</if> |
|
|
|
<if test="query.searchFlag != null and query.searchFlag == 1"> |
|
|
|
AND so.file_name is not null |
|
|
|
</if> |
|
|
|
<if test="query.searchFlag != null and query.searchFlag == 2"> |
|
|
|
AND so.file_name is null |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
|