Ver código fonte

触发逻辑修改

anderx 3 anos atrás
pai
commit
1beec5f765

+ 2 - 2
src/main/java/com/goafanti/common/task/MonthReportTask.java

@@ -14,7 +14,7 @@ import com.goafanti.order.service.OrderReportService;
 public class MonthReportTask {
 	@Resource
 	private  OrderReportService	orderReportServiceImpl;
-	
+
 	Logger	logger	= LoggerFactory.getLogger(MonthReportTask.class);
 	/**
      * 每月1号7点执行任务
@@ -26,7 +26,7 @@ public class MonthReportTask {
     	int count = orderReportServiceImpl.insertOrderStatisticsByMonthTask();
     	//更新年数据
     	int c = orderReportServiceImpl.saveYearReportData();
-    	
+
     	LoggerUtils.debug(logger, "统计上月订单【%s】条。", count);
     	LoggerUtils.debug(logger, "更新年订单【%s】条。", c);
     }

+ 1 - 1
src/main/java/com/goafanti/common/task/OrderDunTask.java

@@ -43,8 +43,8 @@ import com.goafanti.order.service.OrderNewService;
 import com.goafanti.order.service.OrderProjectService;
 import com.goafanti.organization.bo.OutPaymentNode;
 
+
 @Component
-@Controller
 public class OrderDunTask {
 	@Autowired
 	private OrderNewService orderNewService;

+ 0 - 1
src/main/java/com/goafanti/common/task/PatentTask.java

@@ -35,7 +35,6 @@ import com.goafanti.patent.service.PatentNewService;
 
 
 @Component
-@RestController
 public class PatentTask {
 	@Resource
 	private PatentNewService patentNewService;

+ 4 - 3
src/main/java/com/goafanti/common/task/ReleaseUserTask.java

@@ -28,8 +28,9 @@ import com.goafanti.customer.bo.LockingReleaseBo;
 import com.goafanti.customer.service.CustomerService;
 import com.goafanti.user.service.UserService;
 
+
+
 @Component
-@Controller
 public class ReleaseUserTask {
 	@Resource
 	private CustomerService customerService;
@@ -50,8 +51,8 @@ public class ReleaseUserTask {
 	 *
 	 * @throws InterruptedException
 	 */
-//	@Scheduled(cron = "0 55 15  * * ?")
-	@Scheduled(cron = "0 0 1  * * ?")
+	@Scheduled(cron = "0 55 11  * * ?")
+//	@Scheduled(cron = "0 0 1  * * ?")
 	public void startTask() {
 		try {
 			pushUserDays();

+ 0 - 1
src/main/java/com/goafanti/common/task/UserFollowTask.java

@@ -22,7 +22,6 @@ import java.util.Calendar;
 import java.util.List;
 
 @Component
-@RestController
 public class UserFollowTask {
 
     @Autowired

+ 1 - 1
src/main/java/com/goafanti/common/task/YearReportTask.java

@@ -14,7 +14,7 @@ import com.goafanti.order.service.OrderReportService;
 public class YearReportTask {
 	@Resource
 	private  OrderReportService	orderReportServiceImpl;
-	
+
 	Logger	logger	= LoggerFactory.getLogger(YearReportTask.class);
 	/**
      * 每年1月1日0点执行任务