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
2818887b
Commit
2818887b
authored
Nov 16, 2019
by
尛爺鑫
Committed by
Gitee
Nov 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test类修改
parent
48a43a29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
MyGenerator.java
src/test/java/com/flying/cattle/mdg/MyGenerator.java
+14
-11
No files found.
src/test/java/com/flying/cattle/mdg/MyGenerator.java
View file @
2818887b
...
@@ -6,13 +6,20 @@
...
@@ -6,13 +6,20 @@
*/
*/
package
com
.
flying
.
cattle
.
mdg
;
package
com
.
flying
.
cattle
.
mdg
;
/**
* @filename:UserController 2019年4月9日
* @project wallet-manage V1.0
* Copyright(c) 2018 flying-cattle Co. Ltd.
* All right reserved.
*/
import
java.sql.SQLException
;
import
java.sql.SQLException
;
import
java.util.Date
;
import
java.util.Date
;
import
com.github.flying.cattle.mdg.entity.BasisInfo
;
import
com.github.mybatis.fl.entity.BasisInfo
;
import
com.github.flying.cattle.mdg.util.EntityInfoUtil
;
import
com.github.mybatis.fl.util.EntityInfoUtil
;
import
com.github.flying.cattle.mdg.util.Generator
;
import
com.github.mybatis.fl.util.Generator
;
import
com.github.flying.cattle.mdg.util.MySqlToJavaUtil
;
import
com.github.mybatis.fl.util.MySqlToJavaUtil
;
/**
/**
* Copyright: Copyright (c) 2019
* Copyright: Copyright (c) 2019
*
*
...
@@ -46,8 +53,7 @@ public class MyGenerator {
...
@@ -46,8 +53,7 @@ public class MyGenerator {
public
static
final
String
IS_SWAGGER
=
"true"
;
public
static
final
String
IS_SWAGGER
=
"true"
;
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
BasisInfo
bi
=
new
BasisInfo
(
PROJECT
,
AUTHOR
,
VERSION
,
URL
,
NAME
,
PASS
,
DATABASE
,
TIME
,
AGILE
,
ENTITY_URL
,
BasisInfo
bi
=
new
BasisInfo
(
PROJECT
,
AUTHOR
,
VERSION
,
URL
,
NAME
,
PASS
,
DATABASE
,
CLASSNAME
,
AGILE
,
ENTITY_URL
,
DAO_URL
,
XML_URL
,
SERVICE_URL
,
SERVICE_IMPL_URL
,
CONTROLLER_URL
);
DAO_URL
,
XML_URL
,
SERVICE_URL
,
SERVICE_IMPL_URL
,
CONTROLLER_URL
,
IS_SWAGGER
);
bi
.
setTable
(
TABLE
);
bi
.
setTable
(
TABLE
);
bi
.
setEntityName
(
MySqlToJavaUtil
.
getClassName
(
TABLE
));
bi
.
setEntityName
(
MySqlToJavaUtil
.
getClassName
(
TABLE
));
bi
.
setObjectName
(
MySqlToJavaUtil
.
changeToJavaFiled
(
TABLE
));
bi
.
setObjectName
(
MySqlToJavaUtil
.
changeToJavaFiled
(
TABLE
));
...
@@ -62,14 +68,11 @@ public class MyGenerator {
...
@@ -62,14 +68,11 @@ public class MyGenerator {
String
aa4
=
Generator
.
createService
(
fileUrl
,
bi
).
toString
();
String
aa4
=
Generator
.
createService
(
fileUrl
,
bi
).
toString
();
String
aa5
=
Generator
.
createServiceImpl
(
fileUrl
,
bi
).
toString
();
String
aa5
=
Generator
.
createServiceImpl
(
fileUrl
,
bi
).
toString
();
String
aa6
=
Generator
.
createController
(
fileUrl
,
bi
).
toString
();
String
aa6
=
Generator
.
createController
(
fileUrl
,
bi
).
toString
();
// 是否创建swagger配置文件
String
aa7
=
Generator
.
createSwaggerConfig
(
fileUrl
,
bi
).
toString
();
System
.
out
.
println
(
aa1
);
System
.
out
.
println
(
aa1
);
System
.
out
.
println
(
aa2
);
System
.
out
.
println
(
aa3
);
System
.
out
.
println
(
aa4
);
System
.
out
.
println
(
aa2
);
System
.
out
.
println
(
aa3
);
System
.
out
.
println
(
aa4
);
System
.
out
.
println
(
aa5
);
System
.
out
.
println
(
aa6
);
System
.
out
.
println
(
aa7
);
System
.
out
.
println
(
aa5
);
System
.
out
.
println
(
aa6
);
//System.out.println(aa7);
}
catch
(
SQLException
e
)
{
}
catch
(
SQLException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
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