diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index 2cd5285fa..06b26bd37 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -226,7 +226,7 @@
-
+
..\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll
@@ -315,39 +315,30 @@
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
+
-
-
@@ -372,8 +363,6 @@
-
-
@@ -403,11 +392,17 @@
+
+
+
+
+
+
@@ -432,9 +427,9 @@
+
-
@@ -487,19 +482,26 @@
+
+
-
-
+
+
+
+
+
+
+
-
+
@@ -710,7 +712,6 @@
-
@@ -748,7 +749,6 @@
-
@@ -813,40 +813,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -880,9 +855,6 @@
-
-
-
@@ -896,18 +868,13 @@
-
-
-
-
-
@@ -921,10 +888,7 @@
-
-
-
@@ -967,21 +931,11 @@
-
-
-
-
-
-
-
+
-
-
-
+
-
-
-
+
@@ -992,26 +946,24 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -1023,13 +975,14 @@
-
-
+
+
+
@@ -1038,10 +991,6 @@
-
-
-
-
@@ -1054,46 +1003,24 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
@@ -1110,8 +1037,6 @@
-
-
@@ -1129,29 +1054,20 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
+
+
+
@@ -1167,32 +1083,14 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -1322,17 +1220,15 @@
-
-
-
+
+
-
-
-
-
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591-b85a-41db-ae3a-4bf9765786c1}
Learun.Workflow.Engine
-
- {65cc5cdc-9638-4dd0-b2d6-3182cc16d2da}
- Quanjiang.DigitalScholl.SendSms
-
{4D841EAD-3FD8-4FAC-BC67-C4CE6C0D1181}
Quanjiang.DigitalScholl.WebLicense
-
- {767d20c4-b983-4940-bf97-74d5479ca558}
- Quanjiang.DigitalSchool.Aspose
-
@@ -6904,9 +6825,16 @@
+
+
+
+
+
+
+
@@ -7120,7 +7048,7 @@
-
+
@@ -7470,19 +7398,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
@@ -7491,172 +7464,58 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -7728,21 +7587,29 @@
-
-
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
index d3acfa803..5db3e3248 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
@@ -63,18 +63,14 @@
-
-
-
-
@@ -88,7 +84,6 @@
-
@@ -96,13 +91,10 @@
-
-
-
@@ -111,8 +103,6 @@
-
-
@@ -127,8 +117,6 @@
-
-
@@ -155,8 +143,6 @@
-
-
@@ -213,9 +199,7 @@
-
-
@@ -570,35 +554,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
index 4a459f288..ccfe45928 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/Learun.Application.TwoDevelopment.csproj
@@ -83,10 +83,6 @@
-
-
-
-
@@ -107,23 +103,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
@@ -187,14 +171,6 @@
-
-
-
-
-
-
-
-
@@ -232,10 +208,6 @@
-
-
-
-
@@ -271,14 +243,6 @@
-
-
-
-
-
-
-
-
@@ -287,10 +251,6 @@
-
-
-
-
@@ -318,14 +278,6 @@
-
-
-
-
-
-
-
-
@@ -359,18 +311,7 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -387,14 +328,6 @@
-
-
-
-
-
-
-
-
@@ -1718,10 +1651,6 @@
-
-
-
-
@@ -1730,46 +1659,10 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1786,46 +1679,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs
index 800360996..acb177053 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs
@@ -823,6 +823,43 @@ a.name as ApartmentName,b.name as UnitName,c.Name as FloorName
}
}
+
+ ///
+ /// 获取树形数据(学生归宿)
+ ///
+ ///
+ public List GetSqlTreeForReturn()
+ {
+ try
+ {
+ List list = new List();
+ var roomSql = @"select * from [dbo].[Acc_DormitoryBuild] where ID in (
+select parentid from [dbo].[Acc_DormitoryBuild] where BuildType='5' and (studentid is not null and len(studentid)>0)
+)";
+ List roomList = this.BaseRepository("CollegeMIS")
+ .FindList(roomSql).ToList();
+ list = roomList.Union(list).ToList();
+ var apartIds = roomList.Select(x => x.ApartmentId).Distinct().ToList();
+ var unitIds = roomList.Select(x => x.UnitId).Distinct().ToList();
+ var floorIds = roomList.Select(x => x.FloorId).Distinct().ToList();
+ var otherList = this.BaseRepository("CollegeMIS").FindList(x =>
+ apartIds.Contains(x.ID) || unitIds.Contains(x.ID) || floorIds.Contains(x.ID)).ToList();
+ list = list.Union(otherList).ToList();
+ return list.OrderBy(x => x.DNo).OrderBy(x => x.Name).ToList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
///
/// 根据父id获取数据
///