package cn.lihongjie.coal.empSalary.repository;

import cn.lihongjie.coal.base.dao.BaseRepository;
import cn.lihongjie.coal.empSalary.entity.EmpSalaryEntity;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmpSalaryRepository extends BaseRepository<EmpSalaryEntity> {
    @Query("delete from EmpSalaryEntity where batch.id in :ids")
    @Modifying
    Integer deleteByBatchId(@Param("ids") List<String> ids);
}
