| | |
| | | using System.Reflection.Metadata; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseRepository; |
| | | using WIDESEA_Core.BaseServices; |
| | |
| | | } |
| | | return content; |
| | | } |
| | | |
| | | public object GetLocationLayer() |
| | | { |
| | | List<object> list = new List<object>(); |
| | | var data = Db.Ado.SqlQuery<LocationArea>(@"SELECT areaName,areaCode,roadwayNo,layer from Dt_AreaInfo as t1 |
| | | INNER JOIN |
| | | ( |
| | | select DISTINCT AreaId,RoadwayNo,Layer from Dt_LocationInfo |
| | | ) as t2 |
| | | on t1.Id=t2.AreaId"); |
| | | foreach (var item in data.GroupBy(t => t.areaName)) |
| | | { |
| | | var obj = new |
| | | { |
| | | areaName = item.Key, |
| | | areaCode = item.Max(x => x.areaCode), |
| | | tunnel = item.Select(t => t.roadwayNo).OrderBy(t => t).Distinct().ToList(), |
| | | Layers = item.Select(t => t.layer).OrderBy(t => t).ToList(), |
| | | }; |
| | | list.Add(obj); |
| | | } |
| | | return list; |
| | | } |
| | | public WebResponseContent InitializationLocation(InitializationLocationDTO initializationLocationDTO) |
| | | { |
| | | try |