From d2e3bb9b2b1db88eb2491a7076e846343a5bbc65 Mon Sep 17 00:00:00 2001 From: xxe Date: Wed, 21 Sep 2022 10:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E8=B4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardOUT/Logic/Model/SaleLog.cs | 5 ----- HKCardOUT/Logic/RemoteService.cs | 4 ++-- HKCardOUT/Logic/Service/HKCore.cs | 4 ++-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/HKCardOUT/Logic/Model/SaleLog.cs b/HKCardOUT/Logic/Model/SaleLog.cs index 9449dfb..75778e0 100644 --- a/HKCardOUT/Logic/Model/SaleLog.cs +++ b/HKCardOUT/Logic/Model/SaleLog.cs @@ -16,11 +16,6 @@ namespace HKCardOUT.Logic.Model [SugarColumn(IsNullable = false)] public string CardNo { get; set; } /// - /// 消费金额 - /// - [SugarColumn(IsNullable = false, ColumnDataType = "decimal(10,2)")] - public decimal Money { get; set; } - /// /// 消费位置 /// [SugarColumn(IsNullable = false)] diff --git a/HKCardOUT/Logic/RemoteService.cs b/HKCardOUT/Logic/RemoteService.cs index 36da2c0..7ee1647 100644 --- a/HKCardOUT/Logic/RemoteService.cs +++ b/HKCardOUT/Logic/RemoteService.cs @@ -31,12 +31,12 @@ namespace HKCardOUT.Logic /// /// /// - public static bool SyncSaleLog(string CardNo, decimal Money) + public static bool SyncSaleLog(string CardNo, string StallId) { var data = IHttpMultiClient.HttpMulti.AddNode(t => { t.ReqType = MultiType.POST; - t.JsonParam = (new { Money, Type = -1, CardNum = CardNo }).ToJson(); + t.JsonParam = (new { GateId=StallId, Type = -1, CardNum = CardNo }).ToJson(); t.NodePath = ApiRoute.SyncSaleLog; }).Build().RunStringFirst(); return bool.Parse(data.ToModel()["data"].ToString()); diff --git a/HKCardOUT/Logic/Service/HKCore.cs b/HKCardOUT/Logic/Service/HKCore.cs index bd79714..b139bc0 100644 --- a/HKCardOUT/Logic/Service/HKCore.cs +++ b/HKCardOUT/Logic/Service/HKCore.cs @@ -31,7 +31,7 @@ namespace HKCardOUT.Logic.Service var entity = DbContext.Context.Insertable(input).CallEntityMethod(t => t.Create()).ExecuteReturnEntity(); if (entity.Id!=Guid.Empty) { - var res = RemoteService.SyncSaleLog(input.CardNo, input.Money); + var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); Main.GetInstance.Start(input.Location.AsInt()); DbContext.Context.Updateable().SetColumns(t => t.IsSync == true).Where(t => t.Id == entity.Id).ExecuteCommand(); return res; @@ -44,7 +44,7 @@ namespace HKCardOUT.Logic.Service var entity = DbContext.Context.Insertable(input).CallEntityMethod(t => t.Create()).ExecuteReturnEntity(); if (entity.Id!=Guid.Empty) { - var res = RemoteService.SyncSaleLog(input.CardNo, input.Money); + var res = RemoteService.SyncSaleLog(input.CardNo, input.Location); Main.GetInstance.Start(input.Location.AsInt()); DbContext.Context.Updateable().SetColumns(t => t.IsSync == true).Where(t => t.Id == entity.Id).ExecuteCommand(); return res;