dengzedong
5 天以前 730d1944e3a13c517c77df2b0712df05645a38dd
iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/ind/data/controller/admin/IndDataSetController.java
@@ -18,6 +18,8 @@
import javax.validation.Valid;
import java.util.List;
import static com.iailab.framework.common.pojo.CommonResult.success;
/**
@@ -27,7 +29,7 @@
 */
@Tag(name = "数据平台 - 指标数据集")
@RestController
@RequestMapping("/data/ind-data-set")
@RequestMapping("/data/ind/data-set")
@Validated
public class IndDataSetController {
    @Autowired
@@ -68,9 +70,17 @@
    @GetMapping("/get")
    @Operation(summary = "获取指标数据集信息")
    @PreAuthorize("@ss.hasPermission('system:ind-data-set:query')")
    @PreAuthorize("@ss.hasPermission('data:ind-data-set:query')")
    public CommonResult<IndDataSetRespVO> get(String id) {
        IndDataSetEntity entity = indDataSetService.get(id);
        return success(BeanUtils.toBean(entity, IndDataSetRespVO.class));
    }
    @GetMapping("/list-all-simple")
    @Operation(summary = "获取指标数据集列表", description = "用于【指标数据集】界面")
    @PreAuthorize("@ss.hasPermission('data:ind-data-set:query')")
    public CommonResult<List<IndDataSetRespVO>> list(IndDataSetPageReqVO reqVO) {
        List<IndDataSetEntity> list = indDataSetService.list(reqVO);
        return success(BeanUtils.toBean(list, IndDataSetRespVO.class));
    }
}