|
|
@ -116,7 +116,7 @@ else Convert(varchar(10),a.ActualCompleteDate,120 ) end as ActualCompleteDate |
|
|
|
left join {1}.dbo.[CBO_Department_Trl] as A14 With(NoLock) on (A14.SysMlFlag = 'zh-CN') and (A13.[ID] = A14.[ID]) |
|
|
|
|
|
|
|
LEFT JOIN {1}.dbo.[CBO_Wh] AS A22 With(NoLock) ON A22.ID=A.CompleteWh |
|
|
|
where (A.DocState=2 OR A.DocState=3) and A.[BusinessType] != 50 and (A.[BusinessType] != 52) |
|
|
|
where (A.DocState=2) and A.[BusinessType] != 50 and (A.[BusinessType] != 52) |
|
|
|
and (A.[BusinessType] != 2417) and (A.[IsMultiRouting] != 1) and A.[ItemMaster] is not null --and (A.[IsStartMO] != 1) |
|
|
|
and ISNULL(A.ModifiedOn,A.BusinessCreatedOn)>=@LastTime AND A12.id='{0}' |
|
|
|
|
|
|
@ -184,10 +184,10 @@ else Convert(varchar(10),a.ActualCompleteDate,120 ) end as ActualCompleteDate |
|
|
|
INNER JOIN ICSMO b ON a.Mocode=b.Mocode |
|
|
|
WHERE b.TenantId='{0}' and a.Org={2} ";
|
|
|
|
|
|
|
|
// values.Add("ID", "NEWID()");
|
|
|
|
// values.Add("ID", "NEWID()");.
|
|
|
|
values.Add("MoType", "'normal'");//辅机数量
|
|
|
|
values.Add("MOVER", "'1'");//辅机数量
|
|
|
|
values.Add("ProjectCode", "a.ProjectCode");//辅机数量
|
|
|
|
values.Add("ProjectCode", "a.NeedType");//需求分类
|
|
|
|
|
|
|
|
values.Add("MOINPUTQTY", "0");//辅机数量
|
|
|
|
values.Add("MOSCRAPQTY", "0");//辅机数量
|
|
|
|