/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.service.inspection;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codvision.basic.entity.inspection.InspectionRecord;
import com.codvision.basic.entity.vo.inspection.InspectionRecordVO;
import com.codvision.webcore.bean.QueryPage;

import java.util.List;
import java.util.Map;

/**
 * @author codvision
 */
public interface InspectionRecordService extends IService<InspectionRecord> {

    /**
     * 分页列表
     * @param queryPage 查询条件
     * @return 列表
     */
    IPage<InspectionRecordVO> getPageResult(QueryPage<Map<String, Object>> queryPage);

    void addInspectRecord(InspectionRecord record, String checklist);

    InspectionRecordVO getById(Integer key);

    List<Map> statByTask(Map<String, Object> params);
}
