Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
4158efcf
Commit
4158efcf
authored
Sep 22, 2022
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逆向工程生成代码项目结构调整
parent
49d3b76b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
MyBatisPlusCodeGenerator.java
.../amos/boot/biz/common/utils/MyBatisPlusCodeGenerator.java
+7
-6
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/MyBatisPlusCodeGenerator.java
View file @
4158efcf
...
@@ -26,18 +26,18 @@ public class MyBatisPlusCodeGenerator {
...
@@ -26,18 +26,18 @@ public class MyBatisPlusCodeGenerator {
/**
/**
* 项目名称缩写
* 项目名称缩写
*/
*/
static
String
projectShortName
=
"
tzs
"
;
static
String
projectShortName
=
"
ugp
"
;
/**
/**
* 项目api目录
* 项目api目录
*/
*/
static
String
apiAddress
=
"/amos-boot-
module/amos-boot-module-api/"
+
"
amos-boot-module-"
+
projectShortName
+
static
String
apiAddress
=
"/amos-boot-
system-"
+
projectShortName
+
"/
amos-boot-module-"
+
projectShortName
+
"-api/"
;
"-api/"
;
/**
/**
* 项目biz目录
* 项目biz目录
*/
*/
static
String
bizAddress
=
"/amos-boot-
module/amos-boot-module-biz/"
+
"
amos-boot-module-"
+
projectShortName
+
static
String
bizAddress
=
"/amos-boot-
system-"
+
projectShortName
+
"/
amos-boot-module-"
+
projectShortName
+
"-biz/"
;
"-biz/"
;
/**
/**
...
@@ -102,12 +102,12 @@ public class MyBatisPlusCodeGenerator {
...
@@ -102,12 +102,12 @@ public class MyBatisPlusCodeGenerator {
gc
.
setActiveRecord
(
false
);
gc
.
setActiveRecord
(
false
);
// 数据源配置
// 数据源配置
DataSourceConfig
dsc
=
new
DataSourceConfig
();
DataSourceConfig
dsc
=
new
DataSourceConfig
();
dsc
.
setUrl
(
"jdbc:mysql://
172.16.6.60:3306/amos-tzs-
biz?serverTimezone=GMT%2B8"
);
dsc
.
setUrl
(
"jdbc:mysql://
39.98.45.134:3306/tzs_amos_ugp_
biz?serverTimezone=GMT%2B8"
);
// dsc.setSchemaName("public");
// dsc.setSchemaName("public");
// dsc.setDriverName("com.mysql.jdbc.Driver");
// dsc.setDriverName("com.mysql.jdbc.Driver");
dsc
.
setDriverName
(
"com.mysql.cj.jdbc.Driver"
);
dsc
.
setDriverName
(
"com.mysql.cj.jdbc.Driver"
);
dsc
.
setUsername
(
"root"
);
dsc
.
setUsername
(
"root"
);
dsc
.
setPassword
(
"
root_123
"
);
dsc
.
setPassword
(
"
Yeejoin@2020
"
);
dsc
.
setTypeConvert
(
new
ITypeConvert
()
{
dsc
.
setTypeConvert
(
new
ITypeConvert
()
{
@Override
@Override
...
@@ -292,7 +292,8 @@ public class MyBatisPlusCodeGenerator {
...
@@ -292,7 +292,8 @@ public class MyBatisPlusCodeGenerator {
strategy
.
setControllerMappingHyphenStyle
(
true
);
strategy
.
setControllerMappingHyphenStyle
(
true
);
strategy
.
setTablePrefix
();
strategy
.
setTablePrefix
();
//去除表名前缀
//去除表名前缀
strategy
.
setTablePrefix
(
"t_"
,
"tb_"
,
"sys_"
,
"other_"
,
"rpm_"
,
"s_"
,
"tcb_"
,
"cb_"
,
"tz_"
,
"jc_"
,
"jcb_"
);
strategy
.
setTablePrefix
(
"tz_"
+
projectShortName
+
"_"
,
"t_"
,
"tb_"
,
"sys_"
,
"other_"
,
"rpm_"
,
"s_"
,
"tcb_"
,
"cb_"
,
"tz_"
,
"jc_"
,
"jcb_"
,
"flc_"
);
// 设置父级Controller
// 设置父级Controller
strategy
.
setSuperControllerClass
(
"com.yeejoin.amos.boot.biz.common.controller.BaseController"
);
strategy
.
setSuperControllerClass
(
"com.yeejoin.amos.boot.biz.common.controller.BaseController"
);
autoGenerator
.
setStrategy
(
strategy
);
autoGenerator
.
setStrategy
(
strategy
);
...
...
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