diff --git a/src/main/resources/mapper/base/BaseMapper.xml b/src/main/resources/mapper/base/BaseMapper.xml index 8dfffe0..d5a0f49 100644 --- a/src/main/resources/mapper/base/BaseMapper.xml +++ b/src/main/resources/mapper/base/BaseMapper.xml @@ -1103,7 +1103,7 @@ dbo.Get_Part_DescSpec(site,WX_PartNo) as wxSpec,dbo.Get_WorkCenter_Type(Site,Wor Update SORouting Set PreItemNo = - Isnull((Select Max(D.ItemNo) as PreItemNo from SORouting as D Where D.Site=SORouting.Site and D.OrderNo=SORouting.OrderNo and D.ItemNoD.ItemNo),0) ,NextItemNo = Isnull((Select Min(D.ItemNo) as NextItemNo from SORouting as D Where D.Site=SORouting.Site and D.OrderNo=SORouting.OrderNo and D.ItemNo>SORouting.ItemNo),0) where Site=#{site} and OrderNo=#{orderNo}