mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	开始开发代码生成器,完成数据库 information_schema 的读取
This commit is contained in:
		| @@ -0,0 +1,27 @@ | ||||
| package cn.iocoder.dashboard.modules.tool.dal.mysql.dao.coegen; | ||||
|  | ||||
| import cn.iocoder.dashboard.TestApplication; | ||||
| import cn.iocoder.dashboard.modules.tool.dal.mysql.dataobject.codegen.ToolInformationSchemaColumnDO; | ||||
| import org.junit.jupiter.api.Test; | ||||
| import org.springframework.boot.test.context.SpringBootTest; | ||||
|  | ||||
| import javax.annotation.Resource; | ||||
| import java.util.List; | ||||
|  | ||||
| import static org.junit.jupiter.api.Assertions.assertTrue; | ||||
|  | ||||
|  | ||||
| @SpringBootTest(classes = TestApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) | ||||
| public class ToolInformationSchemaColumnMapperTest { | ||||
|  | ||||
|     @Resource | ||||
|     private ToolInformationSchemaColumnMapper toolInformationSchemaColumnMapper; | ||||
|  | ||||
|     @Test | ||||
|     public void testSelectListByTableName() { | ||||
|         List<ToolInformationSchemaColumnDO> columns = toolInformationSchemaColumnMapper | ||||
|                 .selectListByTableName("inf_config"); | ||||
|         assertTrue(columns.size() > 0); | ||||
|     } | ||||
|  | ||||
| } | ||||
| @@ -0,0 +1,26 @@ | ||||
| package cn.iocoder.dashboard.modules.tool.dal.mysql.dao.coegen; | ||||
|  | ||||
| import cn.iocoder.dashboard.TestApplication; | ||||
| import cn.iocoder.dashboard.modules.tool.dal.mysql.dataobject.codegen.ToolInformationSchemaTableDO; | ||||
| import org.junit.jupiter.api.Test; | ||||
| import org.springframework.boot.test.context.SpringBootTest; | ||||
|  | ||||
| import javax.annotation.Resource; | ||||
| import java.util.List; | ||||
|  | ||||
| import static org.junit.jupiter.api.Assertions.assertTrue; | ||||
|  | ||||
| @SpringBootTest(classes = TestApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) | ||||
| class ToolInformationSchemaTableMapperTest { | ||||
|  | ||||
|     @Resource | ||||
|     private ToolInformationSchemaTableMapper toolInformationSchemaTableMapper; | ||||
|  | ||||
|     @Test | ||||
|     public void tstSelectListByTableSchema() { | ||||
|         List<ToolInformationSchemaTableDO> tables = toolInformationSchemaTableMapper | ||||
|                 .selectListByTableSchema("ruoyi-vue-pro"); | ||||
|         assertTrue(tables.size() > 0); | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV