package com.yeejoin.precontrol.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.precontrol.common.entity.BadManagement;
import com.yeejoin.precontrol.common.vo.BadManagementVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author duanwei
 * @date 2020-07-06
 */
public interface BadManagementMapper extends BaseMapper<BadManagement> {

    int selectCountByPersonId(Long personId);

    List<Object> violationSum(@Param("orgCode") String orgCode, @Param("projectId") Long projectId);

    Page<BadManagementVo> pageList(Page<BadManagementVo> page, String companyId);
}
