package com.ywt.mg.domain.entities;

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

public interface TreatmentRepository extends JpaRepository<Treatment, Integer> {


    @Query(value = "select * from treatment where id = ? and is_deleted = 0 limit 1;", nativeQuery = true)
    public Treatment findOne(int id);

}
