| | |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.all.StaticData; |
| | | import com.lf.server.entity.data.DirEntity; |
| | | import com.lf.server.entity.data.MetaEntity; |
| | | import com.lf.server.helper.HttpHelper; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.service.data.DirService; |
| | | import com.lf.server.service.data.FmeService; |
| | | import com.lf.server.service.data.MetaService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | |
| | | @Autowired |
| | | FmeService fmeService; |
| | | |
| | | @Autowired |
| | | MetaService metaService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询项目") |
| | |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "根据目录编码查询元数据文件") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dircode", value = "目录编码", dataType = "String", paramType = "query", example = "01") |
| | | }) |
| | | @GetMapping(value = "/selectMetasByDirCode") |
| | | public ResponseMsg<Object> selectMetasByDirCode(String dircode) { |
| | | try { |
| | | if (StringHelper.isEmpty(dircode)) { |
| | | return fail("目录编码不能为空"); |
| | | } |
| | | |
| | | List<MetaEntity> list = metaService.selectMetasByDirCode(dircode); |
| | | |
| | | return success(null == list ? 0 : list.size(), list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | } |