package com.bcxin.signature.scheduling;

import com.bcxin.signature.service.SignatureService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * <b> 签章定时任务 </b>
 * @author ZXF
 * @create 2024/11/20 0020 16:18
 * @version
 * @注意事项 </b>
 */
@Slf4j
public class SignatureTask {

    @Autowired
    private SignatureService signatureService;

    /**
     * 文书亮证
     */
    //@Scheduled(cron = "${myapps.signature.scheduled.jtlztiming}")
    public void signatureJTLZDocument() {
        signatureService.signatureJTLZDocument();
    }

    /**
     * 补偿机制
     */
    public void batchDeleteBcxFile() {
        signatureService.batchDeleteBcxFile();
    }
}
