package com.zioinfo.signage.mapper;

import com.zioinfo.signage.domain.SignBoardVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface SignBoardMapper {
    List<SignBoardVo> findAll(@Param("tenantCode") String tenantCode,
                               @Param("storeId") Long storeId,
                               @Param("bindStatus") String bindStatus,
                               @Param("keyword") String keyword);
    SignBoardVo findById(@Param("id") Long id);
    SignBoardVo findByDeviceId(@Param("deviceId") String deviceId);
    List<SignBoardVo> findByProductCode(@Param("tenantCode") String tenantCode,
                                         @Param("storeId") Long storeId,
                                         @Param("productCode") String productCode);
    int insert(SignBoardVo vo);
    int update(SignBoardVo vo);
    int unbind(@Param("id") Long id);
    int delete(@Param("id") Long id);
    long countAll(@Param("tenantCode") String tenantCode);
    long countActive(@Param("tenantCode") String tenantCode);
}
