From 2d8739b04f86ab5e73ec7b0d3152e702a90a450b Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期一, 14 七月 2025 16:34:49 +0800
Subject: [PATCH] 修改用户扩展资料

---
 Admin.NET/FZCTB.NET.API.Application/User/CustomerService.cs |    6 ++++--
 Admin.NET/FZCZTB.NET.MD/CutomerMd/Extend/FBS_CusExtend.cs   |   12 ++++++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/Admin.NET/FZCTB.NET.API.Application/User/CustomerService.cs b/Admin.NET/FZCTB.NET.API.Application/User/CustomerService.cs
index de4747c..d25ca52 100644
--- a/Admin.NET/FZCTB.NET.API.Application/User/CustomerService.cs
+++ b/Admin.NET/FZCTB.NET.API.Application/User/CustomerService.cs
@@ -51,12 +51,14 @@
     /// 
     /// </summary>
     public CustomerService(SysCacheService cacheService, CustomerManagerS managerS,SqlSugarRepository<FBS_Customer>  repository
-        , SqlSugarRepository<FBS_EnterpriseType> fbsenrep,IMapper mapper )
+        , SqlSugarRepository<FBS_EnterpriseType> fbsenrep,IMapper mapper,SqlSugarRepository<FBS_ExRole> exroles , SqlSugarRepository<FBS_CusExtend> cusrep)
     {
         _sysCacheService= cacheService;
          _customerManager = managerS;
         _fBS_CustomerRep = repository;
         _fBS_EnterpriseTypeRep = fbsenrep;
+        _fBS_ExRoleRep = exroles;
+        _fBS_CusExtendRep = cusrep;
         _mapper = mapper;
     }
 
@@ -172,7 +174,7 @@
             throw Oops.Oh("浜ゆ槗涓讳綋涓嶅瓨鍦�");
         }
 
-        if(user.CoutomerExRols.Any(x=>x.ExRole.Code==cusExtend.TransactionCode&& x.HasFlsh==true))
+        if(user.CoutomerExRols?.Any(x=>x.ExRole.Code==cusExtend.TransactionCode&& x.HasFlsh==true)==true)
         {
             throw Oops.Oh("鐢ㄦ埛宸茬粡娉ㄥ唽浜嗚涓讳綋");
         }
diff --git a/Admin.NET/FZCZTB.NET.MD/CutomerMd/Extend/FBS_CusExtend.cs b/Admin.NET/FZCZTB.NET.MD/CutomerMd/Extend/FBS_CusExtend.cs
index 17e3204..7d6269b 100644
--- a/Admin.NET/FZCZTB.NET.MD/CutomerMd/Extend/FBS_CusExtend.cs
+++ b/Admin.NET/FZCZTB.NET.MD/CutomerMd/Extend/FBS_CusExtend.cs
@@ -70,7 +70,15 @@
     /// </summary>
     [Required(ErrorMessage = "娉ㄥ唽璧勯噾涓哄繀濉」")]
     [SugarColumn(ColumnDescription = "娉ㄥ唽璧勯噾")]
-    public decimal RegisteredCapital { get; set; }
+    public string RegisteredCapital { get; set; }
+
+
+    ///// <summary>
+    ///// 娉ㄥ唽璧勯噾锛堝崟浣嶏細涓囧厓 锛�
+    ///// </summary>
+    //[Required(ErrorMessage = "娉ㄥ唽璧勯噾涓哄繀濉」")]
+    //[SugarColumn(ColumnDescription = "娉ㄥ唽璧勯噾")]
+    //public decimal RegisteredCapital { get; set; }
 
     /// <summary>
     /// 娉曞畾浠h〃浜哄鍚�
@@ -127,7 +135,7 @@
     /// 浼佷笟涓昏惀涓氬姟
     /// </summary>
     [Required(ErrorMessage = "涓昏惀涓氬姟涓哄繀濉」")]
-    [SugarColumn(ColumnDescription = "浼佷笟涓昏惀涓氬姟")]
+    [SugarColumn(ColumnDescription = "浼佷笟涓昏惀涓氬姟",Length =Int32.MaxValue,IsNullable = true)]
     public string MainBusiness { get; set; }
 
     /// <summary>

--
Gitblit v1.9.1