feat: 新增资产结构统计(完善)

新增资产模型基本信息(初步)
       新增资产模型详细信息(初步)
fix: 修复数据接入树级结构
master
031026 2024-04-26 22:38:29 +08:00
commit b64e86a456
5 changed files with 23 additions and 0 deletions

View File

@ -155,4 +155,10 @@ public class DataSourceController extends BaseController {
public Result<List<DatabaseTableInformation>> table (@RequestParam("databaseName") String databaseName){
return dataSourceService.table(databaseName);
}
//统计数量
@GetMapping("/quantity")
public Result<List<DatabaseTableInformation>> quantity(){
return dataSourceService.quantity();
}
}

View File

@ -43,4 +43,8 @@ public interface DataSourceMapper extends BaseMapper<DataSource> {
List<DatabaseTableModel> database(@Param("name") String name);
List<DatabaseTableInformation> table(@Param("databaseName") String databaseName);
List<DatabaseTableInformation> quantity();
}

View File

@ -41,4 +41,8 @@ public interface DataSourceService extends IService<DataSource> {
Result<List<DatabaseTableModel>> database(String name);
Result<List<DatabaseTableInformation>> table(String databaseName);
Result<List<DatabaseTableInformation>> quantity();
}

View File

@ -277,4 +277,10 @@ public class DataSourceServiceImpl extends ServiceImpl<DataSourceMapper, DataSou
List<DatabaseTableInformation> information = dataSourceMapper.table(databaseName);
return Result.success(information);
}
@Override
public Result<List<DatabaseTableInformation>> quantity() {
return Result.success(dataSourceMapper.quantity());
}
}

View File

@ -187,6 +187,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="table" resultType="com.muyu.data.source.domain.DatabaseTableInformation">
select * from database_table_information where database_name=#{databaseName}
</select>
<select id="quantity" resultType="com.muyu.data.source.domain.DatabaseTableInformation">
select * from database_table_information
</select>
</mapper>