팩스 속도 개선

This commit is contained in:
hehihoho3@gmail.com 2024-12-17 16:45:33 +09:00
parent 8b5d21c242
commit 09cce7f549
4 changed files with 33 additions and 5 deletions

View File

@ -14,6 +14,7 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
@ -208,8 +209,13 @@ public class FaxAddrController {
addrVO.setSearchSortCnd("addrId");
addrVO.setSearchSortOrd("asc");
}
List<FaxAddrVO> addrList = faxAddrService.selectFaxAddrList(addrVO);
System.out.println("=================================================="+addrVO.getSearchAddrGrpId());
List<FaxAddrVO> addrList = new ArrayList();
if(StringUtils.isNotEmpty(addrVO.getSearchAddrGrpId())) {
addrList = faxAddrService.selectFaxAddrList(addrVO);
}
System.out.println("==================================================");
int totCnt = 0;
if(addrList.size() > 0) {

View File

@ -89,15 +89,36 @@ public class FaxAddrGroupController {
addrGroupVO.setSiteId("web");
List<FaxAddrGroupVO> addrGroupList = faxAddrGroupService.selectFaxAddrGroupList(addrGroupVO);
//회원별 주소록 전체 갯수 조회
int addrTotalCount = faxAddrService.selectFaxAddrTotalCount(addrVO);
// //회원별 주소록 전체 갯수 조회
// int addrTotalCount = faxAddrService.selectFaxAddrTotalCount(addrVO);
addrVO.setType("bookmark");
List<FaxAddrVO> addrBookmarkList = faxAddrService.selectFaxAddrBasicGrpList(addrVO);
addrVO.setType("noGrp");
List<FaxAddrVO> addrNoGrpList = faxAddrService.selectFaxAddrBasicGrpList(addrVO);
int totalGrpCount = addrGroupList.stream()
.mapToInt(group -> {
String grpCountStr = group.getGrpCount();
if (grpCountStr != null && !grpCountStr.isEmpty()) {
try {
return Integer.parseInt(grpCountStr);
} catch (NumberFormatException e) {
// 파싱에 실패한 경우 0을 반환하거나 예외 처리를 합니다.
return 0;
}
} else {
return 0;
}
})
.sum();
int addrTotalCount = (addrNoGrpList.size() >0 ? addrNoGrpList.get(0).getTotcnt() : 0)
+ (addrBookmarkList.size() >0 ? addrBookmarkList.get(0).getTotcnt() : 0)
+ totalGrpCount
;
model.addAttribute("addrTotalCount", addrTotalCount);

View File

@ -362,6 +362,7 @@ public class MberGrdMngController {
msg = e.getMessage();
}
System.out.println("rtnMberGrdVO :: "+ rtnMberGrdVO.getGrdSetNm());
modelAndView.addObject("rtnMberGrdVO", rtnMberGrdVO);
modelAndView.addObject("isSuccess", isSuccess);
modelAndView.addObject("msg", msg);

View File

@ -706,7 +706,7 @@ function setAddrDupliClose() {
</c:when>
<c:otherwise>
<tr>
<td colspan="6">검색 결과가 없습니다.</td>
<td colspan="6">검색 결과가 없거나, 좌측 그룹을 선택해 주세요.</td>
</tr>
</c:otherwise>
</c:choose>