package com.artfess.cqxy.ledger.dao;

import com.artfess.cqxy.ledger.model.MenuField;
import com.artfess.cqxy.ledger.model.MenuFieldTemp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author baseli
 * @date 2022年6月5日20:16:50
 */
public interface MenuFieldTempDao extends BaseMapper<MenuFieldTemp> {

//    List<Object> getDataById(@Param(value = "field") String field,
//                             @Param(value = "tableName") String tableName,
//                                          @Param(value = "del") String del);
    List<Object> getDataById(String field, String table, String del, String projectManagement, String projectId, @Param(value = "map")Map map);

    List<LinkedHashMap<String, Object>> getDataByIds(String fieldGroup, String tableGroup, String whereGroup, @Param(value = "map")Map map);

    List<LinkedHashMap<String, Object>> getDataByIdss(String sql, String whereGroup, @Param(value = "map")Map map);

    List<String> getColumnByTable(@Param(value = "tableNmae") String tableNmae);


    int countNum(@Param(value = "tableNmae") String tableNmae, @Param(value = "del")String del,
                     @Param(value = "projectId")String projectId, @Param(value = "projectManagement")String projectManagement);


}
