|
|
|
@ -165,4 +165,22 @@ |
|
|
|
</if> |
|
|
|
order by rh.phase_in_date desc,rh.create_date desc |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="computeYield"> |
|
|
|
update plm_quote_detail_bom_tree |
|
|
|
|
|
|
|
set yield=isnull(d.yield_rate,0.0) |
|
|
|
|
|
|
|
from part p,part_product_group d |
|
|
|
|
|
|
|
where plm_quote_detail_bom_tree.site=#{site} |
|
|
|
|
|
|
|
and plm_quote_detail_bom_tree.quote_id=#{quoteId} |
|
|
|
|
|
|
|
and plm_quote_detail_bom_tree.quote_detail_id=#{quoteDetailId} |
|
|
|
|
|
|
|
and plm_quote_detail_bom_tree.part_no=p.part_no |
|
|
|
|
|
|
|
and p.OtherGroup2=d.product_group_id |
|
|
|
</update> |
|
|
|
</mapper> |