package com.zioinfo.esn.mapper;

import com.zioinfo.esn.domain.PosCvtVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface PosCvtMapper {
    List<PosCvtVo> findAll(@Param("tenantCode") String tenantCode,
                            @Param("storeId") Long storeId,
                            @Param("status") String status,
                            @Param("keyword") String keyword);
    PosCvtVo findById(@Param("id") Long id);
    int insert(PosCvtVo posCvt);
    int updateStatus(@Param("id") Long id, @Param("status") String status,
                     @Param("errorMessage") String errorMessage);
    long countPending(@Param("tenantCode") String tenantCode);
    long countProcessedToday(@Param("tenantCode") String tenantCode);
}
