From 9002d6bff1b7859d5aff2ff2b14c4187813b9d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B0=20=E6=9C=B1?= <501697962@qq.com> Date: Fri, 15 Jul 2022 09:32:56 +0800 Subject: [PATCH] 1 --- NX.ERP.U8/Mom/MomOrderDAL.cs | 4 +++- NX.ERP.WebAPi/Filters/ApiResultAttribute.cs | 1 + NX.ERP.WebAPi/Web.config | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/NX.ERP.U8/Mom/MomOrderDAL.cs b/NX.ERP.U8/Mom/MomOrderDAL.cs index 46c5b86..b024f0d 100644 --- a/NX.ERP.U8/Mom/MomOrderDAL.cs +++ b/NX.ERP.U8/Mom/MomOrderDAL.cs @@ -20,7 +20,9 @@ namespace NX.ERP.U8.Mom { using (var conn = U8LoginContext.Instance.Connection) { - string strSQL = @" select a.MoId as ProductOrderId,a.moCode as ProductOrderNo,ISNULL( ModifyDate,createDate) as ModifyDate,case when(b.Ufts>a.Ufts) then CONVERT(BIGINT,b.Ufts) else CONVERT(BIGINT,a.Ufts) end AS pubufts,a.CreateDate as ProductDate,a.CreateUser as PreparedBy, + string strSQL = @" select a.MoId as ProductOrderId,a.moCode as ProductOrderNo,ISNULL( ModifyDate,createDate) as ModifyDate, + case when(b.Ufts>a.Ufts) then CONVERT(BIGINT,b.Ufts) else CONVERT(BIGINT,a.Ufts) end AS pubufts, + a.CreateDate as ProductDate,a.CreateUser as PreparedBy, b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoTypeId,d.DueDate,b.Remark as Remark,ISNULL( b.MDeptCode,'53') as MDeptCode,a.MoCode as ProductOrderNo, a.CreateDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,b.QualifiedInQty,b.SortSeq,b.SoCode,b.Status,InvDetail.cInvName as ProductName ,InvDetail.cInvStd ProductSpecsModel, c.AllocateId as id ,c.AllocateId as AllocateId,c.MoDId as ProductOrderDtlId,c.ChangeRate as iinvexchrate,c.AuxUnitCode,c.InvCode as MaterialCode,InvLocate.cInvName as MaterialName,InvLocate.cSrpolicy as Srpolicy,InvLocate.cInvStd as MaterialSpecsModel,b.MoId as ProductOrderId, c.IssQty as IssQty,c.Qty, diff --git a/NX.ERP.WebAPi/Filters/ApiResultAttribute.cs b/NX.ERP.WebAPi/Filters/ApiResultAttribute.cs index 73bfcf0..b93b8e9 100644 --- a/NX.ERP.WebAPi/Filters/ApiResultAttribute.cs +++ b/NX.ERP.WebAPi/Filters/ApiResultAttribute.cs @@ -17,6 +17,7 @@ namespace NX.ERP.WebAPi.Filters if (actionExecutedContext.Exception == null) { var uf = new U8.U8Pubufts().GetPubufts(); + //long uf = 34703066; ResultModel result = new ResultModel { diff --git a/NX.ERP.WebAPi/Web.config b/NX.ERP.WebAPi/Web.config index 89eb379..33e08ee 100644 --- a/NX.ERP.WebAPi/Web.config +++ b/NX.ERP.WebAPi/Web.config @@ -6,8 +6,8 @@ - - + +