package com.loan.system.repository;

import com.loan.system.domain.entity.Role;
import com.loan.system.domain.entity.SysMessage;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Collection;
import java.util.List;

/**
 * @author EdwinXu
 * @date 2020/9/2 - 15:35
 * @Description
 */
public interface MessageRepository extends JpaRepository<SysMessage,Long> {
    List<SysMessage> findByMobileAndIsDelete(String mobile, boolean isDelete);

    List<SysMessage> findByUserRoleAndIsDelete(String role, boolean isDelete);
}
