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
57117fdc
Commit
57117fdc
authored
Jul 22, 2021
by
yubaogu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tett
parent
fad96e88
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
serviceImpl.ftl
src/main/resources/freemarker/ftl/serviceImpl.ftl
+1
-1
MyGenerator.java
src/test/java/com/flying/cattle/mdg/MyGenerator.java
+3
-3
No files found.
src/main/resources/freemarker/ftl/serviceImpl.ftl
View file @
57117fdc
...
@@ -8,7 +8,7 @@ package ${serviceImplUrl};
...
@@ -8,7 +8,7 @@ package ${serviceImplUrl};
import
${
entityUrl
}.${
entityName
};
import
${
entityUrl
}.${
entityName
};
import
${
daoUrl
}.${
entityName
}
Mapper
;
import
${
daoUrl
}.${
entityName
}
Mapper
;
import
${
serviceUrl
}.${
entityName
}
Service
;
import
${
serviceUrl
}.${
entityName
}
Biz
;
import
org
.
springframework
.
stereotype
.
Service
;
import
org
.
springframework
.
stereotype
.
Service
;
import
com
.
ydl
.
common
.
service
.
impl
.
BaseService
;
import
com
.
ydl
.
common
.
service
.
impl
.
BaseService
;
import
tk
.
mybatis
.
mapper
.
entity
.
Example
;
import
tk
.
mybatis
.
mapper
.
entity
.
Example
;
...
...
src/test/java/com/flying/cattle/mdg/MyGenerator.java
View file @
57117fdc
...
@@ -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
=
{
"
doctor_role
"
public
static
final
String
[]
TABLES
=
{
"
log_system
"
};
};
/**
/**
"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
=
"
doctor
"
;
public
static
final
String
PROJECT_NAME
=
"
log
"
;
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
-doctor
\\"
;
String
localproject
=
"D:\\ydlwork\\ydl
_log
\\"
;
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\\"
;
// 生成文件存放位置
...
...
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