This commit is contained in:
parent
6c8f554859
commit
64bac10fe7
|
|
@ -35,6 +35,9 @@ public class GenConstants
|
|||
public static final String[] COLUMNTYPE_STR = { "char", "varchar", "nvarchar", "varchar2", "tinytext", "text",
|
||||
"mediumtext", "longtext" };
|
||||
|
||||
/** 数据库文本类型 */
|
||||
public static final String[] COLUMNTYPE_TEXT = { "tinytext", "text", "mediumtext", "longtext" };
|
||||
|
||||
/** 数据库时间类型 */
|
||||
public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" };
|
||||
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ import com.hchyun.common.core.domain.AjaxResult;
|
|||
import com.hchyun.common.core.page.TableDataInfo;
|
||||
import com.hchyun.common.core.text.Convert;
|
||||
import com.hchyun.common.enums.BusinessType;
|
||||
import com.hchyun.generator.domain.GenTable;
|
||||
import com.hchyun.generator.domain.GenTableColumn;
|
||||
import com.hchyun.generator.entity.GenTable;
|
||||
import com.hchyun.generator.entity.GenTableColumn;
|
||||
import com.hchyun.generator.service.IGenTableColumnService;
|
||||
import com.hchyun.generator.service.IGenTableService;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package com.hchyun.generator.mapper;
|
||||
package com.hchyun.generator.dao;
|
||||
|
||||
import java.util.List;
|
||||
import com.hchyun.generator.domain.GenTableColumn;
|
||||
import com.hchyun.generator.entity.GenTableColumn;
|
||||
|
||||
/**
|
||||
* 业务字段 数据层
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package com.hchyun.generator.mapper;
|
||||
package com.hchyun.generator.dao;
|
||||
|
||||
import java.util.List;
|
||||
import com.hchyun.generator.domain.GenTable;
|
||||
import com.hchyun.generator.entity.GenTable;
|
||||
|
||||
/**
|
||||
* 业务 数据层
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.hchyun.generator.domain;
|
||||
package com.hchyun.generator.entity;
|
||||
|
||||
import java.util.List;
|
||||
import javax.validation.Valid;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.hchyun.generator.domain;
|
||||
package com.hchyun.generator.entity;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import com.hchyun.common.core.domain.BaseEntity;
|
||||
|
|
@ -4,8 +4,8 @@ import java.util.List;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.hchyun.common.core.text.Convert;
|
||||
import com.hchyun.generator.domain.GenTableColumn;
|
||||
import com.hchyun.generator.mapper.GenTableColumnMapper;
|
||||
import com.hchyun.generator.entity.GenTableColumn;
|
||||
import com.hchyun.generator.dao.GenTableColumnMapper;
|
||||
|
||||
/**
|
||||
* 业务字段 服务层实现
|
||||
|
|
|
|||
|
|
@ -28,10 +28,10 @@ import com.hchyun.common.exception.CustomException;
|
|||
import com.hchyun.common.utils.SecurityUtils;
|
||||
import com.hchyun.common.utils.StringUtils;
|
||||
import com.hchyun.common.utils.file.FileUtils;
|
||||
import com.hchyun.generator.domain.GenTable;
|
||||
import com.hchyun.generator.domain.GenTableColumn;
|
||||
import com.hchyun.generator.mapper.GenTableColumnMapper;
|
||||
import com.hchyun.generator.mapper.GenTableMapper;
|
||||
import com.hchyun.generator.entity.GenTable;
|
||||
import com.hchyun.generator.entity.GenTableColumn;
|
||||
import com.hchyun.generator.dao.GenTableColumnMapper;
|
||||
import com.hchyun.generator.dao.GenTableMapper;
|
||||
import com.hchyun.generator.util.GenUtils;
|
||||
import com.hchyun.generator.util.VelocityInitializer;
|
||||
import com.hchyun.generator.util.VelocityUtils;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package com.hchyun.generator.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.hchyun.generator.domain.GenTableColumn;
|
||||
import com.hchyun.generator.entity.GenTableColumn;
|
||||
|
||||
/**
|
||||
* 业务字段 服务层
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.hchyun.generator.service;
|
|||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import com.hchyun.generator.domain.GenTable;
|
||||
import com.hchyun.generator.entity.GenTable;
|
||||
|
||||
/**
|
||||
* 业务 服务层
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import org.apache.commons.lang3.RegExUtils;
|
|||
import com.hchyun.common.constant.GenConstants;
|
||||
import com.hchyun.common.utils.StringUtils;
|
||||
import com.hchyun.generator.config.GenConfig;
|
||||
import com.hchyun.generator.domain.GenTable;
|
||||
import com.hchyun.generator.domain.GenTableColumn;
|
||||
import com.hchyun.generator.entity.GenTable;
|
||||
import com.hchyun.generator.entity.GenTableColumn;
|
||||
|
||||
/**
|
||||
* 代码生成器 工具类
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import com.alibaba.fastjson.JSONObject;
|
|||
import com.hchyun.common.constant.GenConstants;
|
||||
import com.hchyun.common.utils.DateUtils;
|
||||
import com.hchyun.common.utils.StringUtils;
|
||||
import com.hchyun.generator.domain.GenTable;
|
||||
import com.hchyun.generator.domain.GenTableColumn;
|
||||
import com.hchyun.generator.entity.GenTable;
|
||||
import com.hchyun.generator.entity.GenTableColumn;
|
||||
|
||||
/**
|
||||
* 模板处理工具类
|
||||
|
|
|
|||
|
|
@ -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.hchyun.generator.dao.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.hchyun.generator.dao.GenTableMapper">
|
||||
|
||||
<resultMap type="GenTable" id="GenTableResult">
|
||||
<id property="tableId" column="table_id" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue