Browse Source

日志1

Lishi
xxe 2 years ago
parent
commit
ca65621b4f
2 changed files with 4 additions and 2 deletions
  1. +2
    -2
      HKCardOUT/HKCardOUT.csproj
  2. +2
    -0
      HKCardOUT/QuartzUtil/Job/QuartzJob.cs

+ 2
- 2
HKCardOUT/HKCardOUT.csproj View File

@@ -14,9 +14,9 @@
<AssemblyVersion>1.0.0.0</AssemblyVersion> <AssemblyVersion>1.0.0.0</AssemblyVersion>
<Platforms>AnyCPU;x86</Platforms> <Platforms>AnyCPU;x86</Platforms>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<!--<PropertyGroup>
<ApplicationManifest>App.manifest</ApplicationManifest> <ApplicationManifest>App.manifest</ApplicationManifest>
</PropertyGroup>
</PropertyGroup>-->
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE;Core</DefineConstants> <DefineConstants>TRACE;Core</DefineConstants>
</PropertyGroup> </PropertyGroup>


+ 2
- 0
HKCardOUT/QuartzUtil/Job/QuartzJob.cs View File

@@ -13,9 +13,11 @@ namespace HKCardOUT.QuartzUtil.Job
{ {
default: default:
{ {

var WaitSync = DbContext.Context.Queryable<SaleLog>().Where(t => t.IsSync == false).ToList(); var WaitSync = DbContext.Context.Queryable<SaleLog>().Where(t => t.IsSync == false).ToList();
if (WaitSync.Count > 0) if (WaitSync.Count > 0)
{ {
HKLog.HKLogImport.WriteInfo($"订单推送执行,推送数量{WaitSync.Count}");
foreach (var input in WaitSync) foreach (var input in WaitSync)
{ {
var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); var res = RemoteService.SyncSaleLog(input.CardNo, input.Location);


Loading…
Cancel
Save