Commit def558a6 by 泽锋 李

fix

parent c2660dea
......@@ -58,7 +58,7 @@ namespace AutoTurnOver.DB
prod_last_update_date = item.last_update_date,
gmt_create_date = DateTime.Now
};
if (!string.IsNullOrWhiteSpace(item.pack_code) && item.pack_product_quantity > 0)
if ((!string.IsNullOrWhiteSpace(item.pack_code)) && item.pack_product_quantity > 0)
{
db_data.order_quantity = (item.product_quantity ?? 0) / item.pack_product_quantity.Value;
db_data.distribution_quantity = (item.product_distribution_quantity ?? 0) / item.pack_product_quantity.Value;
......@@ -121,6 +121,10 @@ namespace AutoTurnOver.DB
}
db_data.status = status;
}
if (string.IsNullOrWhiteSpace(db_data.bailun_sku))
{
continue;
}
var old_data = conn.QueryFirstOrDefault<dc_base_prod_order>(" select * from dc_base_prod_order where `purchase_no`=@purchase_no and bailun_sku=@bailun_sku ", new
{
purchase_no = db_data.purchase_no,
......
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