Browse Source

tyrp接口考虑到跨年的情况

交付给东阳的源代码
周红军 21 hours ago
parent
commit
cb1c4c03e8
  1. 2
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/TyrpIncomingBackgroundWorker.cs

2
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/TyrpIncomingBackgroundWorker.cs

@ -72,7 +72,7 @@ public class TyrpIncomingBackgroundWorker : AsyncPeriodicBackgroundWorkerBase
// await repository.UpdateAsync(part);
//}
if (DateTime.Now.Month > common.updatedt.Month || (DateTime.Now.Month == common.updatedt.Month && DateTime.Now.Day > common.updatedt.Day))
if (DateTime.Now.Year > common.updatedt.Year || DateTime.Now.Month > common.updatedt.Month || (DateTime.Now.Month == common.updatedt.Month && DateTime.Now.Day > common.updatedt.Day))
{
if (common.isupdate)
{

Loading…
Cancel
Save