Commit c01eeb85213bfc7fd66dc17fcba8dd669735070d
Committed by
Gitee
1 parent
f90899d7
update ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java.
Showing
1 changed file
with
4 additions
and
1 deletions
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java
| @@ -73,7 +73,10 @@ public class SysDictDataController extends BaseController | @@ -73,7 +73,10 @@ public class SysDictDataController extends BaseController | ||
| 73 | @GetMapping(value = "/type/{dictType}") | 73 | @GetMapping(value = "/type/{dictType}") |
| 74 | public AjaxResult dictType(@PathVariable String dictType) | 74 | public AjaxResult dictType(@PathVariable String dictType) |
| 75 | { | 75 | { |
| 76 | - return AjaxResult.success(dictTypeService.selectDictDataByType(dictType)); | 76 | + List<SysDictData> data = dictTypeService.selectDictDataByType(dictType); |
| 77 | + if (data == null) | ||
| 78 | + data = new ArrayList<>(); | ||
| 79 | + return AjaxResult.success(data); | ||
| 77 | } | 80 | } |
| 78 | 81 | ||
| 79 | /** | 82 | /** |