|
@@ -31,24 +31,7 @@ namespace MySystem
|
|
PxcModels.WebCMSEntities db = new PxcModels.WebCMSEntities();
|
|
PxcModels.WebCMSEntities db = new PxcModels.WebCMSEntities();
|
|
DateTime start = DateTime.Now.AddDays(-10);
|
|
DateTime start = DateTime.Now.AddDays(-10);
|
|
int StartId = int.Parse(function.CheckInt(function.ReadInstance("/SycnSp/TradeRecordId.txt")));
|
|
int StartId = int.Parse(function.CheckInt(function.ReadInstance("/SycnSp/TradeRecordId.txt")));
|
|
- // IQueryable<TradeRecord> trades = spdb.TradeRecord.Where(m => m.Id >= StartId && m.CreateDate >= start && m.Status == 1).OrderBy(m => m.CreateDate);
|
|
|
|
- List<TradeRecord> trades = new List<TradeRecord>();
|
|
|
|
- trades.Add(new TradeRecord()
|
|
|
|
- {
|
|
|
|
- ProductType = "10",
|
|
|
|
- Field2 = "620522****0017",
|
|
|
|
- Field1 = "199****5853",
|
|
|
|
- DigAmt = 0.00M,
|
|
|
|
- SerEntryMode = "0",
|
|
|
|
- BankCardType = "01",
|
|
|
|
- TradeType = "M015",
|
|
|
|
- TradeAmount = 1000M,
|
|
|
|
- TradeSnNo = "0000320226624650120068",
|
|
|
|
- TradeSerialNo = "23032117055533128544",
|
|
|
|
- MerName = "王**",
|
|
|
|
- MerNo = "110000004032435",
|
|
|
|
- CreateDate = DateTime.Parse("2023-03-21 17:05:55.0"),
|
|
|
|
- });
|
|
|
|
|
|
+ IQueryable<TradeRecord> trades = spdb.TradeRecord.Where(m => m.Id >= StartId && m.CreateDate >= start && m.Status == 1).OrderBy(m => m.CreateDate);
|
|
foreach (TradeRecord trade in trades.ToList())
|
|
foreach (TradeRecord trade in trades.ToList())
|
|
{
|
|
{
|
|
bool op = true;
|
|
bool op = true;
|