package com.ssj.dao.sys.fx.dao;

import com.ssj.bean.sys.fx.domain.DeviceBalance;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface DeviceBalanceDao extends JpaRepository<DeviceBalance, String> {
	
	@Query(nativeQuery = true, value = " SELECT * from fx_device_balance t where t.lib_id=?1 AND t.balance_month=?2 LIMIT 1 ")
	DeviceBalance getDeviceBalanceByLibId(String libId,String balanceMonth);
	
	
	
}
