package com.ssj.dao.sys.train.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.ssj.bean.sys.train.bean.TrainUser;

@Repository
public interface TrainUserDao extends JpaRepository<TrainUser, String> {
		
	@Query(nativeQuery = true,value = "SELECT * from tr_train_user t WHERE  t.mobile=?1 AND t.`status`=1 LIMIT 1 ")
	public TrainUser getTrainUserByMobile(String mobile);
	
}
