From a247547df86f0fad8f03aebb91de68d3f2bc7918 Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期四, 01 五月 2025 10:16:52 +0800
Subject: [PATCH] 修正sugsql导航更新加配置的bug

---
 cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs b/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs
index 39e60fe..18dd22f 100644
--- a/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs
+++ b/cylsg/cylsg.Application/CyOS/CyOSBaoXiaoZHuGuanController.cs
@@ -15,6 +15,7 @@
     /// 鎶ラ攢涓荤鐩稿叧鎺у埗鍣�
     /// </summary>
     [Authorize]
+    [ApiDescriptionSettings("CYOA")]
     public class CyOSBaoXiaoZHuGuanController: IDynamicApiController
     {
         private readonly IOAServices _OAServices;
@@ -25,8 +26,29 @@
             _OAServices = oaservices;
             _SugarClient = sugarClient.AsTenant().GetConnection("ECTESTOADB");
         }
+        /// <summary>
+        /// 鏌ヨ
+        /// </summary>
+        /// <returns></returns>
+        [HttpGet]
+        [AllowAnonymous]
+        public async Task<List<OaWorkPlan>> gettest()
+        {
+            var datal = await _SugarClient.Queryable<OaWorkPlan>().Where(x=>x.PlanType==3&&x.PlanDataType==17)
+         .Select(x => new OaWorkPlan
+         {
+             OaWorkPlanShenpi = SqlFunc.Subqueryable<OaWorkPlanShenpi>().Where(y => y.OA_WorkPlanId == x.Keyid).First()
+         }, true).MergeTable()
+         .OrderBy(z => z.OaWorkPlanShenpi.ApprovalTime).ToListAsync();
+            return datal;
+            var data2 = await _SugarClient.Queryable<OaWorkPlan>()
+                .Select(x => new OaWorkPlan
+                {
+                    SentStaff = SqlFunc.Subqueryable<OaStaff>().Where(y => y.MemberId == x.SentStaffId).First()
+                }, true).MergeTable()
+                .OrderBy(y => y.SentStaff.MemberId).ToListAsync();
 
-
+        }
         /// <summary>
         ///  鏌ヨ
         /// </summary>
@@ -91,7 +113,7 @@
             RefAsync<int> totle = 0;
 
             //寮哄埗澧炲姞鍛樺伐杩囨护
-
+   
             var data = await _SugarClient.Queryable<OaWorkPlan>().Includes(x=>x.Depart)
                     .Includes(x=>x.OaWorkPlanShenpis.Where(y=>y.ApprovalStaffId==Permissions.MemberId&&y.Buzhou==1).ToList())
                     .Where(SearchList).OrderByDescending(x => x.PlanStartTime).Mapper(

--
Gitblit v1.9.1