diff --git a/DataVAPI/Controllers/OrderController.cs b/DataVAPI/Controllers/OrderController.cs index 1cf71c1..86b3e04 100644 --- a/DataVAPI/Controllers/OrderController.cs +++ b/DataVAPI/Controllers/OrderController.cs @@ -35,13 +35,14 @@ namespace DataVAPI.Controllers /// /// [HttpGet] - public JsonMsg GetAllOrderDataState(int OrgId) + public JsonMsg GetAllOrderDataState(int? OrgId,int? DeviceId) { st = System.Reflection.MethodBase.GetCurrentMethod().Name; try { FullScreenInput fullScreen = new FullScreenInput(); - fullScreen.OrgId = OrgId; + if (OrgId.HasValue) fullScreen.OrgId = OrgId; + if (DeviceId.HasValue) fullScreen.DeviceId = DeviceId; object retdata = orderProvider.GetAllOrderDataState(fullScreen); return JsonMsg.OK(retdata, st); } @@ -124,5 +125,26 @@ namespace DataVAPI.Controllers return JsonMsg.Error(null, st, ex.Message); } } + + /// + /// 下单数量 + /// + [HttpPost] + public JsonMsg OrderNumber(int? OrgId, int? DeviceId) + { + st = System.Reflection.MethodBase.GetCurrentMethod().Name; + try + { + FullScreenBasic fullScreen = new FullScreenBasic(); + if(OrgId.HasValue) fullScreen.OrgId = OrgId; + if (DeviceId.HasValue) fullScreen.DeviceId = DeviceId; + object retdata = orderProvider.OrderNumber(fullScreen); + return JsonMsg.OK(retdata, st); + } + catch (System.Exception ex) + { + return JsonMsg.Error(null, st, ex.Message); + } + } } }