메인(대시보드)배너이미지 img src 주소 파라미터 bannerId->atchFileId 변경
This commit is contained in:
parent
0a4ac20223
commit
ef73d13e47
@ -207,9 +207,9 @@ public class MainController extends NlibCommonController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/main/bannerImage.do")
|
@RequestMapping(value = "/main/bannerImage.do")
|
||||||
public void getBannerImage(HttpServletRequest request, HttpServletResponse response, String bannerId) throws IOException {
|
public void getBannerImage(HttpServletRequest request, HttpServletResponse response, String atchFileId) throws IOException {
|
||||||
|
|
||||||
Map<String, String> bannerInfo = mainService.getBannerInfo(bannerId);
|
Map<String, String> bannerInfo = mainService.getBannerInfo(atchFileId);
|
||||||
boolean exists = false;
|
boolean exists = false;
|
||||||
|
|
||||||
if(bannerInfo != null && StringUtil.isNotEmpty(bannerInfo.get("fileStrePath")) && StringUtil.isNotEmpty(bannerInfo.get("streFileNm")) && StringUtil.isNotEmpty(bannerInfo.get("orignlFileNm"))) {
|
if(bannerInfo != null && StringUtil.isNotEmpty(bannerInfo.get("fileStrePath")) && StringUtil.isNotEmpty(bannerInfo.get("streFileNm")) && StringUtil.isNotEmpty(bannerInfo.get("orignlFileNm"))) {
|
||||||
@ -220,7 +220,7 @@ public class MainController extends NlibCommonController {
|
|||||||
response.getOutputStream().write(Files.readAllBytes(Paths.get(fileName)));
|
response.getOutputStream().write(Files.readAllBytes(Paths.get(fileName)));
|
||||||
exists = true;
|
exists = true;
|
||||||
} catch(IOException e) {
|
} catch(IOException e) {
|
||||||
log.error("메인 화면 배너 관련 파일을 확인할 수 없습니다. : bannerId=" + bannerId);
|
log.error("메인 화면 배너 관련 파일을 확인할 수 없습니다. : bannerId=" + atchFileId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -185,7 +185,7 @@ function fn_listPops(typeDivCd) {
|
|||||||
<li <c:if test="${fn:length(listBannerInfos) > 1 }"> class="swiper-slide" </c:if> >
|
<li <c:if test="${fn:length(listBannerInfos) > 1 }"> class="swiper-slide" </c:if> >
|
||||||
<div class="img">
|
<div class="img">
|
||||||
<c:if test="${not empty bannerItem.streFileNm }">
|
<c:if test="${not empty bannerItem.streFileNm }">
|
||||||
<img src="/main/bannerImage.do?bannerId=<c:out value='${bannerItem.bannerId }'/>" alt="">
|
<img src="/main/bannerImage.do?atchFileId=<c:out value='${bannerItem.bannerId }'/>" alt="">
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${empty bannerItem.streFileNm }">
|
<c:if test="${empty bannerItem.streFileNm }">
|
||||||
<img src="/images/bg/bg-mainbanner.jpg" alt="">
|
<img src="/images/bg/bg-mainbanner.jpg" alt="">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user