package cn.reghao.tnb.file.app.zdisk.db.mapper;

import cn.reghao.jutil.jdk.web.db.BaseMapper;
import cn.reghao.jutil.jdk.web.db.Page;
import cn.reghao.tnb.file.app.zdisk.model.po.CamRecord;
import cn.reghao.tnb.file.app.zdisk.model.vo.CamRecordInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author reghao
 * @date 2025-08-28 22:47:18
 */
@Mapper
public interface CamRecordMapper extends BaseMapper<CamRecord> {
    List<CamRecord> findByCamId(@Param("camId") long camId, @Param("page") Page page);
    List<CamRecordInfo> findByCamIdAndStartAt(@Param("camId") long camId, @Param("dayStr") String dayStr);
    CamRecord findByRecordId(long recordId);
    List<String> findGroupByYearMonth(@Param("camId") long camId, @Param("yearMonth") String yearMonth);
}
