fix:定时任务相关功能完善,自测问题修复。
This commit is contained in:
@@ -54,7 +54,12 @@
|
||||
<artifactId>springfox-swagger-ui</artifactId>
|
||||
<version>${swagger.fox.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-api-invest</artifactId>
|
||||
<version>3.6.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- Quartz -->
|
||||
<dependency>
|
||||
<groupId>org.quartz-scheduler</groupId>
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.ruoyi.job.task;
|
||||
|
||||
import com.ruoyi.api.invest.RemoteInvestService;
|
||||
import com.ruoyi.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 照明平台定时任务
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Component("investJobTask")
|
||||
public class InvestJobTask
|
||||
{
|
||||
@Autowired
|
||||
private RemoteInvestService remoteInvestService;
|
||||
|
||||
/**生成未出信用卡账单数据*/
|
||||
public void generateUnpaidCreditBillTask(){
|
||||
System.out.println("================================开始生成未出账单数据("+ DateUtils.getTime() +")=================================");
|
||||
remoteInvestService.generateUnpaidCreditBillTask();
|
||||
System.out.println("================================结束生成未出账单据("+ DateUtils.getTime() +")=================================");
|
||||
}
|
||||
|
||||
/**未出信用卡分期账单入账数据*/
|
||||
public void updateUnpaidInstallmentDataTask(){
|
||||
System.out.println("================================开始更新未出信用卡分期账单入账数据("+ DateUtils.getTime() +")=================================");
|
||||
remoteInvestService.updateUnpaidInstallmentDataTask();
|
||||
System.out.println("================================结束更新未出信用卡分期账单入账拟数据("+ DateUtils.getTime() +")=================================");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user