Commit 432a8e04 by wangnb

包活干2.4.1每隔一个小时执行一次订单报表--think.wang

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@30983 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent b6383ac9
package com.glsx.task.schedule; package com.glsx.task.schedule;
import java.util.Date;
import cn.hutool.core.date.DateField; import cn.hutool.core.date.DateField;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
...@@ -12,6 +11,8 @@ import org.springframework.scheduling.annotation.EnableScheduling; ...@@ -12,6 +11,8 @@ import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.util.Date;
/** /**
* <p>Description: * <p>Description:
* <p>Project: car-service * <p>Project: car-service
...@@ -29,8 +30,8 @@ public class OrderReportTask { ...@@ -29,8 +30,8 @@ public class OrderReportTask {
/** /**
* 每个月 1 号的凌晨三点开始生成订单报表信息 * 每个月 1 号的凌晨三点开始生成订单报表信息
*/ */
//@Scheduled(cron = "0 0/1 * * * ?") @Scheduled(cron = "0 0 0/1 * * ?")
@Scheduled(cron = "0 0 3 1 * ?") // @Scheduled(cron = "0 0 3 1 * ?")
private void executeTask() { private void executeTask() {
log.info("$$$$ OrderReportTask executeTask..."); log.info("$$$$ OrderReportTask executeTask...");
Date now = new Date(); Date now = new Date();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!