From 5c115de7bf2f1072ea2721fc00e68a53c2b83c2e Mon Sep 17 00:00:00 2001
From: tangxu <tangxu76880903>
Date: 星期三, 27 三月 2024 09:57:34 +0800
Subject: [PATCH] 添加众毅计算接口

---
 WebApi/Controllers/AnaPrjController.cs |   46 ++--------------------------------------------
 1 files changed, 2 insertions(+), 44 deletions(-)

diff --git a/WebApi/Controllers/AnaPrjController.cs b/WebApi/Controllers/AnaPrjController.cs
index 89a71b5..eb81f0f 100644
--- a/WebApi/Controllers/AnaPrjController.cs
+++ b/WebApi/Controllers/AnaPrjController.cs
@@ -31,8 +31,7 @@
         [Route("Debug")]
         [HttpGet]
         public IStation.Dto.ApiResult Debug(string info)
-        {
-    
+        { 
             IStation.LogHelper.Info("debug:"+ info);
  
 
@@ -129,7 +128,7 @@
 
             if (request.isSubmit)
             {
-                string error = await ZyConnectHelper.SubmitPrj(request.prj);//, (id) => { IStation.LogHelper.Info("SavePrj success id=" + id); }, (info) => { IStation.LogHelper.Info("SavePrj failse info:" + info); });//.Result;
+                string error = await ZyProjectHelper.SubmitPrj(request.prj);//, (id) => { IStation.LogHelper.Info("SavePrj success id=" + id); }, (info) => { IStation.LogHelper.Info("SavePrj failse info:" + info); });//.Result;
 
 
              
@@ -151,48 +150,7 @@
 
 
 
-        /// <summary>
-        /// 
-        /// </summary>
-        /// <param name="request"></param>
-        /// <returns></returns>
-        [Route("CalcPrj")]
-        [HttpPost]
-        public async Task<IStation.Dto.ApiResult> CalcPrj([FromBody] SavePrjRequest request)
-        {
-            if (request == null  )
-            {
-                return new IStation.Dto.ApiResult() { Code = ApiResultCode.Error, Message = "day null" };
-            }
-            if (request.prj == null)
-            {
-                return new IStation.Dto.ApiResult() { Code = ApiResultCode.Error, Message = "prj null" };
-            }
  
-            var ret = Common.HistoryAnaPrjFileHelper.SavePrj(  request.settting, request.requestBase, request.prj);
-
-            if (request.isSubmit)
-            {
-                string error = await ZyConnectHelper.SubmitPrj(request.prj);//, (id) => { IStation.LogHelper.Info("SavePrj success id=" + id); }, (info) => { IStation.LogHelper.Info("SavePrj failse info:" + info); });//.Result;
-
-
-
-
-                if (!string.IsNullOrEmpty(error))
-                {
-                    IStation.LogHelper.Info("Submit prj finish (fail) day:" + request.requestBase.StartTime + ",error:" + error);
-                    return new IStation.Dto.ApiResult<string>(error) { Code = ApiResultCode.Error };
-                }
-                else
-                {
-                    IStation.LogHelper.Info("Submit prj finish (success) day:" + request.requestBase.StartTime);
-                }
-            }
-
-
-            return new IStation.Dto.ApiResult<bool>(ret) { Code = ApiResultCode.Success };
-        }
-
 
 
     }

--
Gitblit v1.9.3