Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
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
micro_app
gk
Commits
766fe9e8
Commit
766fe9e8
authored
Oct 11, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(cmpt): 优化查询
parent
666b78d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
Application.java
src/main/java/com/dlbridge/jadp/Application.java
+21
-6
CmptMapper.xml
.../com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
+1
-1
No files found.
src/main/java/com/dlbridge/jadp/Application.java
View file @
766fe9e8
...
...
@@ -37,15 +37,30 @@ public class Application extends SpringBootServletInitializer {
return
application
.
sources
(
Application
.
class
);
}
// @Bean
// public TomcatServletWebServerFactory tomcatFactory() {
// return new TomcatServletWebServerFactory() {
//
// @Override
// protected void postProcessContext(Context context) {
// ((StandardJarScanner) context.getJarScanner()).setScanManifest(false);
// }
// };
// }
@Bean
public
TomcatServletWebServerFactory
tomcatFactory
()
{
return
new
TomcatServletWebServerFactory
()
{
return
new
CustomTomcatServletWebServerFactory
();
}
@Override
protected
void
postProcessContext
(
Context
context
)
{
((
StandardJarScanner
)
context
.
getJarScanner
()).
setScanManifest
(
false
);
}
};
/**
* 静态内部类方式 ✅
*/
public
static
class
CustomTomcatServletWebServerFactory
extends
TomcatServletWebServerFactory
{
@Override
protected
void
postProcessContext
(
Context
context
)
{
((
StandardJarScanner
)
context
.
getJarScanner
()).
setScanManifest
(
false
);
}
}
public
static
void
main
(
String
[]
args
)
{
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
View file @
766fe9e8
...
...
@@ -212,9 +212,9 @@
<select
id=
"countCommitteeCmpt"
resultType=
"long"
>
select count(1)
from gk_cmpt a left join common.neucmpt b on a.cmpt_id=b.gtCmptId
left join common.neuuser nu on nu.neuUserId =b.committeeNeuUserId
left join raceenroll.competition c on b.gcmptid=c.cmptid
where a.del_flag=0
<include
refid=
"committee-cmpt-where-sql"
/>
</select>
...
...
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