This commit is contained in:
高飞 2025-11-12 09:54:42 +08:00
parent b2d7264768
commit 67e3326469
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
LEFT JOIN HJGL_BS_Welder AS Welder2 ON Welder2.WED_ID = UsingPlan.UsingManTwo LEFT JOIN HJGL_BS_Welder AS Welder2 ON Welder2.WED_ID = UsingPlan.UsingManTwo
LEFT JOIN dbo.Weld_UsingMat usingMat ON usingMat.UsingPlanId = UsingPlan.UsingPlanId LEFT JOIN dbo.Weld_UsingMat usingMat ON usingMat.UsingPlanId = UsingPlan.UsingPlanId
WHERE (UsingPlan.IsCancel=0 OR UsingPlan.IsCancel IS NULL) WHERE (UsingPlan.IsCancel=0 OR UsingPlan.IsCancel IS NULL)
AND UsingPlan.IsSubmit=1 AND convert(char(10),UsingPlan.OrderDate,120)=convert(char(10),GetDate(),120) AND UsingPlan.IsSubmit=1 AND (convert(char(10),UsingPlan.OrderDate,120)=convert(char(10),GetDate(),120) or dateadd(day,1,UsingPlan.OrderDate)>GETDATE())
AND usingMat.UsingMatId IS NULL -- AND usingMat.UsingMatId IS NULL --
--AND (UsingPlan.IsNeedConfirm IS NULL OR UsingPlan.IsNeedConfirm = 0) -- --AND (UsingPlan.IsNeedConfirm IS NULL OR UsingPlan.IsNeedConfirm = 0) --
AND UsingPlan.UsingManOne=@WelderId"; AND UsingPlan.UsingManOne=@WelderId";