Commit 882a93aa authored by kiritoausna's avatar kiritoausna

2025.8.12 生成模板

parent d6cd3951
......@@ -3,7 +3,7 @@ gen:
# 作者
author: Tellsea
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
packageName: gemho.lswz.business
packageName: com.gemho.business
# 自动去除表前缀,默认是false
autoRemovePre: false
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
......
......@@ -2,7 +2,7 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="gemho.lswz.generator.mapper.GenTableColumnMapper">
<mapper namespace="com.gemho.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="gemho.lswz.generator.mapper.GenTableMapper">
<mapper namespace="com.gemho.generator.mapper.GenTableMapper">
<resultMap type="GenTable" id="GenTableResult">
<id property="tableId" column="table_id" />
......
package ${packageName}.controller;
import gemho.lswz.common.annotation.Log;
import com.gemho.common.annotation.Log;
import common.gemho.common.core.BaseController;
import gemho.lswz.common.core.domain.AjaxResult;
import gemho.lswz.common.enums.BusinessType;
import gemho.lswz.common.utils.poi.ExcelUtil;
import com.gemho.common.core.domain.AjaxResult;
import com.gemho.common.enums.BusinessType;
import com.gemho.common.utils.poi.ExcelUtil;
import ${packageName}.vo.${ClassName}Vo;
import ${packageName}.service.I${ClassName}Service;
import io.swagger.annotations.Api;
......@@ -14,7 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
#if($table.crud || $table.sub)
import gemho.lswz.common.core.page.TableDataInfo;
import com.gemho.common.core.page.TableDataInfo;
#elseif($table.tree)
#end
......
......@@ -3,12 +3,12 @@ package ${packageName}.domain;
#foreach ($import in $importList)
import ${import};
#end
import gemho.lswz.common.annotation.Excel;
import com.gemho.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
#if($table.crud || $table.sub)
#elseif($table.tree)
import gemho.lswz.common.core.domain.TreeEntity;
import com.gemho.common.core.domain.TreeEntity;
#end
import lombok.Data;
import lombok.EqualsAndHashCode;
......
package ${packageName}.service;
import com.baomidou.mybatisplus.extension.service.IService;
import gemho.lswz.common.core.page.TableDataInfo;
import com.gemho.common.core.page.TableDataInfo;
import ${packageName}.domain.${ClassName};
import ${packageName}.vo.${ClassName}Vo;
......
package ${packageName}.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import gemho.lswz.common.core.page.TableDataInfo;
import gemho.lswz.common.utils.PageUtils;
import com.gemho.common.core.page.TableDataInfo;
import com.gemho.common.utils.PageUtils;
import ${packageName}.domain.${ClassName};
import ${packageName}.vo.${ClassName}Vo;
import ${packageName}.mapper.${ClassName}Mapper;
......
......@@ -5,8 +5,8 @@ import ${import};
#end
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import annotation.common.gemho.lswz.Excel;
import domain.core.common.gemho.lswz.BaseEntity;
import annotation.common.com.gemho.Excel;
import domain.core.common.com.gemho.BaseEntity;
/**
* ${subTable.functionName}对象 ${subTableName}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment