|
|
@ -1951,7 +1951,7 @@ |
|
|
site in (select site from eam_access_site where username = #{query.userName}) |
|
|
site in (select site from eam_access_site where username = #{query.userName}) |
|
|
and (site + '-' + bu_no) in (select * from dbo.query_bu(#{query.userName})) |
|
|
and (site + '-' + bu_no) in (select * from dbo.query_bu(#{query.userName})) |
|
|
<if test="query.buNo != null and query.buNo != ''"> |
|
|
<if test="query.buNo != null and query.buNo != ''"> |
|
|
AND a.bu_no = #{query.buNo} |
|
|
|
|
|
|
|
|
AND bu_no = #{query.buNo} |
|
|
</if> |
|
|
</if> |
|
|
<if test = "query.inspectionNo != null and query.inspectionNo != ''"> |
|
|
<if test = "query.inspectionNo != null and query.inspectionNo != ''"> |
|
|
AND inspection_no LIKE '%' + #{query.inspectionNo} + '%' |
|
|
AND inspection_no LIKE '%' + #{query.inspectionNo} + '%' |
|
|
|