|
@@ -336,12 +336,11 @@ public class OrderSyncLogServiceImpl implements OrderSyncLogService {
|
|
|
try {
|
|
|
date = SYS_CONFIG_SDF.parse(sysConfig.getConfigRemarks());
|
|
|
Calendar newDate = Calendar.getInstance();
|
|
|
+ calendar.setTime(date);
|
|
|
if(calendar.get(Calendar.DATE) == newDate.get(Calendar.DATE)){
|
|
|
logger.info("该定时任务已经运行!");
|
|
|
return 0;
|
|
|
}
|
|
|
-
|
|
|
- calendar.setTime(date);
|
|
|
calendar.set(Calendar.HOUR_OF_DAY,0);
|
|
|
calendar.set(Calendar.MINUTE,0);
|
|
|
calendar.set(Calendar.SECOND,0);
|