fix : 관리자 메인 - 쇼핑몰 코드 할당
This commit is contained in:
@@ -76,16 +76,26 @@ public class MngrMainController {
|
||||
// public String selectMngrMainInqire(@CookieValue(value = "authSopmalCd") String authSopmalCd, ModelMap model, HttpServletRequest request) {
|
||||
public String selectMngrMainInqire(String authSopmalCd, ModelMap model, HttpServletRequest request, HttpServletResponse response ) {
|
||||
BOBbsVO vo = new BOBbsVO();
|
||||
vo.setSopmalCd(authSopmalCd);
|
||||
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
vo.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
// 쇼핑몰코드
|
||||
vo.setRegusr(user.getUserInnb()); // 등록자
|
||||
vo.setUpdusr(user.getUserInnb()); // 수정자
|
||||
// 쇼핑몰코드
|
||||
if(StringUtil.isEmpty(authSopmalCd)) {
|
||||
if(request.getCookies()!=null) {
|
||||
for(Cookie cookie : request.getCookies()){
|
||||
if("authSopmalCd".equals(cookie.getName())){
|
||||
authSopmalCd = cookie.getValue();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
vo.setSopmalCd(authSopmalCd);
|
||||
|
||||
DataMap resultMap = new DataMap();
|
||||
resultMap = bbsService.selectBOBbscttDshboardInqireForm(vo);
|
||||
|
||||
Reference in New Issue
Block a user