45 lines
1.0 KiB
Java
45 lines
1.0 KiB
Java
|
|
package com.hzs.third.job;
|
||
|
|
|
||
|
|
import com.hzs.member.account.IMemberJobServiceApi;
|
||
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
||
|
|
import lombok.extern.slf4j.Slf4j;
|
||
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
||
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||
|
|
import org.springframework.stereotype.Component;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 会员模块定时任务
|
||
|
|
*
|
||
|
|
* @Description:
|
||
|
|
* @Author: ljc
|
||
|
|
* @Time: 2023/4/11 19:11
|
||
|
|
* @Classname: CuMemberJob
|
||
|
|
* @Package_name: com.hzs.member.job
|
||
|
|
*/
|
||
|
|
@ConditionalOnProperty(name = "xxl-job.start", havingValue = "true")
|
||
|
|
@Component
|
||
|
|
@Slf4j
|
||
|
|
public class CuMemberJob {
|
||
|
|
|
||
|
|
@DubboReference
|
||
|
|
IMemberJobServiceApi memberJobServiceApi;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 定时插入账户详情数据
|
||
|
|
*/
|
||
|
|
@XxlJob("insertAccountDetail")
|
||
|
|
public void insertAccountDetail() {
|
||
|
|
memberJobServiceApi.insertAccountDetail();
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 自动提现
|
||
|
|
*/
|
||
|
|
@XxlJob("automaticWithdrawal")
|
||
|
|
public void automaticWithdrawal() {
|
||
|
|
memberJobServiceApi.automaticWithdrawal();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|