Commit e9bb83da by 泽锋 李

fix

parent aeaf1900
...@@ -1258,6 +1258,13 @@ where id=@id ...@@ -1258,6 +1258,13 @@ where id=@id
foreach (var asinItem in item.AsEnumerable()) foreach (var asinItem in item.AsEnumerable())
{ {
var tempReview = reviews.FirstOrDefault(s => s.asin == asinItem.asin) ?? new api_pps_review_response_dto.result_dto.data_dto(); var tempReview = reviews.FirstOrDefault(s => s.asin == asinItem.asin) ?? new api_pps_review_response_dto.result_dto.data_dto();
if (tempReview.sku == null)
{
if(asinItem.asin== "B07F1YMSJX")
{
}
}
_connection.Execute($@" update dc_config_fba_extend set _connection.Execute($@" update dc_config_fba_extend set
review_count=@review_count, review_count=@review_count,
review_score=@review_score, review_score=@review_score,
......
...@@ -32,6 +32,21 @@ namespace AutoTurnOver.Models ...@@ -32,6 +32,21 @@ namespace AutoTurnOver.Models
/// 0 =正常 -1= 删除 1 =审核通过 -2 = 驳回 3= 已推送 /// 0 =正常 -1= 删除 1 =审核通过 -2 = 驳回 3= 已推送
/// </summary> /// </summary>
public int status { get; set; } public int status { get; set; }
public string bailun_skus { get; set; }
public string goods_codes { get; set; }
/// <summary>
/// 过去多少天的总销量
/// </summary>
public decimal sum_sales_days { get; set; }
/// <summary>
/// 总销量下限
/// </summary>
public decimal sum_sales_min { get; set; }
/// <summary>
/// 总销量上限
/// </summary>
public decimal sum_sales_max { get; set; }
} }
public class dc_auto_return_goods_config_dto: dc_auto_return_goods_config public class dc_auto_return_goods_config_dto: dc_auto_return_goods_config
......
...@@ -1091,10 +1091,10 @@ namespace AutoTurnOver.Services ...@@ -1091,10 +1091,10 @@ namespace AutoTurnOver.Services
{ {
throw new Exception("请填写入库天数"); throw new Exception("请填写入库天数");
} }
if (m.sales_average_upper_limit == 0) //if (m.sales_average_upper_limit == 0)
{ //{
throw new Exception("请填写日均加权销量上限"); // throw new Exception("请填写日均加权销量上限");
} //}
return DB.db_config.SaveReturnGoodsConfig(m,user); return DB.db_config.SaveReturnGoodsConfig(m,user);
} }
......
...@@ -940,8 +940,16 @@ namespace AutoTurnOver.Controllers ...@@ -940,8 +940,16 @@ namespace AutoTurnOver.Controllers
[BrowseLog("Bailun_aims", "触发【百伦自动周转系统】->【配置】->【退货规则配置】->【新增】->【保存】操作", 1)] [BrowseLog("Bailun_aims", "触发【百伦自动周转系统】->【配置】->【退货规则配置】->【新增】->【保存】操作", 1)]
public JsonResult SaveReturnGoodsConfig([FromBody]dc_auto_return_goods_config m) public JsonResult SaveReturnGoodsConfig([FromBody]dc_auto_return_goods_config m)
{ {
var result = new Services.ConfigServices().SaveReturnGoodsConfig(m, AutoUtility.GetUser()); try
return new JsonResult(result); {
var result = new Services.ConfigServices().SaveReturnGoodsConfig(m, AutoUtility.GetUser());
return new JsonResult(result);
}
catch (Exception ex)
{
return new JsonResult(ex.Message);
}
} }
......
...@@ -30,7 +30,7 @@ namespace ResetOutofstock ...@@ -30,7 +30,7 @@ namespace ResetOutofstock
//await new TaskDownloadServices().Download(); //await new TaskDownloadServices().Download();
//daily.ResetFbaExtendSales(DateTime.Now); //daily.ResetFbaExtendSales(DateTime.Now);
//dc_aims_transfer_warehouse_dao.TransferWarehouseTask(); //dc_aims_transfer_warehouse_dao.TransferWarehouseTask();
//daily.ResetFbaExtendReview(DateTime.Now); daily.ResetFbaExtendReview(DateTime.Now);
} }
catch (Exception ex) catch (Exception ex)
......
...@@ -28,6 +28,6 @@ ...@@ -28,6 +28,6 @@
"api_finance_body": "http://cw.bailuntec.com/API/API/GetCompanyMainBody", "api_finance_body": "http://cw.bailuntec.com/API/API/GetCompanyMainBody",
"api_trans_temp_schedule": "http://api.wms.bailuntec.com/api/services/app/AllotScheduleService/GetTempSchedulePageList", "api_trans_temp_schedule": "http://api.wms.bailuntec.com/api/services/app/AllotScheduleService/GetTempSchedulePageList",
"pps-sys": { "pps-sys": {
"review": "http://172.31.13.156/Api/amazon/analyze/Download/GetReviewInfoBy" "review": "https://pps.bailuntec.com/Api/amazon/analyze/Download/GetReviewInfoBy"
} }
} }
\ No newline at end of file
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