package com.ruoyi.interfaces.service.impl;

import com.ruoyi.interfaces.domain.Job;
import com.ruoyi.interfaces.domain.vo.JobRequestVo;
import com.ruoyi.interfaces.mapper.SnailJobMapper;
import com.ruoyi.interfaces.service.SnailJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SnailJobServiceImpl implements SnailJobService {

    @Value("${snail-job.group}")
    private String groupName;


    @Autowired
    private SnailJobMapper snailJobMapper;

    @Override
    public List<Job> selectJobList(Job jobRequestVo) {
        jobRequestVo.setGroupName(groupName);
        return snailJobMapper.selectJobList(jobRequestVo);
    }
}
