Commit f0b59484 by lizefeng

监视周转表的异常

parent d5579168
...@@ -30,35 +30,46 @@ namespace AutoTurnOver.Controllers ...@@ -30,35 +30,46 @@ 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
{ {
searchType = searchType, var m = new Condition_AutoTurnOver
key_words = key_words, {
out_of_stock = IsStockOut, searchType = searchType,
redundancy = IsRedundant, key_words = key_words,
warehouse_code = warehousecode, out_of_stock = IsStockOut,
warehousetype = warehousetype, redundancy = IsRedundant,
warehousearea = warehousearea, warehouse_code = warehousecode,
hasDefectConfig = hasDefectConfig, warehousetype = warehousetype,
hasAadvise = hasAadvise, warehousearea = warehousearea,
categoryIds = categoryIds, hasDefectConfig = hasDefectConfig,
monitor_status = monitor_status, hasAadvise = hasAadvise,
buyer_name = buyer_name, categoryIds = categoryIds,
supplier_name = supplier_name, monitor_status = monitor_status,
has_tort = has_tort buyer_name = buyer_name,
}; supplier_name = supplier_name,
has_tort = has_tort
};
var total = 0; var total = 0;
var service = new Services.SkuAutoTurnServices(); var service = new Services.SkuAutoTurnServices();
var list = service.List(m, offset, limit, ref total, order, sort); var list = service.List(m, offset, limit, ref total, order, sort);
return new JsonResult(new return new JsonResult(new
{
rows = list,
total = total,
pagecount = (total / limit + (total % limit > 0 ? 1 : 0))
});
}
catch (Exception ex)
{ {
rows = list, new JsonResult(new
total = total, {
pagecount = (total / limit + (total % limit > 0 ? 1 : 0)) 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