Ver código fonte

增加一个get接口

master
fyf 2 anos atrás
pai
commit
7e02183cff
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      DataVAPI/Controllers/OrderController.cs

+ 3
- 3
DataVAPI/Controllers/OrderController.cs Ver arquivo

@@ -42,7 +42,7 @@ namespace DataVAPI.Controllers
{
FullScreenInput fullScreen = new FullScreenInput();
if (OrgId.HasValue) fullScreen.OrgId = OrgId;
if (DeviceId.HasValue) fullScreen.DeviceId = DeviceId;
if (DeviceId.HasValue) fullScreen.DeviceId = DeviceId;
object retdata = orderProvider.GetAllOrderDataState(fullScreen);
return JsonMsg<object>.OK(retdata, st);
}
@@ -129,14 +129,14 @@ namespace DataVAPI.Controllers
/// <summary>
/// 下单数量
/// </summary>
[HttpPost]
[HttpGet]
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 (OrgId.HasValue) fullScreen.OrgId = OrgId;
if (DeviceId.HasValue) fullScreen.DeviceId = DeviceId;
object retdata = orderProvider.OrderNumber(fullScreen);
return JsonMsg<object>.OK(retdata, st);


Carregando…
Cancelar
Salvar