public async Task <DResult <int> > AddSystemInfo([FromBody] SystemAddDto systemAddDto)
 {
     try
     {
         return(DResult.Succ(businessSystem.AddSystemInfo(systemAddDto)));
     }
     catch (Exception ex)
     {
         Logger.Error(ex.ToString());
         return(DResult.Error <int>(ExceptionParse.ParseString(ex.Message), 500));
     }
 }
        /// <summary>
        /// 添加系统信息
        /// </summary>
        /// <param name="systemAddDto"></param>
        /// <returns></returns>
        public int AddSystemInfo(SystemAddDto systemAddDto)
        {
            string Code;

            if (string.IsNullOrEmpty(systemAddDto.Code))
            {
                Code = IocUnity.Get <RepositorySystem>().GetNextSystemCode();
            }
            else
            {
                Code = systemAddDto.Code;
            }
            TSystem system = new TSystem
            {
                Id          = IdentityHelper.NewSequentialGuid().ToString("N"),
                Name        = systemAddDto.Name,
                EnglishName = systemAddDto.EnglishName,
                Instruction = systemAddDto.Instruction,
                LogoUrl     = systemAddDto.LogoUrl,
                Code        = Code
            };

            return(IocUnity.Get <RepositorySystem>().Insert(system));
        }