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.InitQMessage/MessageReceive.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/DocumentServiceApi.InitQMessage/MessageReceive.cs b/DocumentServiceApi.InitQMessage/MessageReceive.cs
index f250681..c5d8895 100644
--- a/DocumentServiceApi.InitQMessage/MessageReceive.cs
+++ b/DocumentServiceApi.InitQMessage/MessageReceive.cs
@@ -55,6 +55,8 @@
                 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();
             if(Tinfo==null)
@@ -66,7 +68,7 @@
                     CreatBy = "娑堟伅闃熷垪 InitTenantOder",
                     CreatTime = DateTime.Now,
                     Description = obj.Description,
-                    Name = obj.Name??obj.ITCode+"闆嗗洟璐﹀彿",
+                    Name =obj.TenantName ,
                     PsW = obj.ITCode.Substring(obj.ITCode.Length - 4),
 
 
@@ -78,6 +80,8 @@
                     Description = obj.Description,
                     EmployeeMaxCount = obj.EmployeeCount ?? 0,
                     UnitMaxCount = obj.UnitCount ?? 0,
+                     
+                     HasDocumentPermission=obj.HasDocumentPermission,
                     OverTime = DateTime.Now.AddMonths(obj.MonthCount ?? 0),
 
 
@@ -107,7 +111,7 @@
 
                 Document_TenderUnit tenderUnit = new Document_TenderUnit()
                 {
-                    UnitName = obj.Name ?? "闆嗗洟鍏徃",
+                    UnitName = obj.TenantName ?? "闆嗗洟鍏徃",
                     AdviseFlag = 2,
                     UserId = 0,
                     CreatTime = DateTime.Now.ToString("yyyy MM dd"),

--
Gitblit v1.9.1