|
|
|
@ -9,10 +9,7 @@ import com.ruoyi.generator.domain.GenTable;
|
|
|
|
|
import com.ruoyi.generator.domain.GenTableColumn;
|
|
|
|
|
import org.apache.velocity.VelocityContext;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashSet;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 模板处理工具类
|
|
|
|
@ -244,7 +241,7 @@ public class VelocityUtils {
|
|
|
|
|
*/
|
|
|
|
|
public static String getDicts(GenTable genTable) {
|
|
|
|
|
List<GenTableColumn> columns = genTable.getColumns();
|
|
|
|
|
List<String> dicts = new ArrayList<String>();
|
|
|
|
|
Set<String> dicts = new HashSet<String>();
|
|
|
|
|
for (GenTableColumn column : columns) {
|
|
|
|
|
if (!column.isSuperColumn() && StringUtils.isNotEmpty(column.getDictType()) && StringUtils.equalsAny(
|
|
|
|
|
column.getHtmlType(),
|
|
|
|
|