package com.sw.mes.agv.dao;

import com.sw.mes.agv.entity.RechargeArtBag;
import com.sw.mes.core.base.BaseDao;
import org.springframework.data.jpa.repository.Query;

public interface RechargeArtBagDao extends BaseDao<RechargeArtBag, Long> {

    @Query(value = "SELECT * FROM zhxx_recharge_art_bag WHERE device_no=?1 ORDER BY id DESC LIMIT 1 ", nativeQuery = true)
    RechargeArtBag getOneByDeviceNo(String deviceNo);

}
