package com.bcxin.tenant.open.domains.repositories;

import com.bcxin.tenant.open.domains.criterias.DispatchLogDetailSearchCriteria;
import com.bcxin.tenant.open.domains.criterias.MyDispatchLogRecordCriteria;
import com.bcxin.tenant.open.domains.entities.DeviceCommunicatedLogDetailEntity;
import com.bcxin.tenant.open.domains.entities.DeviceCommunicatedLogEntity;
import com.bcxin.tenant.open.infrastructures.EntityCollection;
import com.bcxin.tenant.open.infrastructures.repositories.RepositoryBase;

import java.util.Collection;

public interface DeviceCommunicatedLogDetailRepository  extends RepositoryBase<DeviceCommunicatedLogDetailEntity> {
    EntityCollection<DeviceCommunicatedLogDetailEntity> search(DispatchLogDetailSearchCriteria criteria);

    void batchInsert(Collection<DeviceCommunicatedLogDetailEntity> logs);

    DeviceCommunicatedLogDetailEntity getByNoPkId(String id);

    Collection<DeviceCommunicatedLogDetailEntity> search(MyDispatchLogRecordCriteria criteria);
}
