package com.tykj.workflowcore.user.dao;

import com.tykj.workflowcore.user.pojo.Organization;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface OrganizationDao extends JpaRepository<Organization, Integer>, JpaSpecificationExecutor<Organization> {

    List<Organization> findByOrganizationNameLike(String organizationName);

    List<Organization> findAllByCode(String code);

}
