Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-generator
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
余保谷
ydl-generator
Commits
5a76e019
Commit
5a76e019
authored
Jul 27, 2021
by
yubaogu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tett
parent
57117fdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
MyGenerator.java
src/test/java/com/flying/cattle/mdg/MyGenerator.java
+7
-7
No files found.
src/test/java/com/flying/cattle/mdg/MyGenerator.java
View file @
5a76e019
...
@@ -39,7 +39,7 @@ public class MyGenerator implements Serializable {
...
@@ -39,7 +39,7 @@ public class MyGenerator implements Serializable {
public
static
final
String
DATABASE
=
"ydl"
;
public
static
final
String
DATABASE
=
"ydl"
;
// 类信息:类名、对象名(一般是【类名】的首字母小些)、类说明、时间
// 类信息:类名、对象名(一般是【类名】的首字母小些)、类说明、时间
public
static
final
String
TABLE
=
"doctor"
;
public
static
final
String
TABLE
=
"doctor"
;
public
static
final
String
[]
TABLES
=
{
"
log_system
"
public
static
final
String
[]
TABLES
=
{
"
region
"
};
};
/**
/**
"doctor_base_data","doctor_order","doctor","expert_interview","expert_interview_result","expert_result",
"doctor_base_data","doctor_order","doctor","expert_interview","expert_interview_result","expert_result",
...
@@ -63,7 +63,7 @@ public class MyGenerator implements Serializable {
...
@@ -63,7 +63,7 @@ public class MyGenerator implements Serializable {
//是否是Swagger配置
//是否是Swagger配置
public
static
final
String
IS_SWAGGER
=
"true"
;
public
static
final
String
IS_SWAGGER
=
"true"
;
public
static
final
String
PROJECT_NAME
=
"
log
"
;
public
static
final
String
PROJECT_NAME
=
"
doctor
"
;
public
static
void
main
(
String
[]
args
)
throws
IOException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
System
.
out
.
println
(
MyGenerator
.
class
.
getResource
(
""
).
getPath
());
System
.
out
.
println
(
MyGenerator
.
class
.
getResource
(
""
).
getPath
());
...
@@ -83,7 +83,7 @@ public class MyGenerator implements Serializable {
...
@@ -83,7 +83,7 @@ public class MyGenerator implements Serializable {
bi
.
setEntityComment
(
CLASSCOMMENT
);
bi
.
setEntityComment
(
CLASSCOMMENT
);
try
{
try
{
bi
=
EntityInfoUtil
.
getInfo
(
bi
);
bi
=
EntityInfoUtil
.
getInfo
(
bi
);
String
localproject
=
"D:\\ydlwork\\ydl
_log
\\"
;
String
localproject
=
"D:\\ydlwork\\ydl
-doctor
\\"
;
String
fileServiceUrl
=
localproject
+
"ydl-*project*-service\\src\\main\\"
+
"java\\"
;
// 生成文件存放位置
String
fileServiceUrl
=
localproject
+
"ydl-*project*-service\\src\\main\\"
+
"java\\"
;
// 生成文件存放位置
String
fileServiceMapper
=
localproject
+
"ydl-*project*-service\\src\\main\\"
+
"resources\\"
;
// 生成文件存放位置
String
fileServiceMapper
=
localproject
+
"ydl-*project*-service\\src\\main\\"
+
"resources\\"
;
// 生成文件存放位置
String
fileIntfUrl
=
localproject
+
"ydl-*project*-intf\\src\\main\\java\\"
;
// 生成文件存放位置
String
fileIntfUrl
=
localproject
+
"ydl-*project*-intf\\src\\main\\java\\"
;
// 生成文件存放位置
...
@@ -98,8 +98,8 @@ public class MyGenerator implements Serializable {
...
@@ -98,8 +98,8 @@ public class MyGenerator implements Serializable {
String
aa1
=
Generator
.
createEntity
(
fileIntfUrl
,
bi
).
toString
();
String
aa1
=
Generator
.
createEntity
(
fileIntfUrl
,
bi
).
toString
();
String
aa2
=
Generator
.
createDao
(
fileServiceUrl
,
bi
).
toString
();
String
aa2
=
Generator
.
createDao
(
fileServiceUrl
,
bi
).
toString
();
String
aa3
=
Generator
.
createDaoImpl
(
fileServiceMapper
,
bi
).
toString
();
String
aa3
=
Generator
.
createDaoImpl
(
fileServiceMapper
,
bi
).
toString
();
String
aa4
=
Generator
.
createService
(
fileServiceUrl
,
bi
).
toString
();
//
String aa4 = Generator.createService(fileServiceUrl, bi).toString();
String
aa5
=
Generator
.
createServiceImpl
(
fileServiceUrl
,
bi
).
toString
();
//
String aa5 = Generator.createServiceImpl(fileServiceUrl, bi).toString();
//String aa6 = Generator.createController(fileApiUrl, bi).toString();
//String aa6 = Generator.createController(fileApiUrl, bi).toString();
// 是否创建swagger配置文件
// 是否创建swagger配置文件
//String aa7 = Generator.createSwaggerConfig(fileUrl, bi).toString();
//String aa7 = Generator.createSwaggerConfig(fileUrl, bi).toString();
...
@@ -110,8 +110,8 @@ public class MyGenerator implements Serializable {
...
@@ -110,8 +110,8 @@ public class MyGenerator implements Serializable {
System
.
out
.
println
(
aa1
);
System
.
out
.
println
(
aa1
);
System
.
out
.
println
(
aa2
);
System
.
out
.
println
(
aa2
);
System
.
out
.
println
(
aa3
);
System
.
out
.
println
(
aa3
);
System
.
out
.
println
(
aa4
);
//
System.out.println(aa4);
System
.
out
.
println
(
aa5
);
//
System.out.println(aa5);
//System.out.println(aa6);
//System.out.println(aa6);
//System.out.println(aa7);
//System.out.println(aa7);
...
...
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