移动系统liao
4 天以前 2d8739b04f86ab5e73ec7b0d3152e702a90a450b
修改用户扩展资料
2个文件已修改
18 ■■■■ 已修改文件
Admin.NET/FZCTB.NET.API.Application/User/CustomerService.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Admin.NET/FZCZTB.NET.MD/CutomerMd/Extend/FBS_CusExtend.cs 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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("用户已经注册了该主体");
        }
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>
    /// 法定代表人姓名
@@ -127,7 +135,7 @@
    /// 企业主营业务
    /// </summary>
    [Required(ErrorMessage = "主营业务为必填项")]
    [SugarColumn(ColumnDescription = "企业主营业务")]
    [SugarColumn(ColumnDescription = "企业主营业务",Length =Int32.MaxValue,IsNullable = true)]
    public string MainBusiness { get; set; }
    /// <summary>