From 08a02f3c7990c563e6c770c1957e929377a3083f Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 19 二月 2025 13:39:33 +0800
Subject: [PATCH] 删除投递

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

diff --git a/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs b/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs
index 60f705d..a888020 100644
--- a/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs
+++ b/cylsg/cylsg.Application/CyOS/CyOSStaffController.cs
@@ -42,6 +42,7 @@
         [HttpPost]
         public async Task<WorekPlandto> getplanelist(SearchOaWorekPlan param)
         {
+            
             if(! await CheckRols())
             {
                 throw Oops.Oh("娌℃湁鏉冮檺");
@@ -196,12 +197,6 @@
             pram.RewardMoney = 0;
             pram.RewardType = 1;
             pram.Keyid = null;
-           
-
-
-
-
-
             await  _SugarClient.InsertNav(pram).Include(x=>x.WorkPlanAttachments).ExecuteCommandAsync();
             return true;
             
@@ -318,12 +313,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