LEFT JOIN area ar ON a.production_area = ar.area_id
LEFT JOIN area ar ON a.production_area = ar.area_id
where a.site=#{site} and a.notify_no=#{notifyNo} and b.order_type='noorder'
where a.site=#{site} and a.notify_no=#{notifyNo} and b.order_type='noorder'
</select>
</select>
<updateid="updateMaterialDetail">
update SOIssueNotifyOrderMaterialList set qty_to_issue = #{qtyToIssue} where notify_no = #{notifyNo} and site =#{site} and item_no=#{itemNo} and BOM_item_no=#{bOMItemNo}