update ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java.

This commit is contained in:
abbfun 2020-12-08 11:11:34 +08:00 committed by Gitee
parent f90899d72a
commit c01eeb8521
1 changed files with 4 additions and 1 deletions

View File

@ -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<SysDictData> data = dictTypeService.selectDictDataByType(dictType);
if (data == null)
data = new ArrayList<>();
return AjaxResult.success(data);
}
/**