| | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询表中数据") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "metaid", value = "元数据ID", dataType = "Integer", paramType = "1") |
| | | @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "1") |
| | | }) |
| | | @GetMapping(value = "/selectDbData") |
| | | public ResponseMsg<Object> selectDbData(Integer metaid) { |
| | | public ResponseMsg<Object> selectDbData(Integer id) { |
| | | try { |
| | | // |
| | | if (null == id || id < 0) { |
| | | return fail("元数据ID不能为空或小于0", null); |
| | | } |
| | | |
| | | MetaEntity meta = metaService.selectById(id); |
| | | if (null == meta || null == meta.getTab() || meta.getTab().indexOf(".") < 0) { |
| | | return fail("找不到元数据信息", null); |
| | | } |
| | | |
| | | String entity = meta.getTab().split(".")[1].replace("_", "").toLowerCase(); |
| | | |
| | | return success(null); |
| | | } catch (Exception ex) { |