package com.ssj.dao.sys.fx.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.fx.domain.DeviceBalance;

@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);
	
	
	
}
