package jnpf.cultivate.event.base.examidentify;

import jnpf.cultivate.service.CultivateIdentifyApplyService;
import jnpf.cultivate.service.FtbCultivateExamUserService;
import jnpf.model.cultivate.dto.identify.IdentifyApplyDataPushDto;
import jnpf.model.cultivate.resp.TriggerExamDto;

import javax.annotation.Resource;

/**
 * 考试和鉴定触发通用抽象类
 *
 * @author wangchunxiang
 * @date 2024/09/14
 */
public abstract class ExamIdentifyTriggerAbstract implements ExamIdentifyTriggerProcessor {

    @Resource
    protected CultivateIdentifyApplyService cultivateIdentifyApplyService;

    @Resource
    protected FtbCultivateExamUserService ftbCultivateExamUserService;

    @Override
    public void handleTriggerExam(TriggerExamDto triggerExam) {
        ftbCultivateExamUserService.triggerPositionExam(triggerExam);
    }

    @Override
    public String handleTriggerIdentifyApply(IdentifyApplyDataPushDto identifyApplyDataPushDto) {
        return cultivateIdentifyApplyService.applyDataPush(identifyApplyDataPushDto);
    }

}
