梳理代码生成器的配置

This commit is contained in:
YunaiV
2021-02-10 23:39:00 +08:00
parent 54c98c3a44
commit 63962d557a
22 changed files with 237 additions and 97 deletions

View File

@ -1,7 +1,7 @@
package cn.iocoder.dashboard.modules.tool.dal.mysql.coegen;
import cn.iocoder.dashboard.TestApplication;
import cn.iocoder.dashboard.modules.tool.dal.dataobject.codegen.ToolInformationSchemaColumnDO;
import cn.iocoder.dashboard.modules.tool.dal.dataobject.codegen.ToolSchemaColumnDO;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@ -15,11 +15,11 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
public class ToolInformationSchemaColumnMapperTest {
@Resource
private ToolInformationSchemaColumnMapper toolInformationSchemaColumnMapper;
private ToolSchemaColumnMapper toolInformationSchemaColumnMapper;
@Test
public void testSelectListByTableName() {
List<ToolInformationSchemaColumnDO> columns = toolInformationSchemaColumnMapper
List<ToolSchemaColumnDO> columns = toolInformationSchemaColumnMapper
.selectListByTableName("inf_config");
assertTrue(columns.size() > 0);
}

View File

@ -1,7 +1,7 @@
package cn.iocoder.dashboard.modules.tool.dal.mysql.coegen;
import cn.iocoder.dashboard.TestApplication;
import cn.iocoder.dashboard.modules.tool.dal.dataobject.codegen.ToolInformationSchemaTableDO;
import cn.iocoder.dashboard.modules.tool.dal.dataobject.codegen.ToolSchemaTableDO;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@ -14,11 +14,11 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
class ToolInformationSchemaTableMapperTest {
@Resource
private ToolInformationSchemaTableMapper toolInformationSchemaTableMapper;
private ToolSchemaTableMapper toolInformationSchemaTableMapper;
@Test
public void tstSelectListByTableSchema() {
List<ToolInformationSchemaTableDO> tables = toolInformationSchemaTableMapper
List<ToolSchemaTableDO> tables = toolInformationSchemaTableMapper
.selectListByTableSchema("ruoyi-vue-pro");
assertTrue(tables.size() > 0);
}