update SOScheduledRouting set QtyReported=QtyReported+1 where Site =#{site} and OrderNo=#{orderNo} and S_ScheduledDate=#{orderDate} and S_ShiftNo=#{shiftId}
</update>
<updateid="updateSOSdelFlag">
update SOScheduledRouting set ClosedFlag='Y',Closedby=#{userId},ClosedDate=GetDate() where Site =#{site} and OrderNo=#{orderNo} and S_ScheduledDate=#{orderDate} and S_ShiftNo=#{shiftId}
select top 1 QtyReported,QtyRequired,SeqNo,S_WorkCenterNo,S_ResourceID from SOScheduledRouting where Site =#{site} and OrderNo=#{orderNo} and S_ScheduledDate=#{orderDate} and S_ShiftNo=#{shiftId}