package com.boman.web.core.mapper;

import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

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

public interface AttendanceMapper {

    /**
     * 功能描述: 自定义查询，需要查询的字段和value都在condition中
     * {@link StandardlyMapper.SqlProvider#selectByCondition(Map)}
     *
     * @param tableName     tableName
     * @param condition     condition
     * @param packCondition 封装好的查询条件
     * @param showData      需要查询的列
     * @param orderBy       orderBy
     * @param limit         分页
     * @param offset        分页， 可以为null
     * @return java.util.List<com.alibaba.fastjson.JSONObject>
     */
    @SelectProvider(type = StandardlyMapper.SqlProvider.class, method = "selectByCondition")
    List<JSONObject> selectByCondition(@Param("tableName") String tableName);
}
