订单、账号添加代理商标记

This commit is contained in:
“wanyongkang”
2021-02-19 15:26:36 +08:00
parent 6e890acbd7
commit 57bac48c78
4 changed files with 6 additions and 2 deletions

View File

@@ -49,5 +49,6 @@ namespace Hncore.Pass.Vpn.Domain
} }
public string Raw { get; set; } public string Raw { get; set; }
public int agent_id {get; set;}
} }
} }

View File

@@ -51,7 +51,7 @@ namespace Hncore.Pass.Vpn.Domain
public decimal? BackAmount { get; set; } = 0; public decimal? BackAmount { get; set; } = 0;
public string RefundReason { get; set; } public string RefundReason { get; set; }
public int agent_id {get; set;}
} }
} }

View File

@@ -78,6 +78,7 @@ namespace Hncore.Pass.Vpn.Domain
public int? ManagerId { get; set; } = 0; public int? ManagerId { get; set; } = 0;
public string ManagerName { get; set; } public string ManagerName { get; set; }
public int is_verify { get; set; } public int is_verify { get; set; }
public int agent_id {get; set;}
} }
} }

View File

@@ -270,7 +270,8 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
EndTime = DateTime.Now.AddDays(packageEntity.DayCount), EndTime = DateTime.Now.AddDays(packageEntity.DayCount),
PayChannel = request.PayChannel, PayChannel = request.PayChannel,
Channel = request.Channel, Channel = request.Channel,
IsAutoRefund = productEntity.AutoRefund IsAutoRefund = productEntity.AutoRefund,
agent_id = userEntity.agent_id
}; };
if (request.OrderType == OrderType.New || request.OrderType == OrderType.AgainBuy) if (request.OrderType == OrderType.New || request.OrderType == OrderType.AgainBuy)
{ {
@@ -534,6 +535,7 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
ChargeStatus = AccountChargeStatus.Normal, ChargeStatus = AccountChargeStatus.Normal,
UserId = order.UserId, UserId = order.UserId,
UserCode = order.UserName, UserCode = order.UserName,
agent_id = order.agent_id
}; };
accountEntitys.Add(accountEntity); accountEntitys.Add(accountEntity);
}); });