Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
feaa67ec
Commit
feaa67ec
authored
Nov 17, 2017
by
stylefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改是注释
parent
83f1bdc3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
guns-admin/src/main/java/generator/config/GunsGeneratorConfig.java
+7
-7
guns-core/src/main/java/com/stylefeng/guns/core/util/ToolUtil.java
+1
-1
No files found.
guns-admin/src/main/java/generator/config/GunsGeneratorConfig.java
View file @
feaa67ec
...
...
@@ -13,7 +13,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
@Override
protected
void
globalConfig
()
{
globalConfig
.
setOutputDir
(
"/Users/stylefeng/work/ideaSpace/guns/guns-admin/src/main/java"
);
globalConfig
.
setOutputDir
(
"/Users/stylefeng/work/ideaSpace/guns/guns-admin/src/main/java"
);
//写自己项目的绝对路径,注意具体到java目录
globalConfig
.
setFileOverride
(
true
);
globalConfig
.
setEnableCache
(
false
);
globalConfig
.
setBaseResultMap
(
true
);
...
...
@@ -34,7 +34,7 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
@Override
protected
void
strategyConfig
()
{
//strategy.setTablePrefix(new String[]{"_"});// 此处可以修改为您的表前缀
strategyConfig
.
setInclude
(
new
String
[]{
"
bill"
});
strategyConfig
.
setInclude
(
new
String
[]{
"
user"
});
//这里限制需要生成的表,不写则是生成所有表
strategyConfig
.
setNaming
(
NamingStrategy
.
underline_to_camel
);
}
...
...
@@ -48,12 +48,12 @@ public class GunsGeneratorConfig extends AbstractGeneratorConfig {
@Override
protected
void
contextConfig
()
{
contextConfig
.
setBizChName
(
"
记账
管理"
);
contextConfig
.
setBizEnName
(
"
bill
"
);
contextConfig
.
setBizChName
(
"
用户
管理"
);
contextConfig
.
setBizEnName
(
"
user
"
);
contextConfig
.
setModuleName
(
"system"
);
contextConfig
.
setProjectPath
(
"/Users/stylefeng/work/ideaSpace/guns/guns-admin"
);
contextConfig
.
setEntityName
(
"
Bill
"
);
sqlConfig
.
setParentMenuName
(
"系统管理"
);
contextConfig
.
setProjectPath
(
"/Users/stylefeng/work/ideaSpace/guns/guns-admin"
);
//写自己项目的绝对路径
contextConfig
.
setEntityName
(
"
User
"
);
sqlConfig
.
setParentMenuName
(
"系统管理"
);
//这里写已有菜单的名称,当做父节点
/**
* mybatis-plus 生成器开关
...
...
guns-core/src/main/java/com/stylefeng/guns/core/util/ToolUtil.java
View file @
feaa67ec
...
...
@@ -544,7 +544,7 @@ public class ToolUtil {
BigDecimal
bigDecimal
=
new
BigDecimal
((
Double
)
val
);
return
bigDecimal
.
intValue
();
}
else
{
return
(
Integer
)
val
;
return
Integer
.
valueOf
(
val
.
toString
())
;
}
}
...
...
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