|
|
|
@ -62,11 +62,12 @@ public class CoreDictService extends CoreBaseService<CoreDict> {
|
|
|
|
|
* {@link Dict} 的最终实现方法
|
|
|
|
|
* @return List
|
|
|
|
|
*/
|
|
|
|
|
@Cacheable(value = CorePlatformService.DICT_CACHE_TYPE, key="#type")
|
|
|
|
|
// @Cacheable(value = CorePlatformService.DICT_CACHE_TYPE, key="#type")
|
|
|
|
|
public List<CoreDict> findAllByTable(String type) {
|
|
|
|
|
|
|
|
|
|
if(!type.contains("university")){
|
|
|
|
|
return new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
|
type = renderStringTemplate(type, null);
|
|
|
|
|
|
|
|
|
|
String[] str = type.split("\\.");
|
|
|
|
|
String tableName = null,filedName = null,params = null;
|
|
|
|
|
if(str.length>0)
|
|
|
|
@ -104,8 +105,8 @@ public class CoreDictService extends CoreBaseService<CoreDict> {
|
|
|
|
|
param[i] = param[i].contains("=") && !param[i].contains("find_in_set")?(param[i].replace("=","='").replace(",","',")+ (StringUtils.isBlank(param[i])?"":"'")):param[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
System.out.println("导致堆栈空间不足-----------------------------------------------------------------------------------");
|
|
|
|
|
return dictDao.findALlListByTable(idName,filedName,tableCode,tableName,param);
|
|
|
|
|
List<CoreDict> aLlListByTable = dictDao.findALlListByTable(idName, filedName, tableCode, tableName, param);
|
|
|
|
|
return aLlListByTable;
|
|
|
|
|
}else {
|
|
|
|
|
return new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
@ -149,7 +150,6 @@ public class CoreDictService extends CoreBaseService<CoreDict> {
|
|
|
|
|
return resultScript;
|
|
|
|
|
}
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
System.out.println(e.getMessage());
|
|
|
|
|
return script;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|