Commit 766fe9e8 authored by daniel's avatar daniel

fix(cmpt): 优化查询

parent 666b78d2
...@@ -37,15 +37,30 @@ public class Application extends SpringBootServletInitializer { ...@@ -37,15 +37,30 @@ public class Application extends SpringBootServletInitializer {
return application.sources(Application.class); return application.sources(Application.class);
} }
// @Bean
// public TomcatServletWebServerFactory tomcatFactory() {
// return new TomcatServletWebServerFactory() {
//
// @Override
// protected void postProcessContext(Context context) {
// ((StandardJarScanner) context.getJarScanner()).setScanManifest(false);
// }
// };
// }
@Bean @Bean
public TomcatServletWebServerFactory tomcatFactory() { 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) { public static void main(String[] args) {
......
...@@ -212,9 +212,9 @@ ...@@ -212,9 +212,9 @@
<select id="countCommitteeCmpt" resultType="long"> <select id="countCommitteeCmpt" resultType="long">
select count(1) select count(1)
from gk_cmpt a left join common.neucmpt b on a.cmpt_id=b.gtCmptId 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 left join raceenroll.competition c on b.gcmptid=c.cmptid
where a.del_flag=0 where a.del_flag=0
<include refid="committee-cmpt-where-sql"/> <include refid="committee-cmpt-where-sql"/>
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment