Commit 80c9f00c authored by wujipeng's avatar wujipeng
Browse files

元数据详情

parent 42f628f3
...@@ -37,5 +37,11 @@ public class MetaDataController { ...@@ -37,5 +37,11 @@ public class MetaDataController {
return Result.success(metaDataService.getDownDataById(id)); return Result.success(metaDataService.getDownDataById(id));
} }
@ApiOperation("详情")
@GetMapping("/detail/{id}")
public Result<MetaDataVO> detail(@PathVariable String id) {
return Result.success(metaDataService.detail(id));
}
} }
...@@ -19,4 +19,6 @@ public interface MetaDataMapper extends BaseMapper<MetaDataEntity> { ...@@ -19,4 +19,6 @@ public interface MetaDataMapper extends BaseMapper<MetaDataEntity> {
List<MetaDataVO> getUpDataById(@Param("id") String id); List<MetaDataVO> getUpDataById(@Param("id") String id);
List<MetaDataVO> getDownDataById(@Param("id")String id); List<MetaDataVO> getDownDataById(@Param("id")String id);
MetaDataVO detail(@Param("id")String id);
} }
...@@ -18,4 +18,6 @@ public interface MetaDataService extends IService<MetaDataEntity> { ...@@ -18,4 +18,6 @@ public interface MetaDataService extends IService<MetaDataEntity> {
List<MetaDataVO> getDownDataById(String id); List<MetaDataVO> getDownDataById(String id);
MetaDataVO detail(String id);
} }
...@@ -26,4 +26,9 @@ public class MetaDataServiceImpl extends ServiceImpl<MetaDataMapper, MetaDataEnt ...@@ -26,4 +26,9 @@ public class MetaDataServiceImpl extends ServiceImpl<MetaDataMapper, MetaDataEnt
public List<MetaDataVO> getDownDataById(String id) { public List<MetaDataVO> getDownDataById(String id) {
return baseMapper.getDownDataById(id); return baseMapper.getDownDataById(id);
} }
@Override
public MetaDataVO detail(String id) {
return baseMapper.detail(id);
}
} }
...@@ -45,4 +45,18 @@ ...@@ -45,4 +45,18 @@
) )
SELECT * FROM downstream WHERE id != #{id} and hidden = 0 SELECT * FROM downstream WHERE id != #{id} and hidden = 0
</select> </select>
<select id="detail" resultType="com.ruzhoukj.integration.pojo.vo.MetaDataVO">
select id,
name,
value,
reunite,
formula,
attribute,
hidden,
version
from
meta_data
where
id = #{id}
</select>
</mapper> </mapper>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment