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