|
|
@ -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) |
|
|
|