Commit 66dabfcd by 黄超华

定时任务更新

1 parent 91b4bc77
......@@ -38,5 +38,10 @@
<artifactId>rpc-scrm-shopmall-api</artifactId>
<version>3.9.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.com.glsx</groupId>
<artifactId>platform-payment-api</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package cn.com.glsx.scheduler.modules.job;
import cn.com.glsx.payment.api.TxiatOrderApi;
import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.dangdang.elasticjob.lite.annotation.ElasticSimpleJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* @author huangch
* @version V1.0
* @Title: PaymentOrderStateSync
* @Description:
* @Company: Didihu.com.cn
* @Date 2023/10/31 21:53
*/@Slf4j
@Component
@ElasticSimpleJob("0 0 22 * * ?")
public class PaymentOrderStateSync implements SimpleJob {
@Autowired
private TxiatOrderApi txiatOrderApi;
@Override
public void execute(ShardingContext shardingContext) {
log.info("---------------{}-开始同步熠轩订单状态----------------");
txiatOrderApi.txiatOrderSync();
log.info("---------------{}-熠轩订单状态同步完成----------------");
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!