@ -777,7 +777,7 @@ dbo.Get_Part_DescSpec(site,WX_PartNo) as wxSpec,dbo.Get_WorkCenter_Type(Site,Wor
</delete>
<update id= "changeRoutingStatus" parameterType= "com.gaotao.modules.base.entity.RoutingHeaderData" >
update RoutingHeader SET status=#{status} where Site=#{site} and PartNo=#{partNo} and RevNo=#{revNo}
update RoutingHeader SET status=#{status},status_DB=#{statusDb},PhaseOutDate=#{phaseOutDate} where Site=#{site} and PartNo=#{partNo} and RevNo=#{revNo}
</update>
<select id= "checkRoutingStatus" resultType= "com.gaotao.modules.base.entity.RoutingHeaderData" >
@ -874,7 +874,7 @@ dbo.Get_Part_DescSpec(site,WX_PartNo) as wxSpec,dbo.Get_WorkCenter_Type(Site,Wor
<update id= "closeOldBom" parameterType= "com.gaotao.modules.base.entity.CopyRoutingData" >
Update RoutingHeader
Set PhaseOutDate=(Case when Status_DB!='S' then #{phaseInDate1} else PhaseOutDate end),Status_DB='S',Status='停用',DefaultFlag='N'
where Site=#{site} and PartNo=#{partNo} and RevNo=#{revNo}
where Site=#{site} and PartNo=#{partNo1 } and RevNo=#{revNo}
</update>
<select id= "checkRoutingDefaultFlag" resultType= "com.gaotao.modules.base.entity.RoutingHeaderData" >