package com.zcloud.domain.job;

import com.jjb.saas.framework.job.Job;
import com.jjb.saas.framework.job.annotation.JobRegister;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import com.zcloud.domain.api.ProjectTaskScoreInfoServiceI;
import com.zcloud.domain.api.ProjectTaskServiceI;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@RequiredArgsConstructor
@Component
@Slf4j
public class ProjectTaskStatusJob implements Job {

    private final ProjectTaskServiceI projectTaskServiceI;


    @Override
    @JobRegister(cron = "0 1 0 * * ?", jobDesc = "课题任务状态",triggerStatus = 1)
    @XxlJob("com.zcloud.domain.job.ProjectTaskStatusJob")
    public ReturnT<String> execute(String param) {

        projectTaskServiceI.updatExecuteStatusJob();

        return null;
    }
}
