package cn.iocoder.yudao.module.knowledge.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.iocoder.yudao.module.knowledge.controller.requestdto.TViolationRequest;
import cn.iocoder.yudao.module.knowledge.entity.TViolation;
import cn.iocoder.yudao.module.knowledge.entity.TViolationImage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 违章表(TViolation)表数据库访问层
 *
 * @author makejava
 * @since 2024-04-13 14:58:19
 */
@Mapper
public interface TViolationMapper extends BaseMapper<TViolation> {

    IPage<TViolation> getListPage(Page<TViolation> page, @Param("dto") TViolationRequest dto);

    IPage<TViolation> appFindAll(Page<TViolation> page, @Param("dto") TViolationRequest dto);

    List<TViolation> getListPage( @Param("dto") TViolationRequest dto);

    int saveRelatedImgInfo(@Param("paramList")List<TViolationImage> paramList);


}

