| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询项目名称") |
| | | @GetMapping(value = "/selectProject") |
| | | public ResponseMsg<Object> selectProject() { |
| | | try { |
| | | List<DirEntity> list = uploadService.selectProject(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询所有表") |
| | | @GetMapping(value = "/selectTabs") |
| | | public ResponseMsg<List<TabEntity>> selectTabs() { |
| | |
| | | } |
| | | |
| | | MetaEntity meta = metaService.selectById(id); |
| | | if (null == meta || null == meta.getBstab() || !meta.getBstab().contains(StaticData.POINT)) { |
| | | if (null == meta || null == meta.getTab() || !meta.getTab().contains(StaticData.POINT)) { |
| | | return fail("找不到元数据信息", null); |
| | | } |
| | | |
| | | String entity = meta.getBstab().substring(meta.getBstab().indexOf(".") + 1).replace("_", "").toLowerCase(); |
| | | String entity = meta.getTab().substring(meta.getTab().indexOf(".") + 1).replace("_", "").toLowerCase(); |
| | | BasicMapper baseMapper = ClassHelper.getBasicMapper(entity); |
| | | if (null == baseMapper) { |
| | | return null; |