Blame view

Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Domain.Shared/Dtos/BankInterestRecordDto.cs 818 Bytes
515fceeb   “wangming”   框架初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace Yi.Framework.Rbac.Domain.Shared.Dtos
  {
      /// <summary>
      /// 当前银行记录
      /// </summary>
      public class BankInterestRecordDto
      {
          public DateTime CreationTime { get; set; }
  
          /// <summary>
          /// 第三方的比较值
          /// </summary>
          public decimal ComparisonValue { get; set; }
  
          /// <summary>
          /// 当前汇率值
          /// </summary>
          public decimal Value { get; set; }
  
          /// <summary>
          /// 判断时间是否过期
          /// </summary>
          /// <returns></returns>
          public bool IsExpire()
          {
              return (DateTime.Now-CreationTime).TotalHours >= 1;
          }
  
      }
  }