Commit 2177a9e2 by 泽锋 李

供应商放假收假时间都需要减一天

parent 87daf67f
...@@ -33,6 +33,14 @@ namespace AutoTurnOver.DB ...@@ -33,6 +33,14 @@ namespace AutoTurnOver.DB
supplier_name = item.SupplierName, supplier_name = item.SupplierName,
gmt_update_time =DateTime.Now gmt_update_time =DateTime.Now
}; };
if (new_data.start_date != null)
{
new_data.start_date = new_data.start_date.Value.AddDays(-1);
}
if (new_data.end_date != null)
{
new_data.end_date = new_data.end_date.Value.AddDays(-1);
}
new_data.id = conn.QuerySingleOrDefault<int>(" select id from base_supplier_holiday_time where source_sys_id=@source_sys_id ",new { source_sys_id = new_data.source_sys_id }); new_data.id = conn.QuerySingleOrDefault<int>(" select id from base_supplier_holiday_time where source_sys_id=@source_sys_id ",new { source_sys_id = new_data.source_sys_id });
if (new_data.id > 0) if (new_data.id > 0)
{ {
......
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