fanli/src/main/java/com/yeshi/fanli/job/UpdateDaTaoKeJob.java
@@ -1,5 +1,7 @@ package com.yeshi.fanli.job; import java.util.Date; import javax.annotation.Resource; import org.springframework.scheduling.annotation.Scheduled; @@ -120,4 +122,14 @@ } } /** * 删除过期数据(每10分钟删除一次) */ @Scheduled(cron = "0 0/10 * * * ? ") public void doDeleteOutOfDate() { if (!Constant.IS_TASK) return; daTaoKeGoodsDetailV2Service.deleteOutOfDate(new Date(System.currentTimeMillis() - 1000 * 60 * 60 * 24L)); } }