fix: MyActController 중복 메서드 제거
This commit is contained in:
@@ -48,22 +48,22 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MyActController Class (back)
|
* MyActController Class (back)
|
||||||
*
|
*
|
||||||
* @author 홍길동
|
* @author 홍길동
|
||||||
* @since 2024-02-05
|
* @since 2024-02-05
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
* @see
|
* @see
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
* == (Modification Information) == 개정이력
|
* == (Modification Information) == 개정이력
|
||||||
*
|
*
|
||||||
* 수정일 수정자 수정내용
|
* 수정일 수정자 수정내용
|
||||||
* ------- -------- ---------------------------
|
* ------- -------- ---------------------------
|
||||||
* 2024-03-05 김혜인 최초 생성
|
* 2024-03-05 김혜인 최초 생성
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("/sopmal/mpage/act")
|
@RequestMapping("/sopmal/mpage/act")
|
||||||
@@ -115,20 +115,9 @@ public class MyActController {
|
|||||||
|
|
||||||
DataMap content = selectBOBbscttListInqire(bbsctt);
|
DataMap content = selectBOBbscttListInqire(bbsctt);
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttListInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
|
||||||
model.addAttribute("mpageResultMap", content2);
|
model.addAttribute("mpageResultMap", content2);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMpageInfoInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mpageResultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyGoodsQaR";
|
return Util.getDeviceType(request)+"/mpage/act/MyGoodsQaR";
|
||||||
}
|
}
|
||||||
@@ -147,20 +136,9 @@ public class MyActController {
|
|||||||
|
|
||||||
DataMap content = selectBOBbscttListInqire(bbsctt);
|
DataMap content = selectBOBbscttListInqire(bbsctt);
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttListInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
|
||||||
model.addAttribute("mpageResultMap", content2);
|
model.addAttribute("mpageResultMap", content2);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMpageInfoInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mpageResultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyNormalQaR";
|
return Util.getDeviceType(request)+"/mpage/act/MyNormalQaR";
|
||||||
}
|
}
|
||||||
@@ -191,28 +169,22 @@ public class MyActController {
|
|||||||
bbsctt.setRegusrDvCd("99");//비회원
|
bbsctt.setRegusrDvCd("99");//비회원
|
||||||
}
|
}
|
||||||
bbsctt.setSecretKey(boCommonService.selectSecretkey());
|
bbsctt.setSecretKey(boCommonService.selectSecretkey());
|
||||||
// 게시판 설정 정보
|
|
||||||
BOBbsVO bbsVO = new BOBbsVO();
|
BOBbsVO bbsVO = new BOBbsVO();
|
||||||
// bbsVO에 쇼핑몰코드, 해당 게시판 set
|
|
||||||
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
||||||
bbsVO.setBbsId(bbsctt.getBbsId());
|
bbsVO.setBbsId(bbsctt.getBbsId());
|
||||||
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
||||||
DataMap bbsInfo = new DataMap();
|
DataMap bbsInfo = new DataMap();
|
||||||
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
||||||
|
|
||||||
// 게시글 상세 조회
|
|
||||||
Map<String, Object> bbscttInfo = new HashMap<String, Object>();
|
Map<String, Object> bbscttInfo = new HashMap<String, Object>();
|
||||||
bbscttInfo = service.selectBOBbscttUpdt(bbsctt);
|
bbscttInfo = service.selectBOBbscttUpdt(bbsctt);
|
||||||
|
|
||||||
// 분류 조회
|
|
||||||
List<DataMap> itmList = new ArrayList<>();
|
List<DataMap> itmList = new ArrayList<>();
|
||||||
itmList = service.selectBOBbscttItmInqire(bbsctt);
|
itmList = service.selectBOBbscttItmInqire(bbsctt);
|
||||||
|
|
||||||
//추가 항목 조회, 추가항목 항목 조회
|
|
||||||
Map<String, Object> qesitmList = new HashMap<String, Object>();
|
Map<String, Object> qesitmList = new HashMap<String, Object>();
|
||||||
qesitmList = service.selectBOBbscttRegistPopupForm(bbsctt);
|
qesitmList = service.selectBOBbscttRegistPopupForm(bbsctt);
|
||||||
|
|
||||||
//리뷰항목 리스트, 리뷰항목 항목 리스트
|
|
||||||
Map<String, Object> rvwQesitmList = new HashMap<String, Object>();
|
Map<String, Object> rvwQesitmList = new HashMap<String, Object>();
|
||||||
rvwQesitmList = service.selectBOStarItm(bbsctt);
|
rvwQesitmList = service.selectBOStarItm(bbsctt);
|
||||||
|
|
||||||
@@ -225,21 +197,10 @@ public class MyActController {
|
|||||||
content.put("rvwQesitmList", rvwQesitmList);
|
content.put("rvwQesitmList", rvwQesitmList);
|
||||||
|
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttUpdtPopupForm",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
model.addAttribute("bbsctt", bbsctt);
|
model.addAttribute("bbsctt", bbsctt);
|
||||||
|
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
||||||
model.addAttribute("mpageResultMap", content2);
|
model.addAttribute("mpageResultMap", content2);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMpageInfoInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mpageResultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyNormalQnaDtlUpdtU";
|
return Util.getDeviceType(request)+"/mpage/act/MyNormalQnaDtlUpdtU";
|
||||||
}
|
}
|
||||||
@@ -255,7 +216,6 @@ public class MyActController {
|
|||||||
bbsctt.setBbsTyCd("01");
|
bbsctt.setBbsTyCd("01");
|
||||||
bbsctt.setServerDv("sopmal");
|
bbsctt.setServerDv("sopmal");
|
||||||
bbsctt.setReqUrl("mpage");
|
bbsctt.setReqUrl("mpage");
|
||||||
//게시글 노출 항목 설정값과 게시판 목록 조회
|
|
||||||
|
|
||||||
DataMap content = selectBOBbscttListInqire(bbsctt);
|
DataMap content = selectBOBbscttListInqire(bbsctt);
|
||||||
return ResponseEntity.ok(
|
return ResponseEntity.ok(
|
||||||
@@ -263,10 +223,6 @@ public class MyActController {
|
|||||||
.resBody(new WnbtResponseBody(content))
|
.resBody(new WnbtResponseBody(content))
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
// return responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttListInqire",bbsctt),
|
|
||||||
// ReplyFromResrc::getReply
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -280,7 +236,6 @@ public class MyActController {
|
|||||||
bbsctt.setBbsTyCd("05");
|
bbsctt.setBbsTyCd("05");
|
||||||
bbsctt.setServerDv("sopmal");
|
bbsctt.setServerDv("sopmal");
|
||||||
bbsctt.setReqUrl("mpage");
|
bbsctt.setReqUrl("mpage");
|
||||||
//게시글 노출 항목 설정값과 게시판 목록 조회
|
|
||||||
|
|
||||||
DataMap content = selectBOBbscttListInqire(bbsctt);
|
DataMap content = selectBOBbscttListInqire(bbsctt);
|
||||||
return ResponseEntity.ok(
|
return ResponseEntity.ok(
|
||||||
@@ -288,10 +243,6 @@ public class MyActController {
|
|||||||
.resBody(new WnbtResponseBody(content))
|
.resBody(new WnbtResponseBody(content))
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
// return responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttListInqire",bbsctt),
|
|
||||||
// ReplyFromResrc::getReply
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -315,10 +266,6 @@ public class MyActController {
|
|||||||
.resBody(new WnbtResponseBody(content))
|
.resBody(new WnbtResponseBody(content))
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
// return responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOFileInfo",bbsctt),
|
|
||||||
// ReplyFromResrc::getReply
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -346,28 +293,22 @@ public class MyActController {
|
|||||||
bbsctt.setRegusrDvCd("99");//비회원
|
bbsctt.setRegusrDvCd("99");//비회원
|
||||||
}
|
}
|
||||||
bbsctt.setSecretKey(boCommonService.selectSecretkey());
|
bbsctt.setSecretKey(boCommonService.selectSecretkey());
|
||||||
// 게시판 설정 정보
|
|
||||||
BOBbsVO bbsVO = new BOBbsVO();
|
BOBbsVO bbsVO = new BOBbsVO();
|
||||||
// bbsVO에 쇼핑몰코드, 해당 게시판 set
|
|
||||||
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
||||||
bbsVO.setBbsId(bbsctt.getBbsId());
|
bbsVO.setBbsId(bbsctt.getBbsId());
|
||||||
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
||||||
DataMap bbsInfo = new DataMap();
|
DataMap bbsInfo = new DataMap();
|
||||||
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
||||||
|
|
||||||
// 게시글 상세 조회
|
|
||||||
Map<String, Object> bbscttInfo = new HashMap<String, Object>();
|
Map<String, Object> bbscttInfo = new HashMap<String, Object>();
|
||||||
bbscttInfo = service.selectBOBbscttUpdt(bbsctt);
|
bbscttInfo = service.selectBOBbscttUpdt(bbsctt);
|
||||||
|
|
||||||
// 분류 조회
|
|
||||||
List<DataMap> itmList = new ArrayList<>();
|
List<DataMap> itmList = new ArrayList<>();
|
||||||
itmList = service.selectBOBbscttItmInqire(bbsctt);
|
itmList = service.selectBOBbscttItmInqire(bbsctt);
|
||||||
|
|
||||||
//추가 항목 조회, 추가항목 항목 조회
|
|
||||||
Map<String, Object> qesitmList = new HashMap<String, Object>();
|
Map<String, Object> qesitmList = new HashMap<String, Object>();
|
||||||
qesitmList = service.selectBOBbscttRegistPopupForm(bbsctt);
|
qesitmList = service.selectBOBbscttRegistPopupForm(bbsctt);
|
||||||
|
|
||||||
//리뷰항목 리스트, 리뷰항목 항목 리스트
|
|
||||||
Map<String, Object> rvwQesitmList = new HashMap<String, Object>();
|
Map<String, Object> rvwQesitmList = new HashMap<String, Object>();
|
||||||
rvwQesitmList = service.selectBOStarItm(bbsctt);
|
rvwQesitmList = service.selectBOStarItm(bbsctt);
|
||||||
|
|
||||||
@@ -380,161 +321,14 @@ public class MyActController {
|
|||||||
content.put("rvwQesitmList", rvwQesitmList);
|
content.put("rvwQesitmList", rvwQesitmList);
|
||||||
|
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttUpdtPopupForm",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
model.addAttribute("bbsctt", bbsctt);
|
model.addAttribute("bbsctt", bbsctt);
|
||||||
|
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
||||||
model.addAttribute("mpageResultMap", content2);
|
model.addAttribute("mpageResultMap", content2);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMpageInfoInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mpageResultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyGoodsQnaDtlUpdtU";
|
return Util.getDeviceType(request)+"/mpage/act/MyGoodsQnaDtlUpdtU";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 일반문의 조회
|
|
||||||
* @param bbsctt
|
|
||||||
* @return String
|
|
||||||
*/
|
|
||||||
@Policy(AuthPolicy.PUBLIC)
|
|
||||||
@RequestMapping(value="/selectNormalQnaInqire")
|
|
||||||
public String selectNormalQnaInqire(HttpServletRequest request, ModelMap model, BOGnrlbbscttVO bbsctt, BOMbrVO vo){
|
|
||||||
bbsctt.setBbsTyCd("01");
|
|
||||||
bbsctt.setServerDv("sopmal");
|
|
||||||
bbsctt.setReqUrl("mpage");
|
|
||||||
|
|
||||||
DataMap content = selectBOBbscttListInqire(bbsctt);
|
|
||||||
model.addAttribute("resultMap", content);
|
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttListInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
|
||||||
model.addAttribute("mpageResultMap", content2);
|
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMpageInfoInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mpageResultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyNormalQaR";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 일반문의 수정 폼 이동
|
|
||||||
* @param bbsctt
|
|
||||||
* @return String
|
|
||||||
*/
|
|
||||||
@Policy(AuthPolicy.PUBLIC)
|
|
||||||
@RequestMapping(value="/selectNormalQnaDtlUpdtForm")
|
|
||||||
public String selectNormalQnaDtlUpdtForm(HttpServletRequest request, ModelMap model,BOGnrlbbscttVO bbsctt, BOMbrVO vo){
|
|
||||||
bbsctt.setServerDv("sopmal");
|
|
||||||
bbsctt.setBbsTyCd("01");
|
|
||||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
|
||||||
if ("01".equals(user.getSysDvCd())) {
|
|
||||||
bbsctt.setSopmalCd(user.getSopmalCd());
|
|
||||||
}
|
|
||||||
;
|
|
||||||
if (user.getUserInnb() > 0) {
|
|
||||||
if ("mngr".equals(bbsctt.getServerDv())) {
|
|
||||||
bbsctt.setRegusrDvCd("02"); //관리자
|
|
||||||
} else {
|
|
||||||
bbsctt.setRegusrDvCd("01"); //회원
|
|
||||||
bbsctt.setAnswMbtlnb(user.getMbtlnb());
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
bbsctt.setRegusrDvCd("99");//비회원
|
|
||||||
}
|
|
||||||
bbsctt.setSecretKey(boCommonService.selectSecretkey());
|
|
||||||
// 게시판 설정 정보
|
|
||||||
BOBbsVO bbsVO = new BOBbsVO();
|
|
||||||
// bbsVO에 쇼핑몰코드, 해당 게시판 set
|
|
||||||
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
|
||||||
bbsVO.setBbsId(bbsctt.getBbsId());
|
|
||||||
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
|
||||||
DataMap bbsInfo = new DataMap();
|
|
||||||
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
|
||||||
|
|
||||||
// 게시글 상세 조회
|
|
||||||
Map<String, Object> bbscttInfo = new HashMap<String, Object>();
|
|
||||||
bbscttInfo = service.selectBOBbscttUpdt(bbsctt);
|
|
||||||
|
|
||||||
// 분류 조회
|
|
||||||
List<DataMap> itmList = new ArrayList<>();
|
|
||||||
itmList = service.selectBOBbscttItmInqire(bbsctt);
|
|
||||||
|
|
||||||
//추가 항목 조회, 추가항목 항목 조회
|
|
||||||
Map<String, Object> qesitmList = new HashMap<String, Object>();
|
|
||||||
qesitmList = service.selectBOBbscttRegistPopupForm(bbsctt);
|
|
||||||
|
|
||||||
//리뷰항목 리스트, 리뷰항목 항목 리스트
|
|
||||||
Map<String, Object> rvwQesitmList = new HashMap<String, Object>();
|
|
||||||
rvwQesitmList = service.selectBOStarItm(bbsctt);
|
|
||||||
|
|
||||||
Map<String, Object> content = new HashMap<String, Object>();
|
|
||||||
content.put("bbsInfo", bbsInfo);
|
|
||||||
content.put("bbscttVO", bbsctt);
|
|
||||||
content.put("bbscttInfo", bbscttInfo);
|
|
||||||
content.put("itmList", itmList);
|
|
||||||
content.put("qesitmList", qesitmList);
|
|
||||||
content.put("rvwQesitmList", rvwQesitmList);
|
|
||||||
|
|
||||||
model.addAttribute("resultMap", content);
|
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttUpdtPopupForm",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
model.addAttribute("bbsctt", bbsctt);
|
|
||||||
|
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
|
||||||
model.addAttribute("mpageResultMap", content2);
|
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMpageInfoInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mpageResultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyNormalQnaDtlUpdtU";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 일반문의 ajax 조회
|
|
||||||
* @param bbsctt
|
|
||||||
* @return String
|
|
||||||
*/
|
|
||||||
@Policy(AuthPolicy.PUBLIC)
|
|
||||||
@RequestMapping(value="/selectNormalQnaInqireAjax", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
||||||
public ResponseEntity<?> selectNormalQnaInqireAjax(BOGnrlbbscttVO bbsctt){
|
|
||||||
bbsctt.setBbsTyCd("01");
|
|
||||||
bbsctt.setServerDv("sopmal");
|
|
||||||
bbsctt.setReqUrl("mpage");
|
|
||||||
//게시글 노출 항목 설정값과 게시판 목록 조회
|
|
||||||
|
|
||||||
DataMap content = selectBOBbscttListInqire(bbsctt);
|
|
||||||
return ResponseEntity.ok(
|
|
||||||
WnbtResponse.builder()
|
|
||||||
.resBody(new WnbtResponseBody(content))
|
|
||||||
.build()
|
|
||||||
);
|
|
||||||
// return responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttListInqire",bbsctt),
|
|
||||||
// ReplyFromResrc::getReply
|
|
||||||
// );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1:1 문의 조회
|
* 1:1 문의 조회
|
||||||
* @param bbsctt
|
* @param bbsctt
|
||||||
@@ -549,23 +343,13 @@ public class MyActController {
|
|||||||
|
|
||||||
DataMap content = selectBOBbscttListInqire(bbsctt);
|
DataMap content = selectBOBbscttListInqire(bbsctt);
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttListInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
|
||||||
model.addAttribute("mpageResultMap", content2);
|
model.addAttribute("mpageResultMap", content2);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMpageInfoInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mpageResultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyM2mQaR";
|
return Util.getDeviceType(request)+"/mpage/act/MyM2mQaR";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1:1 문의 ajax 조회
|
* 1:1 문의 ajax 조회
|
||||||
* @param bbsctt
|
* @param bbsctt
|
||||||
@@ -577,7 +361,6 @@ public class MyActController {
|
|||||||
bbsctt.setBbsTyCd("12");
|
bbsctt.setBbsTyCd("12");
|
||||||
bbsctt.setServerDv("sopmal");
|
bbsctt.setServerDv("sopmal");
|
||||||
bbsctt.setReqUrl("mpage");
|
bbsctt.setReqUrl("mpage");
|
||||||
//게시글 노출 항목 설정값과 게시판 목록 조회
|
|
||||||
|
|
||||||
DataMap content = selectBOBbscttListInqire(bbsctt);
|
DataMap content = selectBOBbscttListInqire(bbsctt);
|
||||||
return ResponseEntity.ok(
|
return ResponseEntity.ok(
|
||||||
@@ -585,10 +368,6 @@ public class MyActController {
|
|||||||
.resBody(new WnbtResponseBody(content))
|
.resBody(new WnbtResponseBody(content))
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
// return responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttListInqire",bbsctt),
|
|
||||||
// ReplyFromResrc::getReply
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -617,28 +396,22 @@ public class MyActController {
|
|||||||
bbsctt.setRegusrDvCd("99");//비회원
|
bbsctt.setRegusrDvCd("99");//비회원
|
||||||
}
|
}
|
||||||
bbsctt.setSecretKey(boCommonService.selectSecretkey());
|
bbsctt.setSecretKey(boCommonService.selectSecretkey());
|
||||||
// 게시판 설정 정보
|
|
||||||
BOBbsVO bbsVO = new BOBbsVO();
|
BOBbsVO bbsVO = new BOBbsVO();
|
||||||
// bbsVO에 쇼핑몰코드, 해당 게시판 set
|
|
||||||
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
||||||
bbsVO.setBbsId(bbsctt.getBbsId());
|
bbsVO.setBbsId(bbsctt.getBbsId());
|
||||||
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
||||||
DataMap bbsInfo = new DataMap();
|
DataMap bbsInfo = new DataMap();
|
||||||
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
||||||
|
|
||||||
// 게시글 상세 조회
|
|
||||||
Map<String, Object> bbscttInfo = new HashMap<String, Object>();
|
Map<String, Object> bbscttInfo = new HashMap<String, Object>();
|
||||||
bbscttInfo = service.selectBOBbscttUpdt(bbsctt);
|
bbscttInfo = service.selectBOBbscttUpdt(bbsctt);
|
||||||
|
|
||||||
// 분류 조회
|
|
||||||
List<DataMap> itmList = new ArrayList<>();
|
List<DataMap> itmList = new ArrayList<>();
|
||||||
itmList = service.selectBOBbscttItmInqire(bbsctt);
|
itmList = service.selectBOBbscttItmInqire(bbsctt);
|
||||||
|
|
||||||
//추가 항목 조회, 추가항목 항목 조회
|
|
||||||
Map<String, Object> qesitmList = new HashMap<String, Object>();
|
Map<String, Object> qesitmList = new HashMap<String, Object>();
|
||||||
qesitmList = service.selectBOBbscttRegistPopupForm(bbsctt);
|
qesitmList = service.selectBOBbscttRegistPopupForm(bbsctt);
|
||||||
|
|
||||||
//리뷰항목 리스트, 리뷰항목 항목 리스트
|
|
||||||
Map<String, Object> rvwQesitmList = new HashMap<String, Object>();
|
Map<String, Object> rvwQesitmList = new HashMap<String, Object>();
|
||||||
rvwQesitmList = service.selectBOStarItm(bbsctt);
|
rvwQesitmList = service.selectBOStarItm(bbsctt);
|
||||||
|
|
||||||
@@ -651,21 +424,10 @@ public class MyActController {
|
|||||||
content.put("rvwQesitmList", rvwQesitmList);
|
content.put("rvwQesitmList", rvwQesitmList);
|
||||||
|
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttUpdtPopupForm",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
model.addAttribute("bbsctt", bbsctt);
|
model.addAttribute("bbsctt", bbsctt);
|
||||||
|
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
||||||
model.addAttribute("mpageResultMap", content2);
|
model.addAttribute("mpageResultMap", content2);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMpageInfoInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mpageResultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyM2mQnaDtlUpdtU";
|
return Util.getDeviceType(request)+"/mpage/act/MyM2mQnaDtlUpdtU";
|
||||||
}
|
}
|
||||||
@@ -681,28 +443,17 @@ public class MyActController {
|
|||||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
bbsctt.setSopmalCd(user.getSopmalCd());
|
bbsctt.setSopmalCd(user.getSopmalCd());
|
||||||
|
|
||||||
/*리뷰 조회 폼*/
|
|
||||||
DataMap rvwBnefInfo = new DataMap();
|
DataMap rvwBnefInfo = new DataMap();
|
||||||
rvwBnefInfo = service.selectBORvwBnefInfo(bbsctt);
|
rvwBnefInfo = service.selectBORvwBnefInfo(bbsctt);
|
||||||
|
|
||||||
model.addAttribute("mlgAccmlNtc", rvwBnefInfo);
|
model.addAttribute("mlgAccmlNtc", rvwBnefInfo);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBORvwBnefInfo",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mlgAccmlNtc"
|
|
||||||
// );
|
|
||||||
|
|
||||||
// 마이페이지 > 상단 회원 정보 ( 등금, 이름, 마일리지, 쿠폰, 위시리스트, 배송중, 등급산정기준 )
|
|
||||||
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
Map<String, Object> content2 = selectBOMpageInfoInqire(vo);
|
||||||
model.addAttribute("mpageResultMap", content2);
|
model.addAttribute("mpageResultMap", content2);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/mbr/mbr/selectBOMpageInfoInqire",bbsctt),
|
|
||||||
// model,
|
|
||||||
// "mpageResultMap"
|
|
||||||
// );
|
|
||||||
model.addAttribute("vo",bbsctt);
|
model.addAttribute("vo",bbsctt);
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyRvwRForm";
|
return Util.getDeviceType(request)+"/mpage/act/MyRvwRForm";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 나의 리뷰 조회 작성 가능한 리뷰
|
* 나의 리뷰 조회 작성 가능한 리뷰
|
||||||
* @param rvwVO
|
* @param rvwVO
|
||||||
@@ -716,13 +467,9 @@ public class MyActController {
|
|||||||
|
|
||||||
Map<String, Object> content = selectBOWritPosblRvw(rvwVO);
|
Map<String, Object> content = selectBOWritPosblRvw(rvwVO);
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOWritPosblRvw",rvwVO),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/WritngPosblRvwR";
|
return Util.getDeviceType(request)+"/mpage/act/WritngPosblRvwR";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 나의 리뷰 조회 작성 가능한 리뷰 ajax(인피니트스크롤)
|
* 나의 리뷰 조회 작성 가능한 리뷰 ajax(인피니트스크롤)
|
||||||
* @param rvwVO
|
* @param rvwVO
|
||||||
@@ -740,10 +487,6 @@ public class MyActController {
|
|||||||
.resBody(new WnbtResponseBody(content))
|
.resBody(new WnbtResponseBody(content))
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
// return responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOWritPosblRvw",rvwVO),
|
|
||||||
// ReplyFromResrc::getReply
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -760,11 +503,6 @@ public class MyActController {
|
|||||||
|
|
||||||
DataMap content = selectBOMyRvwListInqire(rvwVO);
|
DataMap content = selectBOMyRvwListInqire(rvwVO);
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOMyRvwListInqire",rvwVO),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/MyRvwR";
|
return Util.getDeviceType(request)+"/mpage/act/MyRvwR";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -786,10 +524,6 @@ public class MyActController {
|
|||||||
.resBody(new WnbtResponseBody(content))
|
.resBody(new WnbtResponseBody(content))
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
// return responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOMyRvwListInqire",rvwVO),
|
|
||||||
// ReplyFromResrc::getReply
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -802,15 +536,9 @@ public class MyActController {
|
|||||||
public String selectRvwWritngPopupForm(HttpServletRequest request, ModelMap model, BOGnrlbbscttVO rvwVO){
|
public String selectRvwWritngPopupForm(HttpServletRequest request, ModelMap model, BOGnrlbbscttVO rvwVO){
|
||||||
rvwVO.setRvwBbscttDv("rvw");
|
rvwVO.setRvwBbscttDv("rvw");
|
||||||
rvwVO.setServerDv("sopmal");
|
rvwVO.setServerDv("sopmal");
|
||||||
//리뷰 등록 가능 여부 true시 등록폼 호출
|
|
||||||
|
|
||||||
Map<String, Object> content = selectBOBbscttRegistPopupForm(rvwVO);
|
Map<String, Object> content = selectBOBbscttRegistPopupForm(rvwVO);
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttRegistPopupForm",rvwVO),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/RvwWritngPopupC";
|
return Util.getDeviceType(request)+"/mpage/act/RvwWritngPopupC";
|
||||||
}
|
}
|
||||||
@@ -830,30 +558,24 @@ public class MyActController {
|
|||||||
bbsctt.setSopmalCd(user.getSopmalCd());
|
bbsctt.setSopmalCd(user.getSopmalCd());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 작성자 정보 추출
|
if (user.getUserInnb() > 0) {
|
||||||
if (user.getUserInnb() > 0) { //회원 , 관리자
|
|
||||||
bbsctt.setUpdusr(user.getUserInnb());
|
bbsctt.setUpdusr(user.getUserInnb());
|
||||||
} else { // 비회원
|
} else {
|
||||||
bbsctt.setUpdusr(0);
|
bbsctt.setUpdusr(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, Object> content = new HashMap<>();
|
Map<String, Object> content = new HashMap<>();
|
||||||
|
|
||||||
/*게시글 삭제*/
|
|
||||||
DataMap bbscttDelResult = service.updateBOBbscttDel(bbsctt);
|
DataMap bbscttDelResult = service.updateBOBbscttDel(bbsctt);
|
||||||
content.put("result", bbscttDelResult);
|
content.put("result", bbscttDelResult);
|
||||||
/*삭제 성공 시*/
|
|
||||||
if ("success".equals(bbscttDelResult.get("result"))) {
|
if ("success".equals(bbscttDelResult.get("result"))) {
|
||||||
//리뷰 관련 처리
|
|
||||||
if ("06".equals(bbsctt.getBbsTyCd()) || "07".equals(bbsctt.getBbsTyCd())) {
|
if ("06".equals(bbsctt.getBbsTyCd()) || "07".equals(bbsctt.getBbsTyCd())) {
|
||||||
if (!CollectionUtils.isEmpty(bbsctt.getDelInfoArr())) {
|
if (!CollectionUtils.isEmpty(bbsctt.getDelInfoArr())) {
|
||||||
/*해당 정보로 마일리지 금액 조회하기*/
|
|
||||||
List<Object> accmlmnyAmtInfoArr = new ArrayList<>();
|
List<Object> accmlmnyAmtInfoArr = new ArrayList<>();
|
||||||
BOMlgVO mlgVo = new BOMlgVO();
|
BOMlgVO mlgVo = new BOMlgVO();
|
||||||
for (BODelInfoVO delInfo : bbsctt.getDelInfoArr()) {
|
for (BODelInfoVO delInfo : bbsctt.getDelInfoArr()) {
|
||||||
if ("01".equals(delInfo.getRegusrDvCd())) {
|
if ("01".equals(delInfo.getRegusrDvCd())) {
|
||||||
if ("03".equals(user.getSysDvCd())) { //관리자 삭제시 마일리지 회수
|
if ("03".equals(user.getSysDvCd())) {
|
||||||
/*공통 파라미터*/
|
|
||||||
mlgVo.setMbrInnb(String.valueOf(delInfo.getRegusr()));
|
mlgVo.setMbrInnb(String.valueOf(delInfo.getRegusr()));
|
||||||
mlgVo.setMbrDvCd(delInfo.getMbrDvCd());
|
mlgVo.setMbrDvCd(delInfo.getMbrDvCd());
|
||||||
mlgVo.setSopmalCd(bbsctt.getSopmalCd());
|
mlgVo.setSopmalCd(bbsctt.getSopmalCd());
|
||||||
@@ -865,8 +587,7 @@ public class MyActController {
|
|||||||
mlgVo.setRegusr(user.getUserInnb());
|
mlgVo.setRegusr(user.getUserInnb());
|
||||||
mlgVo.setUpdusr(user.getUserInnb());
|
mlgVo.setUpdusr(user.getUserInnb());
|
||||||
|
|
||||||
/*마일리지 수동 회수 여부*/
|
if ("N".equals(bbsctt.getMlgPassivRtrvlAt())) {
|
||||||
if ("N".equals(bbsctt.getMlgPassivRtrvlAt())) { // 선택 삭제시
|
|
||||||
DataMap accmlmnyAmtInfo = new DataMap();
|
DataMap accmlmnyAmtInfo = new DataMap();
|
||||||
accmlmnyAmtInfo = mlgService.selectBOMlgByBbscttInnb(mlgVo);
|
accmlmnyAmtInfo = mlgService.selectBOMlgByBbscttInnb(mlgVo);
|
||||||
if (accmlmnyAmtInfo != null) {
|
if (accmlmnyAmtInfo != null) {
|
||||||
@@ -877,7 +598,7 @@ public class MyActController {
|
|||||||
mlgVo.setAccmlmnyAmt((BigDecimal) accmlmnyAmtInfo.get("accmlmnyAmt"));
|
mlgVo.setAccmlmnyAmt((BigDecimal) accmlmnyAmtInfo.get("accmlmnyAmt"));
|
||||||
mlgService.insertBOMngrMlgDn(mlgVo);
|
mlgService.insertBOMngrMlgDn(mlgVo);
|
||||||
}
|
}
|
||||||
} else { //단독 삭제시*/
|
} else {
|
||||||
if (delInfo.getRtrvlMlgAmt() != null) {
|
if (delInfo.getRtrvlMlgAmt() != null) {
|
||||||
if (delInfo.getRtrvlMlgAmt().compareTo(BigDecimal.valueOf(0)) > 0) {
|
if (delInfo.getRtrvlMlgAmt().compareTo(BigDecimal.valueOf(0)) > 0) {
|
||||||
mlgVo.setAccmlmnyAmt(delInfo.getRtrvlMlgAmt());
|
mlgVo.setAccmlmnyAmt(delInfo.getRtrvlMlgAmt());
|
||||||
@@ -886,7 +607,6 @@ public class MyActController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//회원 관련
|
|
||||||
if (delInfo.getRegusr() != null) {
|
if (delInfo.getRegusr() != null) {
|
||||||
BOGnrlbbscttVO mbrSite = new BOGnrlbbscttVO();
|
BOGnrlbbscttVO mbrSite = new BOGnrlbbscttVO();
|
||||||
mbrSite.setSopmalCd(bbsctt.getSopmalCd());
|
mbrSite.setSopmalCd(bbsctt.getSopmalCd());
|
||||||
@@ -901,26 +621,20 @@ public class MyActController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//상품관련 집계와 회원관련 집계는 관리자혹은 사용자가 모두 삭제 시 처리가 되어야해
|
|
||||||
//상품 관련
|
|
||||||
if (delInfo.getGoodsInnb() != null) {
|
if (delInfo.getGoodsInnb() != null) {
|
||||||
BOGoodsVO goodsVO = new BOGoodsVO();
|
BOGoodsVO goodsVO = new BOGoodsVO();
|
||||||
goodsVO.setGoodsInnb(String.valueOf(delInfo.getGoodsInnb()));
|
goodsVO.setGoodsInnb(String.valueOf(delInfo.getGoodsInnb()));
|
||||||
goodsVO.setSopmalCd(bbsctt.getSopmalCd());
|
goodsVO.setSopmalCd(bbsctt.getSopmalCd());
|
||||||
/*상품정보 > 상품후기건수 차감*/
|
|
||||||
goodsService.updateRvwRelateSm(goodsVO);
|
goodsService.updateRvwRelateSm(goodsVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ("05".equals(bbsctt.getBbsTyCd())) {//상품qna는 상품문의 집계만
|
} else if ("05".equals(bbsctt.getBbsTyCd())) {
|
||||||
//상품 관련
|
|
||||||
if (!CollectionUtils.isEmpty(bbsctt.getGoodsInnbArr())) {
|
if (!CollectionUtils.isEmpty(bbsctt.getGoodsInnbArr())) {
|
||||||
for (String goodsInnb : bbsctt.getGoodsInnbArr()) {
|
for (String goodsInnb : bbsctt.getGoodsInnbArr()) {
|
||||||
BOGoodsVO goodsVO = new BOGoodsVO();
|
BOGoodsVO goodsVO = new BOGoodsVO();
|
||||||
goodsVO.setGoodsInnb(goodsInnb);
|
goodsVO.setGoodsInnb(goodsInnb);
|
||||||
goodsVO.setSopmalCd(bbsctt.getSopmalCd());
|
goodsVO.setSopmalCd(bbsctt.getSopmalCd());
|
||||||
|
|
||||||
/*상품정보 > 상품후기건수 차감*/
|
|
||||||
goodsService.updateGoodsInqryCnt(goodsVO);
|
goodsService.updateGoodsInqryCnt(goodsVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -932,10 +646,6 @@ public class MyActController {
|
|||||||
.resBody(new WnbtResponseBody(content))
|
.resBody(new WnbtResponseBody(content))
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
// return responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/updateBOBbscttDel",bbsctt),
|
|
||||||
// ReplyFromResrc::getReply
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -951,11 +661,6 @@ public class MyActController {
|
|||||||
|
|
||||||
Map<String, Object> content = selectBOBbscttRegistPopupForm(vo);
|
Map<String, Object> content = selectBOBbscttRegistPopupForm(vo);
|
||||||
model.addAttribute("resultMap", content);
|
model.addAttribute("resultMap", content);
|
||||||
// responseHandler.handleResponse(
|
|
||||||
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/gnrlbbsctt/selectBOBbscttRegistPopupForm", vo),
|
|
||||||
// model,
|
|
||||||
// "resultMap"
|
|
||||||
// );
|
|
||||||
return Util.getDeviceType(request)+"/mpage/act/RvwEasyRegistC";
|
return Util.getDeviceType(request)+"/mpage/act/RvwEasyRegistC";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -967,7 +672,7 @@ public class MyActController {
|
|||||||
public DataMap selectBOBbscttListInqire(BOGnrlbbscttVO bbsctt) {
|
public DataMap selectBOBbscttListInqire(BOGnrlbbscttVO bbsctt) {
|
||||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
|
|
||||||
if ("01".equals(user.getSysDvCd())) {//사용자 조회 일 경우
|
if ("01".equals(user.getSysDvCd())) {
|
||||||
bbsctt.setSopmalCd(user.getSopmalCd());
|
bbsctt.setSopmalCd(user.getSopmalCd());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -984,7 +689,6 @@ public class MyActController {
|
|||||||
bbsctt.setRegusrDvCd("99");
|
bbsctt.setRegusrDvCd("99");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// pagination
|
|
||||||
PaginationInfo paginationInfo = new PaginationInfo();
|
PaginationInfo paginationInfo = new PaginationInfo();
|
||||||
paginationInfo.setCurrentPageNo(bbsctt.getPageIndex());
|
paginationInfo.setCurrentPageNo(bbsctt.getPageIndex());
|
||||||
paginationInfo.setRecordCountPerPage(bbsctt.getPageUnit());
|
paginationInfo.setRecordCountPerPage(bbsctt.getPageUnit());
|
||||||
@@ -995,13 +699,10 @@ public class MyActController {
|
|||||||
bbsctt.setLastIndex(paginationInfo.getLastRecordIndex());
|
bbsctt.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||||
bbsctt.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
bbsctt.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||||
|
|
||||||
// 게시글 목록조회
|
|
||||||
Map<String, Object> resultList = new HashMap<String, Object>();
|
Map<String, Object> resultList = new HashMap<String, Object>();
|
||||||
resultList = service.selectBOBbscttListInqire(bbsctt);
|
resultList = service.selectBOBbscttListInqire(bbsctt);
|
||||||
|
|
||||||
// 게시판 설정 정보 조회
|
|
||||||
BOBbsVO bbsVO = new BOBbsVO();
|
BOBbsVO bbsVO = new BOBbsVO();
|
||||||
// bbsVO에 쇼핑몰코드, 해당 게시판 set
|
|
||||||
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
||||||
bbsVO.setBbsId(bbsctt.getBbsId());
|
bbsVO.setBbsId(bbsctt.getBbsId());
|
||||||
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
||||||
@@ -1021,13 +722,11 @@ public class MyActController {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public Map<String, Object> selectBOMpageInfoInqire(BOMbrVO vo) {
|
public Map<String, Object> selectBOMpageInfoInqire(BOMbrVO vo) {
|
||||||
// 사용자 정보 추출 및 적용
|
|
||||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
vo.setSopmalCd(user.getSopmalCd());
|
vo.setSopmalCd(user.getSopmalCd());
|
||||||
vo.setMbrInnb(String.valueOf(user.getUserInnb()));
|
vo.setMbrInnb(String.valueOf(user.getUserInnb()));
|
||||||
vo.setMbrDvCd(user.getMbrDvCd());
|
vo.setMbrDvCd(user.getMbrDvCd());
|
||||||
|
|
||||||
// 상품 옵션 조회
|
|
||||||
Map<String, Object> message = new HashMap<>();
|
Map<String, Object> message = new HashMap<>();
|
||||||
message = boMbrService.selectBOMpageInfoInqire(vo);
|
message = boMbrService.selectBOMpageInfoInqire(vo);
|
||||||
|
|
||||||
@@ -1052,7 +751,6 @@ public class MyActController {
|
|||||||
bbsctt.setSopmalCd(user.getSopmalCd());
|
bbsctt.setSopmalCd(user.getSopmalCd());
|
||||||
bbsctt.setRegusr(user.getUserInnb());
|
bbsctt.setRegusr(user.getUserInnb());
|
||||||
bbsctt.setMbrDvCd(user.getMbrDvCd());
|
bbsctt.setMbrDvCd(user.getMbrDvCd());
|
||||||
// pagination
|
|
||||||
PaginationInfo paginationInfo = new PaginationInfo();
|
PaginationInfo paginationInfo = new PaginationInfo();
|
||||||
paginationInfo.setCurrentPageNo(bbsctt.getPageIndex());
|
paginationInfo.setCurrentPageNo(bbsctt.getPageIndex());
|
||||||
paginationInfo.setRecordCountPerPage(bbsctt.getPageUnit());
|
paginationInfo.setRecordCountPerPage(bbsctt.getPageUnit());
|
||||||
@@ -1085,7 +783,6 @@ public class MyActController {
|
|||||||
if (!"crm".equals(bbsctt.getReqUrl())) {
|
if (!"crm".equals(bbsctt.getReqUrl())) {
|
||||||
bbsctt.setRegusr(user.getUserInnb());
|
bbsctt.setRegusr(user.getUserInnb());
|
||||||
}
|
}
|
||||||
// pagination
|
|
||||||
PaginationInfo paginationInfo = new PaginationInfo();
|
PaginationInfo paginationInfo = new PaginationInfo();
|
||||||
paginationInfo.setCurrentPageNo(bbsctt.getPageIndex());
|
paginationInfo.setCurrentPageNo(bbsctt.getPageIndex());
|
||||||
paginationInfo.setRecordCountPerPage(bbsctt.getPageUnit());
|
paginationInfo.setRecordCountPerPage(bbsctt.getPageUnit());
|
||||||
@@ -1095,7 +792,7 @@ public class MyActController {
|
|||||||
bbsctt.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
bbsctt.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||||
bbsctt.setLastIndex(paginationInfo.getLastRecordIndex());
|
bbsctt.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||||
bbsctt.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
bbsctt.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||||
// 게시글 목록조회
|
|
||||||
Map<String, Object> resultList = new HashMap<String, Object>();
|
Map<String, Object> resultList = new HashMap<String, Object>();
|
||||||
resultList = service.selectBOMyRvwListInqire(bbsctt);
|
resultList = service.selectBOMyRvwListInqire(bbsctt);
|
||||||
|
|
||||||
@@ -1111,7 +808,6 @@ public class MyActController {
|
|||||||
*/
|
*/
|
||||||
public Map<String, Object> selectBOBbscttRegistPopupForm(BOGnrlbbscttVO bbsctt) {
|
public Map<String, Object> selectBOBbscttRegistPopupForm(BOGnrlbbscttVO bbsctt) {
|
||||||
Map<String, Object> content = new HashMap<String, Object>();
|
Map<String, Object> content = new HashMap<String, Object>();
|
||||||
// 작성자 정보 추출
|
|
||||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
|
|
||||||
if ("01".equals(user.getSysDvCd())) {
|
if ("01".equals(user.getSysDvCd())) {
|
||||||
@@ -1124,9 +820,9 @@ public class MyActController {
|
|||||||
if (user.getUserInnb() > 0) {
|
if (user.getUserInnb() > 0) {
|
||||||
bbsctt.setRegusr(user.getUserInnb());
|
bbsctt.setRegusr(user.getUserInnb());
|
||||||
if (!"01".equals(user.getSysDvCd())) {
|
if (!"01".equals(user.getSysDvCd())) {
|
||||||
bbsctt.setRegusrDvCd("02"); //관리자
|
bbsctt.setRegusrDvCd("02");
|
||||||
} else {
|
} else {
|
||||||
bbsctt.setRegusrDvCd("01"); //회원
|
bbsctt.setRegusrDvCd("01");
|
||||||
bbsctt.setMbrDvCd(user.getMbrDvCd());
|
bbsctt.setMbrDvCd(user.getMbrDvCd());
|
||||||
DataMap mbr = new DataMap();
|
DataMap mbr = new DataMap();
|
||||||
mbr.put("mbrInnb", String.valueOf(bbsctt.getRegusr()));
|
mbr.put("mbrInnb", String.valueOf(bbsctt.getRegusr()));
|
||||||
@@ -1142,31 +838,25 @@ public class MyActController {
|
|||||||
regusrInfo.setRegusrDvCd(bbsctt.getRegusrDvCd());
|
regusrInfo.setRegusrDvCd(bbsctt.getRegusrDvCd());
|
||||||
} else {
|
} else {
|
||||||
regusrInfo.setRegusr(0);
|
regusrInfo.setRegusr(0);
|
||||||
regusrInfo.setRegusrDvCd("99");//비회원
|
regusrInfo.setRegusrDvCd("99");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 게시판 설정 정보
|
|
||||||
BOBbsVO bbsVO = new BOBbsVO();
|
BOBbsVO bbsVO = new BOBbsVO();
|
||||||
// bbsVO에 쇼핑몰코드, 해당 게시판 set
|
|
||||||
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
bbsVO.setSopmalCd(bbsctt.getSopmalCd());
|
||||||
bbsVO.setBbsId(bbsctt.getBbsId());
|
bbsVO.setBbsId(bbsctt.getBbsId());
|
||||||
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
bbsVO.setBbsTyCd(bbsctt.getBbsTyCd());
|
||||||
DataMap bbsInfo = new DataMap();
|
DataMap bbsInfo = new DataMap();
|
||||||
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
bbsInfo = bbsService.selectBOBbsSetupInfo(bbsVO);
|
||||||
|
|
||||||
// 분류
|
|
||||||
List<DataMap> itmList = new ArrayList<>();
|
List<DataMap> itmList = new ArrayList<>();
|
||||||
itmList = service.selectBOBbscttItmInqire(bbsctt);
|
itmList = service.selectBOBbscttItmInqire(bbsctt);
|
||||||
|
|
||||||
//리뷰항목 리스트, 리뷰항목 항목 리스트
|
|
||||||
Map<String, Object> rvwQesitmList = new HashMap<String, Object>();
|
Map<String, Object> rvwQesitmList = new HashMap<String, Object>();
|
||||||
rvwQesitmList = service.selectBOStarItm(bbsctt);
|
rvwQesitmList = service.selectBOStarItm(bbsctt);
|
||||||
|
|
||||||
//추가항목 리스트, 추가항목 항목 리스트
|
|
||||||
Map<String, Object> qesitmList = new HashMap<String, Object>();
|
Map<String, Object> qesitmList = new HashMap<String, Object>();
|
||||||
qesitmList = service.selectBOBbscttRegistPopupForm(bbsctt);
|
qesitmList = service.selectBOBbscttRegistPopupForm(bbsctt);
|
||||||
|
|
||||||
//사용자 > 리뷰 상품 조회
|
|
||||||
DataMap rvwGoodsInfo = new DataMap();
|
DataMap rvwGoodsInfo = new DataMap();
|
||||||
DataMap mlgInfo = new DataMap();
|
DataMap mlgInfo = new DataMap();
|
||||||
if ("sopmal".equals(bbsctt.getServerDv())) {
|
if ("sopmal".equals(bbsctt.getServerDv())) {
|
||||||
@@ -1178,7 +868,6 @@ public class MyActController {
|
|||||||
|
|
||||||
List<DataMap> rvwItmList = new ArrayList<>();
|
List<DataMap> rvwItmList = new ArrayList<>();
|
||||||
List<DataMap> starItmList = new ArrayList<>();
|
List<DataMap> starItmList = new ArrayList<>();
|
||||||
//사용자 별표 평점 역으로 리스트 set(퍼블리싱으로 인한 역처리)
|
|
||||||
if (rvwQesitmList.get("starItmCnList") != null) {
|
if (rvwQesitmList.get("starItmCnList") != null) {
|
||||||
rvwItmList = (List<DataMap>) rvwQesitmList.get("starItmCnList");
|
rvwItmList = (List<DataMap>) rvwQesitmList.get("starItmCnList");
|
||||||
for (int i = rvwItmList.size() - 1; i >= 0; i--) {
|
for (int i = rvwItmList.size() - 1; i >= 0; i--) {
|
||||||
@@ -1189,7 +878,6 @@ public class MyActController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//사용자 > 상품q&a 상품 조회
|
|
||||||
DataMap qnaGoodsInfo = new DataMap();
|
DataMap qnaGoodsInfo = new DataMap();
|
||||||
if ("sopmal".equals(bbsctt.getServerDv())) {
|
if ("sopmal".equals(bbsctt.getServerDv())) {
|
||||||
if ("modal".equals(bbsctt.getReqUrl())) {
|
if ("modal".equals(bbsctt.getReqUrl())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user