Commit e2715b97 by 泽锋 李

fix

parent 9034081a
...@@ -224,11 +224,11 @@ UNION ALL ...@@ -224,11 +224,11 @@ UNION ALL
{ {
var nos = relation.Replace("[", "").Replace("]", "").Split(',')[index]; var nos = relation.Replace("[", "").Replace("]", "").Split(',')[index];
var datas = new List<dc_estimated_arrival_dto>(); var datas = new List<dc_estimated_arrival_dto>();
if (nos != "N/A") if (nos!=("N/A"))
{ {
foreach (var no_str in nos.Split('*')) foreach (var no_str in nos.Split('*'))
{ {
if (no_str != "N/A") if (!no_str.Contains( "N/A"))
{ {
var no_datas = no_str.Split('_'); var no_datas = no_str.Split('_');
dc_estimated_arrival_dto data = new dc_estimated_arrival_dto(); dc_estimated_arrival_dto data = new dc_estimated_arrival_dto();
...@@ -264,13 +264,13 @@ UNION ALL ...@@ -264,13 +264,13 @@ UNION ALL
{ {
break; break;
} }
if (nos != "N/A") if (nos!=( "N/A"))
{ {
foreach (var no_str in nos.Split('*')) foreach (var no_str in nos.Split('*'))
{ {
try try
{ {
if (no_str != "N/A") if (!no_str.Contains( "N/A"))
{ {
var no_datas = no_str.Split('_'); var no_datas = no_str.Split('_');
dc_estimated_arrival_dto data = new dc_estimated_arrival_dto(); dc_estimated_arrival_dto data = new dc_estimated_arrival_dto();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment