修改框架
This commit is contained in:
@@ -8,7 +8,7 @@ import org.springframework.stereotype.Component;
|
||||
/**
|
||||
* 读取代码生成相关配置
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "gen")
|
||||
|
||||
@@ -40,7 +40,7 @@ import com.quoted.generator.service.IGenTableService;
|
||||
/**
|
||||
* 代码生成 操作处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/tool/gen")
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.quoted.common.utils.StringUtils;
|
||||
/**
|
||||
* 业务表 gen_table
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
public class GenTable extends BaseEntity
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.quoted.common.utils.StringUtils;
|
||||
/**
|
||||
* 代码生成业务字段表 gen_table_column
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
public class GenTableColumn extends BaseEntity
|
||||
{
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import com.quoted.generator.domain.GenTableColumn;
|
||||
/**
|
||||
* 业务字段 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
public interface GenTableColumnMapper
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.quoted.generator.domain.GenTable;
|
||||
/**
|
||||
* 业务 数据层
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
public interface GenTableMapper
|
||||
{
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import com.quoted.generator.mapper.GenTableColumnMapper;
|
||||
/**
|
||||
* 业务字段 服务层实现
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
@Service
|
||||
public class GenTableColumnServiceImpl implements IGenTableColumnService
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ import com.quoted.generator.util.VelocityUtils;
|
||||
/**
|
||||
* 业务 服务层实现
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
@Service
|
||||
public class GenTableServiceImpl implements IGenTableService
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ import com.quoted.generator.domain.GenTableColumn;
|
||||
/**
|
||||
* 业务字段 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
public interface IGenTableColumnService
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.quoted.generator.domain.GenTable;
|
||||
/**
|
||||
* 业务 服务层
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
public interface IGenTableService
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.quoted.generator.domain.GenTableColumn;
|
||||
/**
|
||||
* 代码生成器 工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
public class GenUtils
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.quoted.common.constant.Constants;
|
||||
/**
|
||||
* VelocityEngine工厂
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
public class VelocityInitializer
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.quoted.generator.domain.GenTableColumn;
|
||||
/**
|
||||
* 模板处理工具类
|
||||
*
|
||||
* @author ruoyi
|
||||
* quoted
|
||||
*/
|
||||
public class VelocityUtils
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.generator.mapper.GenTableColumnMapper">
|
||||
<mapper namespace="com.quoted.generator.mapper.GenTableColumnMapper">
|
||||
|
||||
<resultMap type="GenTableColumn" id="GenTableColumnResult">
|
||||
<id property="columnId" column="column_id" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.generator.mapper.GenTableMapper">
|
||||
<mapper namespace="com.quoted.generator.mapper.GenTableMapper">
|
||||
|
||||
<resultMap type="GenTable" id="GenTableResult">
|
||||
<id property="tableId" column="table_id" />
|
||||
|
||||
Reference in New Issue
Block a user