Ver Fonte

添加日志

qinchaoyue há 3 meses atrás
pai
commit
9cfaf1b809

+ 1 - 1
src/Hotline.Application/Snapshot/SnapshotApplicationBase.cs

@@ -564,7 +564,7 @@ public abstract class SnapshotApplicationBase
         _systemLog.Add(LogName, $"OrderNo: {order.No}", status: 1);
         if (result.Code == 0)
         {
-            int intervalTime = await _industryRepository.GetIntervalTimeAsync(orderSnapshot.IndustryId, _sysSetting.OvertimeBack, cancellationToken);
+            double intervalTime = await _industryRepository.GetIntervalTimeAsync(orderSnapshot.IndustryId, _sysSetting.OvertimeBack, cancellationToken);
             _systemLog.Add(LogName, $"OrderNo: {order.No}", $"intervalTime: {intervalTime} overtimeBack: {_sysSetting.OvertimeBack}");
             await _capPublisher.PublishDelayAsync(TimeSpan.FromHours(intervalTime), EventNames.GuiderSystemReplyDelay, new PostGuiderSystemDelayed(order.Id), cancellationToken: cancellationToken);
         }

+ 1 - 1
src/Hotline.Repository.SqlSugar/Snapshot/IndustryRepository.cs

@@ -17,7 +17,7 @@ public class IndustryRepository : BaseRepository<Industry>, IIndustryRepository,
     {
     }
 
-    public async Task<int> GetIntervalTimeAsync(string industryId, int defaultValue,  CancellationToken cancellationToken)
+    public async Task<double> GetIntervalTimeAsync(string industryId, double defaultValue,  CancellationToken cancellationToken)
     {
         var time = await Queryable().Where(m => m.Id == industryId).Select(m => m.IntervalTime).FirstAsync(cancellationToken);
         if (time <= 0)

+ 1 - 1
src/Hotline/Snapshot/Interfaces/IIndustryRepository.cs

@@ -9,5 +9,5 @@ using XF.Domain.Repository;
 namespace Hotline.Snapshot.Interfaces;
 public interface IIndustryRepository : IRepository<Industry>
 {
-    Task<int> GetIntervalTimeAsync(string industryId, int defaultValue, CancellationToken cancellationToken);
+    Task<double> GetIntervalTimeAsync(string industryId, double defaultValue, CancellationToken cancellationToken);
 }