Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
jinan
traffic-signal-platform
Commits
d30746b9
Commit
d30746b9
authored
Mar 18, 2025
by
wangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Service
parent
2918506b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
CodeGeneratorMyBatis1.java
wj-gernerator/src/main/java/CodeGeneratorMyBatis1.java
+2
-2
restServer.java.ftl
...src/main/resources/templates/mybatis1/restServer.java.ftl
+2
-2
No files found.
wj-gernerator/src/main/java/CodeGeneratorMyBatis1.java
View file @
d30746b9
...
@@ -105,8 +105,8 @@ public class CodeGeneratorMyBatis1 {
...
@@ -105,8 +105,8 @@ public class CodeGeneratorMyBatis1 {
pc
.
setController
(
"controllerv2"
+
subModulePackage
);
pc
.
setController
(
"controllerv2"
+
subModulePackage
);
pc
.
setEntity
(
"entity"
+
subModulePackage
);
pc
.
setEntity
(
"entity"
+
subModulePackage
);
pc
.
setMapper
(
"dao.mapper"
+
subModulePackage
);
pc
.
setMapper
(
"dao.mapper"
+
subModulePackage
);
pc
.
setService
(
"service2"
+
subModulePackage
);
pc
.
setService
(
"service
v
2"
+
subModulePackage
);
pc
.
setServiceImpl
(
"service2"
+
subModulePackage
+
".impl"
);
pc
.
setServiceImpl
(
"service
v
2"
+
subModulePackage
+
".impl"
);
mpg
.
setPackageInfo
(
pc
);
mpg
.
setPackageInfo
(
pc
);
...
...
wj-gernerator/src/main/resources/templates/mybatis1/restServer.java.ftl
View file @
d30746b9
...
@@ -44,8 +44,8 @@ import java.util.Map;
...
@@ -44,8 +44,8 @@ import java.util.Map;
@
RestController
@
RestController
@
Slf4j
@
Slf4j
@
RequestMapping
(
"/<#if controllerMappingHyphenStyle??>${controllerMappingHyphen}<#else>${table.entityPath}</#if>"
)
@
RequestMapping
(
"/<#if controllerMappingHyphenStyle??>${controllerMappingHyphen}<#else>${table.entityPath}</#if>"
)
@
Api
(
value
=
"${entity}
RestServ
er"
,
description
=
"${table.comment!}接口"
,
tags
=
"${table.comment}"
)
@
Api
(
value
=
"${entity}
Controll
er"
,
description
=
"${table.comment!}接口"
,
tags
=
"${table.comment}"
)
public
class
${
entity
}
RestServ
er
extends
AbstractRestServerImpl
<${
entity
}>
implements
AbstractRestServer
<${
entity
}>{
public
class
${
entity
}
Controll
er
extends
AbstractRestServerImpl
<${
entity
}>
implements
AbstractRestServer
<${
entity
}>{
@
Autowired
@
Autowired
private
${
table
.
serviceName
}
${
table
.
serviceName
?
uncap_first
};
private
${
table
.
serviceName
}
${
table
.
serviceName
?
uncap_first
};
...
...
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