/// <summary>
        /// 通过图层ID获取字段字典集合
        /// </summary>
        /// <param name="layerID"></param>
        /// <returns></returns>
        public ListResultOutput <LayerFieldDictDto> GetFieldDictByLayerID(string layerID)
        {
            try
            {
                List <LayerFieldDictDto> layerFieldDicts = new List <LayerFieldDictDto>();
                var query = _ILayerFieldRepository.GetAll().Where(q => q.LayerID == layerID && q.AttributeDataType == "T").ToList();
                foreach (var item in query)
                {
                    string fieldId = item.Id;
                    var    result  = _ILayerFieldDictRepository.GetAll().Where(t => t.AttributeID == fieldId).ToList();

                    foreach (var detail in result)
                    {
                        LayerFieldDictDto dto = new LayerFieldDictDto();
                        dto.AttributeID   = detail.AttributeID;
                        dto.FieldDictDesc = detail.FieldDictDesc;
                        dto.FieldDictName = detail.FieldDictName;
                        dto.Id            = detail.Id;
                        layerFieldDicts.Add(dto);
                    }
                }

                var list = new ListResultOutput <LayerFieldDictDto>(layerFieldDicts);
                return(list);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
 /// <summary>
 /// 批量新增
 /// </summary>
 /// <param name="lstInput"></param>
 /// <returns></returns>
 public bool MultiInsert(List <LayerFieldDictInputDto> lstInput)
 {
     try
     {
         string layerId = string.Empty;
         foreach (var input in lstInput)
         {
             LayerFieldDictDto dto = Insert(input).Result;
         }
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }