fo bo 머지작업 - 오류수정

This commit is contained in:
jazz
2025-11-25 18:20:50 +09:00
parent 4ac06b4be8
commit ab5bf80c8e
3 changed files with 21 additions and 12 deletions

View File

@@ -195,28 +195,37 @@ public class MaMbrgradController {
vo.setPageIndex(1); vo.setPageIndex(1);
vo.setPageUnit(10000); vo.setPageUnit(10000);
/*쇼핑몰 조회*/ PaginationInfo paginationInfo = new PaginationInfo();
List<DataMap> sopmalList = new ArrayList<>(); paginationInfo.setCurrentPageNo(vo.getPageIndex());
sopmalList = sopmalService.selectBOSopmalCdNm(); paginationInfo.setRecordCountPerPage(vo.getPageUnit());
paginationInfo.setPageSize(paginationProperties.getPageSize());
DataMap resultMap = new DataMap(); vo.setPaginationInfo(paginationInfo);
vo.setFirstIndex(paginationInfo.getFirstRecordIndex());
vo.setLastIndex(paginationInfo.getLastRecordIndex());
vo.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
List<DataMap> mbrgradList = new ArrayList<>();
mbrgradList = service.selectBOMbrGradList(vo);
Map<String, Object> resultMap = new HashMap<String, Object>();
resultMap.put("paramVO", vo); resultMap.put("paramVO", vo);
resultMap.put("sopmalList", sopmalList); resultMap.put("resultList", mbrgradList);
resultMap.put("paginationInfo", vo.getPaginationInfo());
// Map<String, Object> resultMap = responseHandler.handleResponseAsMap( // Map<String, Object> resultMap = responseHandler.handleResponseAsMap(
// sendToResrc.ofPost(RESRC.GCONEBO, "/admin/store/mbrgrad/selectBOMbrGradListInqire", vo) // sendToResrc.ofPost(RESRC.GCONEBO, "/admin/store/mbrgrad/selectBOMbrGradListInqire", vo)
// ); // );
/*엑셀 데이터 set*/ /*엑셀 데이터 set*/
List<Map<String, Object>> excelList = new ArrayList<>(); List<DataMap> excelList = new ArrayList<>();
excelList = (List<Map<String, Object>>) resultMap.get("resultList"); excelList = (List<DataMap>) resultMap.get("resultList");
//엑셀 다운로드 다운로드 시간 //엑셀 다운로드 다운로드 시간
Date date = new Date(); Date date = new Date();
SimpleDateFormat excelFormat = new SimpleDateFormat("yyyyMMddHHmmss"); SimpleDateFormat excelFormat = new SimpleDateFormat("yyyyMMddHHmmss");
String str = excelFormat.format(date); String str = excelFormat.format(date);
try { try {
//엑셀 항목에 출력될 내용 설정 //엑셀 항목에 출력될 내용 설정
List<Map<String, Object>> dataList = new ArrayList<>(); List<Map<String, Object>> dataList = new ArrayList<>();
@@ -224,8 +233,8 @@ public class MaMbrgradController {
BigInteger num = BigInteger.valueOf(excelList.size()); BigInteger num = BigInteger.valueOf(excelList.size());
for (int i = 0; i < excelList.size(); i++) { for (int i = 0; i < excelList.size(); i++) {
HashMap<String, Object> dataMap = new HashMap<>(); HashMap<String, Object> dataMap = new HashMap<>();
HashMap<String, Object> map = new HashMap<>(); DataMap map = new DataMap();
map = (HashMap<String, Object>) excelList.get(i); map = excelList.get(i);
/*데이터 set*/ /*데이터 set*/
dataMap.put("itme01", num.subtract(BigInteger.valueOf(i))); dataMap.put("itme01", num.subtract(BigInteger.valueOf(i)));
@@ -258,6 +267,4 @@ public class MaMbrgradController {
throw new WnbtRestException("엑셀다운로드 중 오류가 발생하였습니다."); throw new WnbtRestException("엑셀다운로드 중 오류가 발생하였습니다.");
} }
} }
} }

View File

@@ -96,4 +96,5 @@ public class BOMaMbrgradVO extends AbstractVO {
private String gradAuthorInnb; private String gradAuthorInnb;
/*서버구분*/ /*서버구분*/
private String serverDv; private String serverDv;
private String pageDv;
} }

View File

@@ -497,5 +497,6 @@ public class BOMaSopmalVO extends AbstractVO {
/** 회원등급 정보 */ /** 회원등급 정보 */
private String mbrGradGroupNm; private String mbrGradGroupNm;
private String pageDv;
} }