From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 27 八月 2022 15:03:00 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/Services/WfNeeddeelService.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/zhengcaioa/Services/WfNeeddeelService.cs b/zhengcaioa/Services/WfNeeddeelService.cs
index 7e51ce9..30f0f34 100644
--- a/zhengcaioa/Services/WfNeeddeelService.cs
+++ b/zhengcaioa/Services/WfNeeddeelService.cs
@@ -143,6 +143,8 @@
 
                          join d in _context.WfApplytypes
                        on k.Applytiye equals d.Applyno
+                         into dsssss
+                         from ddd in dsssss.DefaultIfEmpty()
 
                          join b in _context.PltUsers 
                         on k.Creater equals b.Id
@@ -185,7 +187,7 @@
                              Applyno = k.Applyno,
                              CreaterName = b.UserName,
                              DeptName = c.DeptName,
-                             Applytiye = d.Applytiye,
+                             Applytiye = ddd.Applytiye,
                              Content = k.Content,
                              ShenpiStatusName = eee.Comments,
                              Resivetime = a.Resivetime,
@@ -202,7 +204,7 @@
                              Modifytime = a.Modifytime,
 
                          }
-                 ).OrderBy(x => x.Sort).ThenByDescending(x => x.Resivetime).ToList();
+                 ).OrderByDescending(x=>x.Applyno).ThenBy(x => x.Sort).ThenByDescending(x => x.Resivetime).ToList();
 
 
 

--
Gitblit v1.9.1