package cn.lihongjie.coal.empSalaryItem.repository;

import cn.lihongjie.coal.base.dao.BaseRepository;
import cn.lihongjie.coal.empSalaryItem.entity.EmpSalaryItemEntity;

import org.springframework.stereotype.Repository;

@Repository
public interface EmpSalaryItemRepository extends BaseRepository<EmpSalaryItemEntity> {
    long countByNameContainsAndOrganizationId(String name, String organizationId);

    long countByNameContainsAndOrganizationIdAndIdNot(
            String name, String organizationId, String id);
}
