From c01eeb85213bfc7fd66dc17fcba8dd669735070d Mon Sep 17 00:00:00 2001 From: abbfun <819589789@qq.com> Date: Tue, 8 Dec 2020 11:11:34 +0800 Subject: [PATCH] update ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java. --- .../ruoyi/web/controller/system/SysDictDataController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java index 58cf43d..9e966d4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java @@ -73,7 +73,10 @@ public class SysDictDataController extends BaseController @GetMapping(value = "/type/{dictType}") public AjaxResult dictType(@PathVariable String dictType) { - return AjaxResult.success(dictTypeService.selectDictDataByType(dictType)); + List data = dictTypeService.selectDictDataByType(dictType); + if (data == null) + data = new ArrayList<>(); + return AjaxResult.success(data); } /**