|
|
@ -84,11 +84,9 @@ |
|
|
qd.current_quote_detail_item_no, |
|
|
qd.current_quote_detail_item_no, |
|
|
pp.ifs_part_no, |
|
|
pp.ifs_part_no, |
|
|
convert(decimal(20,6),(case when exchange_rate2 = 0 or exchange_rate2 is null then 0 else unit_price/exchange_rate2 end)) as unitPriceRate |
|
|
convert(decimal(20,6),(case when exchange_rate2 = 0 or exchange_rate2 is null then 0 else unit_price/exchange_rate2 end)) as unitPriceRate |
|
|
|
|
|
|
|
|
from plm_quote_group_detail qd |
|
|
from plm_quote_group_detail qd |
|
|
left join plm_quote q on qd.quote_id = q.id |
|
|
left join plm_quote q on qd.quote_id = q.id |
|
|
left join part pp |
|
|
|
|
|
on qd.part_no = pp.part_no and qd.site = pp.site |
|
|
|
|
|
|
|
|
left join part pp on qd.part_no = pp.part_no and qd.site = pp.site |
|
|
<where> |
|
|
<where> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
and qd.id = #{id} |
|
|
and qd.id = #{id} |
|
|
|