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.PosBuyPart
import com.ypsx.yppos.room.entity.PosBuyPayment
import com.ypsx.yppos.room.entity.PosConfig

@Dao
interface PosBuyPaymentDao {


    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(posBuyPayment: PosBuyPayment)

    @Query("select * from POS_BuyPayment Where orderId=:orderNo")
    fun queryByOrderNo(orderNo: String): PosBuyPayment?
}