From d5a4545c243435aa3dcd515dbd9dc6faf51f3e07 Mon Sep 17 00:00:00 2001
From: WX <wx036@qq.com>
Date: 星期三, 07 六月 2023 22:28:18 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.245.94:8000/r/RiskControl_RR_Fast

---
 GasolineBlend/Controllers/EvaReportExController.cs |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/GasolineBlend/Controllers/EvaReportExController.cs b/GasolineBlend/Controllers/EvaReportExController.cs
index 770b6ad..b91b122 100644
--- a/GasolineBlend/Controllers/EvaReportExController.cs
+++ b/GasolineBlend/Controllers/EvaReportExController.cs
@@ -7,6 +7,8 @@
 using System.Threading.Tasks;
 using System.Web;
 using System.Web.Mvc;
+using RiskControl.NewService.Entity.RiskControlRR;
+using RiskControl.NewService.Service;
 
 namespace GasolineBlend.Controllers
 {
@@ -145,6 +147,28 @@
                     {
                         string LingoModelPath = Server.MapPath(Configs.LingoM1Path);
                         _acc.GetCashRAROCListAsync(RId, account,LingoModelPath);
+                        //娑堣�楃Н鍒嗗瓨鍏ョ郴缁�20230525FX
+                        var UserId = OperatorProvider.Instance.Current.UserId;
+                        UseOrderService _orderService = new UseOrderService();
+                        SysBusinessPlanBLL _sysBusinessPlanBll = new SysBusinessPlanBLL();
+                        var userGrade = accountBll.GetUserGradeById(UserId);
+                        var freeDescNo = _sysBusinessPlanBll.GetFreeDescbyName("鍏徃璐㈡姤鏅洪鎺�");
+                        var vipDescNo = _sysBusinessPlanBll.GetVipDescbyName("鍏徃璐㈡姤鏅洪鎺�");
+                        UseOrder param = new UseOrder();
+                        param.CreateUserId = UserId;
+                        param.OrderType = "鍏徃璐㈡姤鏅洪鎺�";
+                        param.OrderNo = Guid.NewGuid().ToString("N");
+                        if (userGrade == UserGradeType.Free.GetDisplayName()) //鏅�氱増
+                        {
+                            param.OrderAmount = freeDescNo;
+                            param.PayAmount = freeDescNo;
+                        }
+                        else
+                        {
+                            param.OrderAmount = vipDescNo;
+                            param.PayAmount = vipDescNo;
+                        }
+                         _orderService.AddAsync(param,false);
                         return SuccessNoShow(data: "OK");
                     }
                     else

--
Gitblit v1.8.0