Browse Source

打开PDA功能界面报错 RDER BY items must appear in the select list if SELECTISTINCT is specified

master
姜鹏 1 year ago
parent
commit
f8523dad76
  1. 22
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

22
ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs

@ -5481,7 +5481,7 @@ namespace ICSSoft.DataProject
#region 采购退货 #region 采购退货
if (TransType == TransTypeEnum.PurchaseReceiveDoctNegative.GetDescription()) if (TransType == TransTypeEnum.PurchaseReceiveDoctNegative.GetDescription())
{ {
columns = @" DISTINCT a.DNCode AS TransCode";
columns = @" DISTINCT a.DNCode AS TransCode,a.MTIME";
tableName = @"ICSDeliveryNotice a "; tableName = @"ICSDeliveryNotice a ";
@ -5491,7 +5491,7 @@ namespace ICSSoft.DataProject
#region 其他出库 #region 其他出库
else if (TransType == TransTypeEnum.OtherOutDoc.GetDescription()) else if (TransType == TransTypeEnum.OtherOutDoc.GetDescription())
{ {
columns = @" DISTINCT a.OutCode AS TransCode";
columns = @" DISTINCT a.OutCode AS TransCode,a.MTIME";
tableName = @"ICSOtherOut a "; tableName = @"ICSOtherOut a ";
@ -5501,7 +5501,7 @@ namespace ICSSoft.DataProject
#region 一步调拨(合并发料) #region 一步调拨(合并发料)
else if (TransType == TransTypeEnum.OneStepTransferDocIn.GetDescription()) else if (TransType == TransTypeEnum.OneStepTransferDocIn.GetDescription())
{ {
columns = @" DISTINCT a.TransferNO AS TransCode";
columns = @" DISTINCT a.TransferNO AS TransCode,a.MTIME";
tableName = @"ICSTransfer a "; tableName = @"ICSTransfer a ";
@ -5511,7 +5511,7 @@ namespace ICSSoft.DataProject
#region 生产发料(合并发料) #region 生产发料(合并发料)
else if (TransType == TransTypeEnum.MOIssueDoc.GetDescription()) else if (TransType == TransTypeEnum.MOIssueDoc.GetDescription())
{ {
columns = @" DISTINCT b.MOCode AS TransCode";
columns = @" DISTINCT b.MOCode AS TransCode,a.MTIME";
tableName = @" ICSMOPick a tableName = @" ICSMOPick a
INNER JOIN ICSMO b ON a.MODetailID=b.MODetailID AND a.WorkPoint=b.WorkPoint "; INNER JOIN ICSMO b ON a.MODetailID=b.MODetailID AND a.WorkPoint=b.WorkPoint ";
@ -5522,7 +5522,7 @@ namespace ICSSoft.DataProject
#region 开立材料出库(合并发料) #region 开立材料出库(合并发料)
else if (TransType == TransTypeEnum.MOIssue.GetDescription()) else if (TransType == TransTypeEnum.MOIssue.GetDescription())
{ {
columns = @" DISTINCT a.IssueCode AS TransCode";
columns = @" DISTINCT a.IssueCode AS TransCode,a.MTIME";
tableName = @" ICSMOIssue a "; tableName = @" ICSMOIssue a ";
@ -5532,7 +5532,7 @@ namespace ICSSoft.DataProject
#region 生产发料-领料申请单 #region 生产发料-领料申请单
else if (TransType == TransTypeEnum.MOApply.GetDescription()) else if (TransType == TransTypeEnum.MOApply.GetDescription())
{ {
columns = @" DISTINCT a.ApplyCode AS TransCode";
columns = @" DISTINCT a.ApplyCode AS TransCode,a.MTIME";
tableName = @" ICSMOApply a tableName = @" ICSMOApply a
INNER JOIN ICSMO b ON b.MOCode=a.SourceCode and a.SourceSequence = b.Sequence AND a.WorkPoint=b.WorkPoint"; INNER JOIN ICSMO b ON b.MOCode=a.SourceCode and a.SourceSequence = b.Sequence AND a.WorkPoint=b.WorkPoint";
@ -5543,7 +5543,7 @@ namespace ICSSoft.DataProject
#region 开立委外材料出库(合并发料) #region 开立委外材料出库(合并发料)
else if (TransType == TransTypeEnum.OOIssue.GetDescription()) else if (TransType == TransTypeEnum.OOIssue.GetDescription())
{ {
columns = @" DISTINCT a.IssueCode AS TransCode";
columns = @" DISTINCT a.IssueCode AS TransCode,a.MTIME";
tableName = @" ICSOIssue a "; tableName = @" ICSOIssue a ";
@ -5553,7 +5553,7 @@ namespace ICSSoft.DataProject
#region 委外领料申请单发料(合并发料) #region 委外领料申请单发料(合并发料)
else if (TransType == TransTypeEnum.OOApply.GetDescription()) else if (TransType == TransTypeEnum.OOApply.GetDescription())
{ {
columns = @" DISTINCT a.ApplyCode AS TransCode";
columns = @" DISTINCT a.ApplyCode AS TransCode,a.MTIME";
tableName = @" ICSOApply a "; tableName = @" ICSOApply a ";
@ -5563,7 +5563,7 @@ namespace ICSSoft.DataProject
#region 委外发料(合并发料) #region 委外发料(合并发料)
else if (TransType == TransTypeEnum.OutsourcingIssueDoc.GetDescription()) else if (TransType == TransTypeEnum.OutsourcingIssueDoc.GetDescription())
{ {
columns = @" DISTINCT b.OOCode AS TransCode";
columns = @" DISTINCT b.OOCode AS TransCode,a.MTIME";
tableName = @" ICSOOPick a tableName = @" ICSOOPick a
INNER JOIN ICSOutsourcingOrder b ON a.OODetailID=b.OODetailID AND a.WorkPoint=b.WorkPoint "; INNER JOIN ICSOutsourcingOrder b ON a.OODetailID=b.OODetailID AND a.WorkPoint=b.WorkPoint ";
@ -5574,7 +5574,7 @@ namespace ICSSoft.DataProject
#region 销售出库(合并发料) #region 销售出库(合并发料)
else if (TransType == TransTypeEnum.SalesShipmentDoc.GetDescription()) else if (TransType == TransTypeEnum.SalesShipmentDoc.GetDescription())
{ {
columns = @" DISTINCT a.SDNCode AS TransCode";
columns = @" DISTINCT a.SDNCode AS TransCode,a.MTIME";
tableName = @"ICSSDN a "; tableName = @"ICSSDN a ";
@ -5585,7 +5585,7 @@ namespace ICSSoft.DataProject
else if (TransType == TransTypeEnum.Check.GetDescription()) else if (TransType == TransTypeEnum.Check.GetDescription())
{ {
columns = @" DISTINCT a.CheckCode AS TransCode";
columns = @" DISTINCT a.CheckCode AS TransCode,a.MTIME";
tableName = @"ICSCheck a "; tableName = @"ICSCheck a ";

Loading…
Cancel
Save