ScheduledTask.java 585 Bytes
package com.topdraw.schedule;

import com.topdraw.business.process.service.PointsOperationService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 积分台账
 */
//@Component
//@Slf4j
//@EnableScheduling
public class ScheduledTask {

    @Autowired
    PointsOperationService pointsOperationService;

//    @Scheduled(cron = "0/59 59 23 * * ? ")

    /**
     * 清理已过期的积分
     */
//    @Scheduled(cron = "0 0/1 * * * ? ")
    public void cleanValidAvailablePoints(){
//        this.pointsOperationService.cleanInvalidAvailablePoints();
    }

}