puzhibing
2023-10-08 22199bbdda579861736420fe26c2873ab0f5d21c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.sinata.rest.modular.mall.job;
 
import com.sinata.rest.modular.mall.service.IMallCommissionSettlementMonthService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
/**
 * 定时任务-佣金月结算
 */
@Slf4j
@Component
@EnableScheduling
public class CommissionSettlementMonthWork {
 
    @Autowired
    private IMallCommissionSettlementMonthService mallCommissionSettlementMonthService;
 
    /**
     * 佣金月结算
     */
    @Scheduled(cron = "0 1 0 1 * *")
    public void run() {
        log.info("佣金月结算");
        mallCommissionSettlementMonthService.commissionSettlemenMonth();
    }
 
}