|
@@ -26,10 +26,18 @@ public class CoViewController {
|
|
|
* 获取企业视图配置
|
|
* 获取企业视图配置
|
|
|
*
|
|
*
|
|
|
* @param name
|
|
* @param name
|
|
|
|
|
+ * @param refresh 是否强制刷新
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/config")
|
|
@GetMapping("/config")
|
|
|
- public Result<Object> getViewConfig(@RequestParam String name) {
|
|
|
|
|
|
|
+ public Result<Object> getViewConfig(@RequestParam String name, Boolean refresh) {
|
|
|
|
|
+// if (null != refresh && refresh) {
|
|
|
|
|
+// coViewService.cacheEvict(name);
|
|
|
|
|
+// viewService.cacheEvict(name);
|
|
|
|
|
+// }
|
|
|
|
|
+ coViewService.cacheEvict(name);// 暂时强制刷新
|
|
|
|
|
+ viewService.cacheEvict(name);
|
|
|
|
|
+
|
|
|
Object config = coViewService.getDeepConfig(name);
|
|
Object config = coViewService.getDeepConfig(name);
|
|
|
if (null == config) {
|
|
if (null == config) {
|
|
|
// 企业配置不存在则取标准配置
|
|
// 企业配置不存在则取标准配置
|