package admin.modules.system.service.mapper;

import admin.base.CommonMapper;
import admin.modules.system.domain.Job;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Set;

/**
 * @description: JobMapper
 * @date: 2023/7/24 17:26
 * @author: wk
 * @version: 1.0
 */
@Repository
public interface JobMapper extends CommonMapper<Job> {

    /**
     * 根据名称查询
     * @param name 名称
     * @return /
     */
    Job findByName(@Param("name") String name);

    /**
     * 根据Id删除
     * @param ids /
     */
    void deleteAllByIdIn(@Param("ids") Set<Long> ids);
}
