fyf il y a 2 ans
Parent
révision
6ca3a516fb
1 fichiers modifiés avec 24 ajouts et 2 suppressions
  1. +24
    -2
      DataVAPI/Controllers/OrderController.cs

+ 24
- 2
DataVAPI/Controllers/OrderController.cs Voir le fichier

@@ -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);
}
}
}
}

Chargement…
Annuler
Enregistrer