| | |
| | | import com.ycl.utils.DateUtils; |
| | | import com.ycl.utils.bean.BeanUtils; |
| | | import lombok.Data; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | |
| | | * @since 2024/4/28 下午 4:14 |
| | | */ |
| | | |
| | | @Component |
| | | @Data |
| | | @Component("contractResultTask") |
| | | public class ContractResultTask { |
| | | |
| | | private final ITContractService contractService; |
| | |
| | | /** |
| | | * 每个月1号执行,统计考核结果 |
| | | */ |
| | | @Scheduled(cron = "0 0 0 1 * ?") |
| | | @Transactional |
| | | // @PostConstruct //启动时执行一次 |
| | | public void contractResultTask() { |