package com.skr.mdm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skr.mdm.bean.qo.controller.ClientDebugLogQO;
import com.skr.mdm.bean.vo.equipment.ClientDebugLogVO;
import com.skr.mdm.entity.ClientDebugLogDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Tty
 */
@Repository
public interface ClientDebugLogDao extends BaseMapper<ClientDebugLogDO> {

    /**
     * 根据设备ID删除
     * @param equipmentIdList 设备ID集合
     */
    void deleteByEquipmentIdList(@Param("equipmentIdList") List<Integer> equipmentIdList);

    /**
     * 获取过期的文件地址
     * @param expireDate 过期日期
     * @return 过期的文件地址
     */
    List<String> listDelFileUrl(@Param("expireDate") String expireDate);

    List<ClientDebugLogVO> queryDebugLogList(ClientDebugLogQO clientDebugLogQO);

}