Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
ServerModel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
kiritoausna
ServerModel
Commits
882a93aa
Commit
882a93aa
authored
Aug 12, 2025
by
kiritoausna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025.8.12 生成模板
parent
d6cd3951
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
15 deletions
+15
-15
generator.yml
gemho-generator/src/main/resources/generator.yml
+1
-1
GenTableColumnMapper.xml
.../main/resources/mapper/generator/GenTableColumnMapper.xml
+1
-1
GenTableMapper.xml
...or/src/main/resources/mapper/generator/GenTableMapper.xml
+1
-1
controller.java.vm
...o-generator/src/main/resources/vm/java/controller.java.vm
+5
-5
domain.java.vm
gemho-generator/src/main/resources/vm/java/domain.java.vm
+2
-2
service.java.vm
gemho-generator/src/main/resources/vm/java/service.java.vm
+1
-1
serviceImpl.java.vm
...-generator/src/main/resources/vm/java/serviceImpl.java.vm
+2
-2
sub-domain.java.vm
...o-generator/src/main/resources/vm/java/sub-domain.java.vm
+2
-2
No files found.
gemho-generator/src/main/resources/generator.yml
View file @
882a93aa
...
...
@@ -3,7 +3,7 @@ gen:
# 作者
author
:
Tellsea
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
packageName
:
gemho.lswz
.business
packageName
:
com.gemho
.business
# 自动去除表前缀,默认是false
autoRemovePre
:
false
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
...
...
gemho-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml
View file @
882a93aa
...
...
@@ -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"
/>
...
...
gemho-generator/src/main/resources/mapper/generator/GenTableMapper.xml
View file @
882a93aa
...
...
@@ -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"
/>
...
...
gemho-generator/src/main/resources/vm/java/controller.java.vm
View file @
882a93aa
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
...
...
gemho-generator/src/main/resources/vm/java/domain.java.vm
View file @
882a93aa
...
...
@@ -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
;
...
...
gemho-generator/src/main/resources/vm/java/service.java.vm
View file @
882a93aa
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
;
...
...
gemho-generator/src/main/resources/vm/java/serviceImpl.java.vm
View file @
882a93aa
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
;
...
...
gemho-generator/src/main/resources/vm/java/sub-domain.java.vm
View file @
882a93aa
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment