mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-30 01:38:43 +08:00 
			
		
		
		
	1.代码格式调整
This commit is contained in:
		| @@ -10,7 +10,7 @@ import java.util.List; | |||||||
| @Mapper | @Mapper | ||||||
| public interface ToolSchemaColumnMapper extends BaseMapperX<ToolSchemaColumnDO> { | public interface ToolSchemaColumnMapper extends BaseMapperX<ToolSchemaColumnDO> { | ||||||
|  |  | ||||||
|     default List<ToolSchemaColumnDO> selectListByTableName(String tableSchema,String tableName) { |     default List<ToolSchemaColumnDO> selectListByTableName(String tableSchema, String tableName) { | ||||||
|         return selectList(new QueryWrapper<ToolSchemaColumnDO>().eq("table_name", tableName) |         return selectList(new QueryWrapper<ToolSchemaColumnDO>().eq("table_name", tableName) | ||||||
|                 .eq("table_schema", tableSchema) |                 .eq("table_schema", tableSchema) | ||||||
|                 .orderByAsc("ordinal_position")); |                 .orderByAsc("ordinal_position")); | ||||||
|   | |||||||
| @@ -22,7 +22,7 @@ public interface ToolSchemaTableMapper extends BaseMapperX<ToolSchemaTableDO> { | |||||||
|         return selectList(new QueryWrapper<ToolSchemaTableDO>().eq("table_schema", tableSchema)); |         return selectList(new QueryWrapper<ToolSchemaTableDO>().eq("table_schema", tableSchema)); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     default ToolSchemaTableDO selectByTableName1(String tableSchema,String tableName) { |     default ToolSchemaTableDO selectByTableName1(String tableSchema, String tableName) { | ||||||
|         return selectOne(new QueryWrapper<ToolSchemaTableDO>().eq("table_schema",tableSchema) |         return selectOne(new QueryWrapper<ToolSchemaTableDO>().eq("table_schema",tableSchema) | ||||||
|                         .eq("table_name", tableName)); |                         .eq("table_name", tableName)); | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -104,8 +104,8 @@ public class ToolCodegenServiceImpl implements ToolCodegenService { | |||||||
|         //获取当前schema |         //获取当前schema | ||||||
|         String tableSchema = codegenProperties.getDbSchemas().iterator().next(); |         String tableSchema = codegenProperties.getDbSchemas().iterator().next(); | ||||||
|         // 从数据库中,获得数据库表结构 |         // 从数据库中,获得数据库表结构 | ||||||
|         ToolSchemaTableDO schemaTable = schemaTableMapper.selectByTableName1(tableSchema,tableName); |         ToolSchemaTableDO schemaTable = schemaTableMapper.selectByTableName1(tableSchema, tableName); | ||||||
|         List<ToolSchemaColumnDO> schemaColumns = schemaColumnMapper.selectListByTableName(tableSchema,tableName); |         List<ToolSchemaColumnDO> schemaColumns = schemaColumnMapper.selectListByTableName(tableSchema, tableName); | ||||||
|         // 导入 |         // 导入 | ||||||
|         return this.createCodegen0(ToolCodegenImportTypeEnum.DB, schemaTable, schemaColumns); |         return this.createCodegen0(ToolCodegenImportTypeEnum.DB, schemaTable, schemaColumns); | ||||||
|     } |     } | ||||||
| @@ -145,7 +145,7 @@ public class ToolCodegenServiceImpl implements ToolCodegenService { | |||||||
|         } |         } | ||||||
|         String tableSchema = codegenProperties.getDbSchemas().iterator().next(); |         String tableSchema = codegenProperties.getDbSchemas().iterator().next(); | ||||||
|         // 从数据库中,获得数据库表结构 |         // 从数据库中,获得数据库表结构 | ||||||
|         List<ToolSchemaColumnDO> schemaColumns = schemaColumnMapper.selectListByTableName(tableSchema,table.getTableName()); |         List<ToolSchemaColumnDO> schemaColumns = schemaColumnMapper.selectListByTableName(tableSchema, table.getTableName()); | ||||||
|  |  | ||||||
|         // 执行同步 |         // 执行同步 | ||||||
|         this.syncCodegen0(tableId, schemaColumns); |         this.syncCodegen0(tableId, schemaColumns); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 shanzhiliu
					shanzhiliu