Browse Source

Bug fix

master
fanwensheng 3 years ago
parent
commit
bf00eb7b6f
  1. 3
      04.系统编码/App/Controllers/PointController.cs
  2. 6
      04.系统编码/Model/Point.cs

3
04.系统编码/App/Controllers/PointController.cs

@ -12,6 +12,9 @@ namespace Pingchuan.BeijingSafeguard.App.Controllers
[HttpPost] [HttpPost]
public JsonResult Add(Point point) public JsonResult Add(Point point)
{ {
User user = GetLoginUser();
point.UserId = user.Id;
int id = PointBLL.Add(point); int id = PointBLL.Add(point);
return Json(id); return Json(id);
} }

6
04.系统编码/Model/Point.cs

@ -18,5 +18,11 @@ namespace Pingchuan.BeijingSafeguard.Model
[Column("icon")] [Column("icon")]
public string Icon { get; set; } public string Icon { get; set; }
[Column("longitude")]
public decimal Longitude { get; set; }
[Column("latitude")]
public decimal Latitude { get; set; }
} }
} }

Loading…
Cancel
Save