From 876292b5a092977ac84c1c1699d9f3e45b9be67d Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期四, 07 九月 2023 15:29:12 +0800
Subject: [PATCH] 增加是否具有标书编辑功能权限字段,和创建权限订单逻辑

---
 DocumentServiceAPI.Model/Permissions/TenantPermissions.cs |    4 ++++
 .gitignore                                                |    1 +
 DocumentServiceApi.InitQMessage/MessageReceive.cs         |    3 +++
 DocumentServiceAPI.Model/Oder/Oder.cs                     |    7 ++++++-
 DocumentServiceApi.InitQMessage/TenantOderInfo.cs         |    4 ++++
 5 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/.gitignore b/.gitignore
index 38ecefb..2237dec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,4 @@
 DocumentServiceApi.InitQMessage/obj/
 DocumentServiceAPI.Application/DocumentServiceAPI.Application.xml
 DocumentServiceApi.InitQMessage/bin/
+DocumentServiceAPI.Web.Entry/Log/DocSericeApistatupLog.txt
diff --git a/DocumentServiceAPI.Model/Oder/Oder.cs b/DocumentServiceAPI.Model/Oder/Oder.cs
index a1e7ee4..84b2713 100644
--- a/DocumentServiceAPI.Model/Oder/Oder.cs
+++ b/DocumentServiceAPI.Model/Oder/Oder.cs
@@ -63,6 +63,11 @@
         /// </summary>
         public Guid? ZcUserID { get; set; }
 
-       
+        /// <summary>
+        /// 鏄惁鍏锋湁鏍囦功缂栬緫鏉冮檺
+        /// </summary>
+        public bool? HasDocumentPermission { get; set; } = false;
+
+
     }
 }
diff --git a/DocumentServiceAPI.Model/Permissions/TenantPermissions.cs b/DocumentServiceAPI.Model/Permissions/TenantPermissions.cs
index d5b331b..9a5f9a7 100644
--- a/DocumentServiceAPI.Model/Permissions/TenantPermissions.cs
+++ b/DocumentServiceAPI.Model/Permissions/TenantPermissions.cs
@@ -57,5 +57,9 @@
         [Display(Name = "鎻忚堪 ")]
         [SugarColumn(ColumnDescription = "鎻忚堪 ")]
         public string? Description { get; set; }
+        /// <summary>
+        /// 鏄惁鏈夋爣涔︾紪杈戞潈闄�
+        /// </summary>
+        public bool? HasDocumentPermission { get; set; } = false;
     }
 }
diff --git a/DocumentServiceApi.InitQMessage/MessageReceive.cs b/DocumentServiceApi.InitQMessage/MessageReceive.cs
index dee9c00..c5d8895 100644
--- a/DocumentServiceApi.InitQMessage/MessageReceive.cs
+++ b/DocumentServiceApi.InitQMessage/MessageReceive.cs
@@ -55,6 +55,7 @@
                 PayTime = obj.PayTime,
                 ZcUserID = obj.ZcUserID,
                 ITCode = obj.ITCode,
+                 HasDocumentPermission=obj.HasDocumentPermission
                  
             };
             TenantInfo? Tinfo = await _db.Queryable<TenantInfo>().Where(x=>x.ZcUserID==obj.ZcUserID).SingleAsync();
@@ -79,6 +80,8 @@
                     Description = obj.Description,
                     EmployeeMaxCount = obj.EmployeeCount ?? 0,
                     UnitMaxCount = obj.UnitCount ?? 0,
+                     
+                     HasDocumentPermission=obj.HasDocumentPermission,
                     OverTime = DateTime.Now.AddMonths(obj.MonthCount ?? 0),
 
 
diff --git a/DocumentServiceApi.InitQMessage/TenantOderInfo.cs b/DocumentServiceApi.InitQMessage/TenantOderInfo.cs
index 7b42e72..0ccfed3 100644
--- a/DocumentServiceApi.InitQMessage/TenantOderInfo.cs
+++ b/DocumentServiceApi.InitQMessage/TenantOderInfo.cs
@@ -58,6 +58,10 @@
         /// 鍚嶇О
         /// </summary>
         public string? TenantName { get; set; }
+        /// <summary>
+        /// 鏄惁鍏锋湁鏍囦功缂栬緫鏉冮檺
+        /// </summary>
+        public bool? HasDocumentPermission { get; set; } = false;
 
 
     }

--
Gitblit v1.9.1