Browse Source

12

master
fyf 2 years ago
parent
commit
6ca3a516fb
1 changed files with 24 additions and 2 deletions
  1. +24
    -2
      DataVAPI/Controllers/OrderController.cs

+ 24
- 2
DataVAPI/Controllers/OrderController.cs View File

@@ -35,13 +35,14 @@ namespace DataVAPI.Controllers
/// <param name="auth"></param>
/// <returns></returns>
[HttpGet]
public JsonMsg<object> GetAllOrderDataState(int OrgId)
public JsonMsg<object> 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<object>.OK(retdata, st);
}
@@ -124,5 +125,26 @@ namespace DataVAPI.Controllers
return JsonMsg<object>.Error(null, st, ex.Message);
}
}

/// <summary>
/// 下单数量
/// </summary>
[HttpPost]
public JsonMsg<object> 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<object>.OK(retdata, st);
}
catch (System.Exception ex)
{
return JsonMsg<object>.Error(null, st, ex.Message);
}
}
}
}

Loading…
Cancel
Save