|
@@ -56,7 +56,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
using (RHDWPartContext db = RHDWPartContext.GetContext(dto.SigTime))
|
|
|
{
|
|
|
var StationRes = db.StationRes.Add(new StationRes()
|
|
@@ -2174,10 +2174,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
itemPos.CheckRes = await db.CheckRes.FirstOrDefaultAsync(p => p.ID == itemPos.CheckResID);
|
|
|
}
|
|
|
posList.AddRange(posRes);
|
|
|
- if (posList.Count > 5000)
|
|
|
- {
|
|
|
- return Success(posList.Take(5000).ToList(), "数据过多,只返回前5000条数据!");
|
|
|
- }
|
|
|
+ return Success(posList, "数据过多,只返回前5000条数据!");
|
|
|
}
|
|
|
}
|
|
|
return Success(posList);
|
|
@@ -2270,7 +2267,7 @@ namespace XdCxRhDW.App.Controllers
|
|
|
PosLat = res.PosLat,
|
|
|
MirrLon = res.MirrLon,
|
|
|
MirrLat = res.MirrLat,
|
|
|
- CheckType = res.CheckRes?.PosCheckType==null?"": res.CheckRes?.PosCheckType.GetEnumDisplayName(),
|
|
|
+ CheckType = res.CheckRes?.PosCheckType == null ? "" : res.CheckRes?.PosCheckType.GetEnumDisplayName(),
|
|
|
TargetState = (EnumTargetStateDto)res.TargetState,
|
|
|
PosResType = (EnumPosResTypeDto)res.PosResType
|
|
|
};
|