Browse Source

修改类型

SCP_CYJ
qian 6 months ago
parent
commit
79aaa56176
  1. 2
      Models/UniApiEntity/xxDiMaxes_Order.cs
  2. 4
      UniApiGroup/Controller/OdbcApiQadController.cs

2
Models/UniApiEntity/xxDiMaxes_Order.cs

@ -5,7 +5,7 @@ namespace CK.SCP.Models.UniApiEntity
public partial class xxDiMaxes_Order
{
[Key]
public int UID { get; set; }
public long UID { get; set; }
public string PURDOCNO { get; set; }
public int DI_BATCHNO { get; set; }
public string PURDOCITEMNO { get; set; }

4
UniApiGroup/Controller/OdbcApiQadController.cs

@ -1637,12 +1637,12 @@ namespace CK.SCP.GrupUniApi.Controller
{
try
{
DateTime time = DateTime.Now.AddYears(-1);
var hisList = idb.xxDiMaxes_Order.Where(q => q.CREATEDDATE > time).ToList();
// 读取一年内 所有审批完的一般材料订单
DataTable b = GetGeneralMaterialOrder();
List<GeneralMaterialOrder> orderlist = ChangKeTec.Utils.ListHelper.DataTableToList<GeneralMaterialOrder>(b);
List<xxDiMaxes_Order>maxes_Orders = ChangKeTec.Utils.ListHelper.DataTableToList<xxDiMaxes_Order>(b);
DateTime time = DateTime.Now.AddYears(-1);
var hisList = idb.xxDiMaxes_Order.Where(q=>q.CREATEDDATE> time).ToList();
// 取历史表不存在的数据
var expectedList = maxes_Orders.Where(x=> !hisList.Any(e=>e.DI_BATCHNO == x.DI_BATCHNO && e.PURDOCNO == x.PURDOCNO && e.PURDOCITEMNO ==x.PURDOCITEMNO)).ToList();
if (expectedList.Count() == 0)

Loading…
Cancel
Save