|
@@ -133,22 +133,13 @@ namespace MySystem
|
|
|
{
|
|
|
//如果没过期并且当前退款金额没超过最大退款金额,就执行
|
|
|
decimal GetMoney = suborder.MaxDivi - suborder.CurDivi;
|
|
|
- decimal DiffMoney = 0;
|
|
|
if (GetMoney >= DiviMoney)
|
|
|
{
|
|
|
GetMoney = DiviMoney;
|
|
|
}
|
|
|
- else
|
|
|
- {
|
|
|
- DiffMoney = DiviMoney - GetMoney;
|
|
|
- }
|
|
|
if (GetMoney > minProfit)
|
|
|
{
|
|
|
suborder.CurDivi += GetMoney;
|
|
|
- if (DiffMoney > 0)
|
|
|
- {
|
|
|
- OtherMoney += DiffMoney;
|
|
|
- }
|
|
|
ConsumerProfit cprofit = db.ConsumerProfit.Add(new ConsumerProfit()
|
|
|
{
|
|
|
CreateDate = DateTime.Now,
|