fix 成本日期判断
This commit is contained in:
@@ -125,12 +125,10 @@ public class OrderService : IOrderService
|
||||
}
|
||||
else
|
||||
{
|
||||
if (shiftTimePeriod.IsCrossDay())
|
||||
costDate = DateTime.Now.AddDays(-1);
|
||||
|
||||
var beginOfDay = DateTime.Today;
|
||||
if (switchTime.HasValue)
|
||||
{
|
||||
var beginOfDay = DateTime.Today;
|
||||
|
||||
var setTime = beginOfDay.Add(switchTime.Value.ToTimeSpan());
|
||||
if (DateTime.Now < setTime)
|
||||
costDate = DateTime.Now.AddDays(-1);
|
||||
|
||||
Reference in New Issue
Block a user