You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
513 B
27 lines
513 B
1 year ago
|
namespace SiNan.Model.Core
|
||
|
{
|
||
|
public class ROICore
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 花费
|
||
|
/// </summary>
|
||
|
public decimal Cost { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 成交额
|
||
|
/// </summary>
|
||
|
public decimal Amount { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// ROI
|
||
|
/// </summary>
|
||
|
public decimal ROI
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return Cost == 0M ? 0M : Math.Round(Amount / Cost, 2);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|