package com.ypsx.yppos.room.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.ypsx.yppos.room.entity.PosBuy
import com.ypsx.yppos.room.entity.PosConfig
@Dao
interface PosBuyDao {


    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(posBuy: PosBuy)

    @Query("SELECT * FROM POS_Buy ORDER BY id DESC LIMIT 1")
    fun queryPosBuy(): PosBuy?

}