Commit 24499b1a by zhoujinhui

修正盘点计划时间写入错误问题

parent 2ddf1bab
...@@ -574,7 +574,7 @@ namespace Service.TakeStock ...@@ -574,7 +574,7 @@ namespace Service.TakeStock
schedule.State = TSScheduleState.完成; schedule.State = TSScheduleState.完成;
} }
schedule.LastModificationTime = DateTime.UtcNow; schedule.LastModificationTime = DateTime.Now;
int record = await _scheduleRepository.UpdateAsync(schedule, "State", "LastModificationTime"); int record = await _scheduleRepository.UpdateAsync(schedule, "State", "LastModificationTime");
isSuccess = record > 0; isSuccess = record > 0;
...@@ -729,7 +729,7 @@ namespace Service.TakeStock ...@@ -729,7 +729,7 @@ namespace Service.TakeStock
else else
schedule.State = TSScheduleState.取消; schedule.State = TSScheduleState.取消;
schedule.LastModificationTime = DateTime.UtcNow; schedule.LastModificationTime = DateTime.Now;
int record = await _scheduleRepository.UpdateAsync(schedule, "State", "LastModificationTime"); int record = await _scheduleRepository.UpdateAsync(schedule, "State", "LastModificationTime");
isSuccess = record > 0; isSuccess = record > 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