|
|
@ -3,6 +3,7 @@ package com.ibeetl.admin.core.dao;
|
|
|
|
import com.ibeetl.admin.core.entity.CoreDict;
|
|
|
|
import com.ibeetl.admin.core.entity.CoreDict;
|
|
|
|
import org.beetl.sql.mapper.BaseMapper;
|
|
|
|
import org.beetl.sql.mapper.BaseMapper;
|
|
|
|
import org.beetl.sql.mapper.annotation.SqlResource;
|
|
|
|
import org.beetl.sql.mapper.annotation.SqlResource;
|
|
|
|
|
|
|
|
import org.springframework.cache.annotation.Cacheable;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
@ -23,12 +24,14 @@ public interface CoreDictDao extends BaseMapper<CoreDict> {
|
|
|
|
List<CoreDict> findAllList(String type);
|
|
|
|
List<CoreDict> findAllList(String type);
|
|
|
|
|
|
|
|
|
|
|
|
//根据表名、字段名查询 主键名和注释 和 字段名和注释
|
|
|
|
//根据表名、字段名查询 主键名和注释 和 字段名和注释
|
|
|
|
|
|
|
|
@Cacheable(value = "core.coreDict:findPkAndValue", key = "#tableName+#columnName")
|
|
|
|
List<Map<String,Object>> findPkAndValue (String tableName, String columnNames);
|
|
|
|
List<Map<String,Object>> findPkAndValue (String tableName, String columnNames);
|
|
|
|
|
|
|
|
|
|
|
|
//根据表名、字段名查询 注释
|
|
|
|
//根据表名、字段名查询 注释
|
|
|
|
List<Map<String,Object>> findComment (String tableName,String columnNames);
|
|
|
|
List<Map<String,Object>> findComment (String tableName,String columnNames);
|
|
|
|
|
|
|
|
|
|
|
|
//动态表名、字段名查询并包装成coreDict实体
|
|
|
|
//动态表名、字段名查询并包装成coreDict实体
|
|
|
|
|
|
|
|
@Cacheable(value = "core.coreDict:findALlListByTable", key = "#idName+#filedName+#tableCode+#tableName+#params")
|
|
|
|
List<CoreDict> findALlListByTable (String idName,String filedName,String tableCode,String tableName,String[] params);
|
|
|
|
List<CoreDict> findALlListByTable (String idName,String filedName,String tableCode,String tableName,String[] params);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|