Commit f0b59484 by lizefeng

监视周转表的异常

parent d5579168
...@@ -30,7 +30,8 @@ namespace AutoTurnOver.Controllers ...@@ -30,7 +30,8 @@ namespace AutoTurnOver.Controllers
[HttpGet] [HttpGet]
public JsonResult List(int limit, int offset, string order, string sort, int? searchType, string key_words, string buyer_name, int? IsRedundant, int? IsStockOut, string warehousecode,string supplier_name, string warehousetype, int? warehousearea, bool? hasDefectConfig, bool? hasAadvise = null, string categoryIds = null, int? monitor_status = null,int? has_tort = null) public JsonResult List(int limit, int offset, string order, string sort, int? searchType, string key_words, string buyer_name, int? IsRedundant, int? IsStockOut, string warehousecode,string supplier_name, string warehousetype, int? warehousearea, bool? hasDefectConfig, bool? hasAadvise = null, string categoryIds = null, int? monitor_status = null,int? has_tort = null)
{ {
try
{
var m = new Condition_AutoTurnOver var m = new Condition_AutoTurnOver
{ {
searchType = searchType, searchType = searchType,
...@@ -60,6 +61,16 @@ namespace AutoTurnOver.Controllers ...@@ -60,6 +61,16 @@ namespace AutoTurnOver.Controllers
pagecount = (total / limit + (total % limit > 0 ? 1 : 0)) pagecount = (total / limit + (total % limit > 0 ? 1 : 0))
}); });
} }
catch (Exception ex)
{
new JsonResult(new
{
message = ex.Message,
stack_trace = ex.StackTrace
};
}
}
public JsonResult ListSumFooter(string supplier_name, int limit, int offset, string order, string sort, int? searchType, string key_words,string buyer_name, string sku_prefix, int? IsRedundant, int? IsStockOut, string warehousecode, string warehousetype, int? warehousearea, bool? hasDefectConfig, bool? hasAadvise = null, string categoryIds = null, int? monitor_status = null,int? has_tort = null) public JsonResult ListSumFooter(string supplier_name, int limit, int offset, string order, string sort, int? searchType, string key_words,string buyer_name, string sku_prefix, int? IsRedundant, int? IsStockOut, string warehousecode, string warehousetype, int? warehousearea, bool? hasDefectConfig, bool? hasAadvise = null, string categoryIds = null, int? monitor_status = null,int? has_tort = null)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment