Commit 94d8ffcf by 泽锋 李

周转表新是否自动回货的筛选

parent 33abdf5a
...@@ -98,6 +98,9 @@ from dc_auto_turnover as dat ...@@ -98,6 +98,9 @@ from dc_auto_turnover as dat
if (m.monitor_status != null) if (m.monitor_status != null)
{ {
sqlCount += " left join dc_auto_config_sku_warehouse as t5 on dat.bailun_sku = t5.bailun_sku and dat.warehouse_code = t5.warehouse_code "; sqlCount += " left join dc_auto_config_sku_warehouse as t5 on dat.bailun_sku = t5.bailun_sku and dat.warehouse_code = t5.warehouse_code ";
} if (m.returngoodspush_state != null)
{
sqlCount += " left join dc_auto_config_sku_warehouse as t12 on dat.bailun_sku = t12.bailun_sku and dat.warehouse_code = t12.warehouse_code ";
} }
if (m.has_tort != null) if (m.has_tort != null)
{ {
...@@ -144,6 +147,17 @@ from dc_auto_turnover as dat ...@@ -144,6 +147,17 @@ from dc_auto_turnover as dat
sql += " and ( t5.`status`=0 or t5.`status` is null ) "; sql += " and ( t5.`status`=0 or t5.`status` is null ) ";
sqlCount += " and ( t5.`status`=0 or t5.`status` is null ) "; sqlCount += " and ( t5.`status`=0 or t5.`status` is null ) ";
} }
if (m.returngoodspush_state == 1)
{
sql += " and t12.`status`=1 ";
sqlCount += " and t12.`status`=1 ";
}
if (m.returngoodspush_state == 0)
{
sql += " and ( t12.`status`=0 or t12.`status` is null ) ";
sqlCount += " and ( t12.`status`=0 or t12.`status` is null ) ";
}
if (m.hasAadvise == true) if (m.hasAadvise == true)
{ {
......
...@@ -325,6 +325,7 @@ namespace AutoTurnOver.Models ...@@ -325,6 +325,7 @@ namespace AutoTurnOver.Models
/// 0 = 开启监控 /// 0 = 开启监控
/// </summary> /// </summary>
public int? monitor_status { get; set; } public int? monitor_status { get; set; }
public int? returngoodspush_state { get; set; }
/// <summary> /// <summary>
///百伦分类 ///百伦分类
......
...@@ -29,7 +29,7 @@ namespace AutoTurnOver.Controllers ...@@ -29,7 +29,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[UseAction] [UseAction]
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? returngoodspush_state = null,int? has_tort = null)
{ {
try try
{ {
...@@ -46,6 +46,7 @@ namespace AutoTurnOver.Controllers ...@@ -46,6 +46,7 @@ namespace AutoTurnOver.Controllers
hasAadvise = hasAadvise, hasAadvise = hasAadvise,
categoryIds = categoryIds, categoryIds = categoryIds,
monitor_status = monitor_status, monitor_status = monitor_status,
returngoodspush_state = returngoodspush_state,
buyer_name = buyer_name, buyer_name = buyer_name,
supplier_name = supplier_name, supplier_name = supplier_name,
has_tort = has_tort has_tort = has_tort
...@@ -78,7 +79,7 @@ namespace AutoTurnOver.Controllers ...@@ -78,7 +79,7 @@ namespace AutoTurnOver.Controllers
return new JsonResult(new Services.SkuAutoTurnServices().GetLabelList()); return new JsonResult(new Services.SkuAutoTurnServices().GetLabelList());
} }
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? returngoodspush_state = null,int? has_tort = null)
{ {
var m = new Condition_AutoTurnOver var m = new Condition_AutoTurnOver
{ {
...@@ -93,6 +94,7 @@ namespace AutoTurnOver.Controllers ...@@ -93,6 +94,7 @@ namespace AutoTurnOver.Controllers
hasAadvise = hasAadvise, hasAadvise = hasAadvise,
categoryIds = categoryIds, categoryIds = categoryIds,
monitor_status = monitor_status, monitor_status = monitor_status,
returngoodspush_state = returngoodspush_state,
buyer_name = buyer_name, buyer_name = buyer_name,
supplier_name = supplier_name, supplier_name = supplier_name,
has_tort = has_tort has_tort = has_tort
...@@ -111,7 +113,7 @@ namespace AutoTurnOver.Controllers ...@@ -111,7 +113,7 @@ namespace AutoTurnOver.Controllers
/// <param name="warehousecode"></param> /// <param name="warehousecode"></param>
/// <returns></returns> /// <returns></returns>
[UseAction] [UseAction]
public ActionResult Export(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 ActionResult Export(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? returngoodspush_state = null,int? has_tort = null)
{ {
try try
{ {
...@@ -130,6 +132,7 @@ namespace AutoTurnOver.Controllers ...@@ -130,6 +132,7 @@ namespace AutoTurnOver.Controllers
hasAadvise = hasAadvise, hasAadvise = hasAadvise,
categoryIds = categoryIds, categoryIds = categoryIds,
monitor_status = monitor_status, monitor_status = monitor_status,
returngoodspush_state = returngoodspush_state,
buyer_name = buyer_name, buyer_name = buyer_name,
supplier_name = supplier_name, supplier_name = supplier_name,
has_tort = has_tort has_tort = has_tort
......
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