| | |
| | | package com.ruoyi.project.system.controller;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.security.access.prepost.PreAuthorize;
|
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | | import org.springframework.web.bind.annotation.RestController;
|
| | | import com.ruoyi.common.utils.SecurityUtils;
|
| | | import com.ruoyi.common.utils.StringUtils;
|
| | | import com.ruoyi.common.utils.poi.ExcelUtil;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log;
|
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
|
| | |
| | | @GetMapping(value = "/type/{dictType}")
|
| | | public AjaxResult dictType(@PathVariable String dictType)
|
| | | {
|
| | | return AjaxResult.success(dictTypeService.selectDictDataByType(dictType));
|
| | | List<SysDictData> data = dictTypeService.selectDictDataByType(dictType);
|
| | | if (StringUtils.isNull(data))
|
| | | {
|
| | | data = new ArrayList<SysDictData>();
|
| | | }
|
| | | return AjaxResult.success(data);
|
| | | }
|
| | |
|
| | | /**
|