fix():把saas缓存对象换成缓存列表
parent
3a8b35b710
commit
2623669eb0
|
@ -48,10 +48,7 @@ public class DataTypeController {
|
||||||
public Result<List<DataType>> dataTypeList() {
|
public Result<List<DataType>> dataTypeList() {
|
||||||
|
|
||||||
List<DataType> list = dataTypeService.list();
|
List<DataType> list = dataTypeService.list();
|
||||||
|
dataTypeCacheService.put("List",list);
|
||||||
// 缓存数据
|
|
||||||
list.forEach(item->dataTypeCacheService.put(item.getDataTypeId().toString(),item));
|
|
||||||
|
|
||||||
return Result.success(list);
|
return Result.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,9 +47,7 @@ public class TemplateController {
|
||||||
|
|
||||||
List<Template> list = templateService.list();
|
List<Template> list = templateService.list();
|
||||||
|
|
||||||
list.forEach(template -> {
|
templateCacheService.put("List",list);
|
||||||
templateCacheService.put(template.getTemplateId().toString(),template);
|
|
||||||
});
|
|
||||||
|
|
||||||
return Result.success(list);
|
return Result.success(list);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue