代码提交

This commit is contained in:
zhengzheng 2022-05-05 12:04:27 +08:00
parent 23730fab90
commit 68f404937d
3 changed files with 8 additions and 2 deletions

View File

@ -44,7 +44,9 @@ public class ZtApplication implements WebMvcConfigurer
*/
registry.addResourceHandler("/fp/**").addResourceLocations("file:" + RuoYiConfig.getProfile()+"/fp/");
registry.addResourceHandler("/lp/**").addResourceLocations("file:" + RuoYiConfig.getLPUploadPath()+"/");
System.out.println( RuoYiConfig.getLPUploadPath()+"/");
registry.addResourceHandler("/ls/**").addResourceLocations("file:" + RuoYiConfig.getLSUploadPath()+"/");
registry.addResourceHandler("/fp/**").addResourceLocations("file:" + RuoYiConfig.getFPUploadPath()+"/");
// System.out.println( RuoYiConfig.getLPUploadPath()+"/");
// registry.addResourceHandler("/**").addResourceLocations("file:" + RuoYiConfig.getProfile());
}

View File

@ -31,7 +31,9 @@ public class WebConfig implements WebMvcConfigurer {
*/
registry.addResourceHandler("/fp/**").addResourceLocations("file:" + RuoYiConfig.getProfile()+"/fp/");
registry.addResourceHandler("/lp/**").addResourceLocations("file:" + RuoYiConfig.getLPUploadPath()+"/");
System.out.println( RuoYiConfig.getLPUploadPath()+"/");
registry.addResourceHandler("/ls/**").addResourceLocations("file:" + RuoYiConfig.getLSUploadPath()+"/");
registry.addResourceHandler("/fp/**").addResourceLocations("file:" + RuoYiConfig.getFPUploadPath()+"/");
// System.out.println( RuoYiConfig.getLPUploadPath()+"/");
// registry.addResourceHandler("/**").addResourceLocations("file:" + RuoYiConfig.getProfile());
}

View File

@ -54,6 +54,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
order by r.create_time desc
</select>