|
|
@ -64,7 +64,8 @@ public class CoreDictService extends CoreBaseService<CoreDict> {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
// @Cacheable(value = CorePlatformService.DICT_CACHE_TYPE, key="#type")
|
|
|
|
// @Cacheable(value = CorePlatformService.DICT_CACHE_TYPE, key="#type")
|
|
|
|
public List<CoreDict> findAllByTable(String type) {
|
|
|
|
public List<CoreDict> findAllByTable(String type) {
|
|
|
|
if(!type.contains("university")){
|
|
|
|
if(type.contains("university") || type.contains("teacher")){
|
|
|
|
|
|
|
|
}else {
|
|
|
|
return new ArrayList<>();
|
|
|
|
return new ArrayList<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type = renderStringTemplate(type, null);
|
|
|
|
type = renderStringTemplate(type, null);
|
|
|
@ -156,7 +157,7 @@ public class CoreDictService extends CoreBaseService<CoreDict> {
|
|
|
|
return script;
|
|
|
|
return script;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// @Cacheable(value = "core.coreDict.findCoreDictByTable", key="#type+\"_\"+#value")
|
|
|
|
// @Cacheable(value = "core.coreDict.findCoreDictByTable", key="#type+\"_\"+#value")
|
|
|
|
public CoreDict findCoreDictByTable(String type,String value) {
|
|
|
|
public CoreDict findCoreDictByTable(String type,String value) {
|
|
|
|
List<CoreDict> list = findAllByTable(type);
|
|
|
|
List<CoreDict> list = findAllByTable(type);
|
|
|
|
if(list==null) {
|
|
|
|
if(list==null) {
|
|
|
|