package com.zioinfo.esn.mapper;

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

@Mapper
public interface HCoreMapper {
    List<HCoreVo> findAll(@Param("tenantCode") String tenantCode,
                          @Param("storeId") Long storeId,
                          @Param("deviceType") String deviceType,
                          @Param("status") String status);
    HCoreVo findById(@Param("id") Long id);
    HCoreVo findByDeviceId(@Param("deviceId") String deviceId);
    int insert(HCoreVo hcore);
    int update(HCoreVo hcore);
    int updateStatus(@Param("id") Long id, @Param("status") String status);
    int delete(@Param("id") Long id);
    long countOnline(@Param("tenantCode") String tenantCode);
    long countOffline(@Param("tenantCode") String tenantCode);
    long countAll(@Param("tenantCode") String tenantCode);
}
