From 908027331273ceae9c4c23d087b0cd070948f42c Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期三, 12 二月 2025 13:51:11 +0800
Subject: [PATCH] 增加批量精力审批

---
 cylsg/cylsg.Application/CyOS/CyOSStaffController.cs |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs b/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs
index 1c5135c..705d511 100644
--- a/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs
+++ b/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs
@@ -195,13 +195,7 @@
             pram.EvaluationTime = DateTime.Now;     
             pram.RewardMoney = 0;
             pram.RewardType = 1;
-         
-           
-
-
-
-
-
+            pram.Keyid = null;
             await  _SugarClient.InsertNav(pram).Include(x=>x.WorkPlanAttachments).ExecuteCommandAsync();
             return true;
             
@@ -318,12 +312,11 @@
             {
                 throw Oops.Oh("娌℃湁鏉冮檺");
             }
-            return await _SugarClient.Queryable<OaWorkPlan>().Includes(x=>x.SentStaff).Includes(x=>x.Depart).Includes(x=>x.WorkPlanAttachments).Where(x => x.Keyid == id).FirstAsync();
+            return await _SugarClient.Queryable<OaWorkPlan>().Includes(x=>x.SentStaff).Includes(x => x.OaWorkPlanShenpis,y=>y.ApprovalStaff).Includes(x=>x.Depart).Includes(x=>x.WorkPlanAttachments).Where(x => x.Keyid == id).FirstAsync();
         }
         /// <summary>
         /// 鍒犻櫎
         /// </summary>
-        /// <param name="pram"></param>
         /// <returns></returns>
         [HttpDelete]
         public async Task<bool> DelOderAsync(int id )

--
Gitblit v1.9.1