| | |
| | | * 定时任务违规的字符
|
| | | */
|
| | | public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
|
| | | "org.springframework", "org.apache" };
|
| | | "org.springframework", "org.apache", "com.ruoyi.common.core.utils.file" };
|
| | | }
|
| | |
| | | {
|
| | | GenTableColumn prevColumn = tableColumnMap.get(column.getColumnName());
|
| | | column.setColumnId(prevColumn.getColumnId());
|
| | | if (column.isList()) {
|
| | | if (column.isList())
|
| | | {
|
| | | // 如果是列表,继续保留字典类型
|
| | | column.setDictType(prevColumn.getDictType());
|
| | | }
|
| | | genTableColumnMapper.updateGenTableColumn(column);
|
| | | } else {
|
| | | }
|
| | | else
|
| | | {
|
| | | genTableColumnMapper.insertGenTableColumn(column);
|
| | | }
|
| | | });
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * 设置主子表信息
|
| | | *
|
| | |
| | | }
|
| | | else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.LOOKUP_LDAP, Constants.LOOKUP_LDAPS }))
|
| | | {
|
| | | return error("新增任务'" + job.getJobName() + "'失败,目标字符串不允许'ldap'调用");
|
| | | return error("新增任务'" + job.getJobName() + "'失败,目标字符串不允许'ldap(s)'调用");
|
| | | }
|
| | | else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.HTTP, Constants.HTTPS }))
|
| | | {
|
| | |
| | | SysDictData dictData = new SysDictData();
|
| | | dictData.setStatus("0");
|
| | | Map<String, List<SysDictData>> dictDataMap = dictDataMapper.selectDictDataList(dictData).stream().collect(Collectors.groupingBy(SysDictData::getDictType));
|
| | | for (Map.Entry<String, List<SysDictData>> entry: dictDataMap.entrySet()) {
|
| | | for (Map.Entry<String, List<SysDictData>> entry : dictDataMap.entrySet())
|
| | | {
|
| | | DictUtils.setDictCache(entry.getKey(), entry.getValue().stream().sorted(Comparator.comparing(SysDictData::getDictSort)).collect(Collectors.toList()));
|
| | | }
|
| | | }
|