fo bo 머지작업 - 오류수정
This commit is contained in:
@@ -8,6 +8,7 @@ import java.util.Map;
|
|||||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||||
|
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
@@ -39,12 +40,14 @@ public class BOBbsVO extends AbstractVO {
|
|||||||
/** 게시판 게시판 번호 */
|
/** 게시판 게시판 번호 */
|
||||||
private String rnum;
|
private String rnum;
|
||||||
/** 게시판 게시판 ID */
|
/** 게시판 게시판 ID */
|
||||||
|
@NotEmpty(message = "게시판 ID")
|
||||||
private String bbsId;
|
private String bbsId;
|
||||||
/** 게시판 쇼핑몰 코드 */
|
/** 게시판 쇼핑몰 코드 */
|
||||||
private String sopmalCd;
|
private String sopmalCd;
|
||||||
/** 게시판 설정정보 고유번호 */
|
/** 게시판 설정정보 고유번호 */
|
||||||
private String setupInfoInnb;
|
private String setupInfoInnb;
|
||||||
/** 게시판 게시판명 */
|
/** 게시판 게시판명 */
|
||||||
|
@NotEmpty(message = "게시판명")
|
||||||
private String bbsNm;
|
private String bbsNm;
|
||||||
/** 게시판 게시판 유형 */
|
/** 게시판 게시판 유형 */
|
||||||
private String bbsTyCd;
|
private String bbsTyCd;
|
||||||
@@ -341,4 +344,27 @@ public class BOBbsVO extends AbstractVO {
|
|||||||
private String bbscttInnb;
|
private String bbscttInnb;
|
||||||
|
|
||||||
private String mbrGradGroupInnb;
|
private String mbrGradGroupInnb;
|
||||||
|
|
||||||
|
/** board_auth */
|
||||||
|
/** 기능권한 고유번호 */
|
||||||
|
private String fnctAuthorInnb;
|
||||||
|
/** 회원등급 고유번호 */
|
||||||
|
private String mbrGradInnb;
|
||||||
|
/** 기능구분코드 */
|
||||||
|
private String fnctDvCd;
|
||||||
|
|
||||||
|
private String bbscttlRedngAuthorDvCd;
|
||||||
|
|
||||||
|
public void setBbscttRedngAuthorDvCd_c(String[] bbscttRedngAuthorDvCd_c) {
|
||||||
|
this.redngAuthorDvCdArr = bbscttRedngAuthorDvCd_c;
|
||||||
|
}
|
||||||
|
public void setBbscttRegistAuthorDvCd_c(String[] bbscttRegistAuthorDvCd_c) {
|
||||||
|
this.registAuthorDvCdArr = bbscttRegistAuthorDvCd_c;
|
||||||
|
}
|
||||||
|
public void setAnswRegistAuthorDvCd_c(String[] answRegistAuthorDvCd_c) {
|
||||||
|
this.answRegistAuthorDvCdArr = answRegistAuthorDvCd_c;
|
||||||
|
}
|
||||||
|
public void setCmRegistAuthorDvCd_c(String[] cmRegistAuthorDvCd_c) {
|
||||||
|
this.cmRegistAuthorDvCdArrArr = cmRegistAuthorDvCd_c;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -511,27 +511,71 @@ public class BbsmngrController {
|
|||||||
*/
|
*/
|
||||||
@Policy(AuthPolicy.RESTRICTED)
|
@Policy(AuthPolicy.RESTRICTED)
|
||||||
@RequestMapping(value="/selectBbsDtlUpdtForm")
|
@RequestMapping(value="/selectBbsDtlUpdtForm")
|
||||||
public String selectBbsDtlUpdtForm(BbsmngrVO vo, ModelMap model, @CookieValue(value = "authSopmalCd") String authSopmalCd){
|
public String selectBbsDtlUpdtForm(BOBbsVO vo, ModelMap model, @CookieValue(value = "authSopmalCd") String authSopmalCd){
|
||||||
|
|
||||||
vo.setNtcntalkSndngFormInnbArr(new String[] {ntcntalkSndngFormInnb1, ntcntalkSndngFormInnb2});
|
vo.setNtcntalkSndngFormInnbArr(new String[] {ntcntalkSndngFormInnb1, ntcntalkSndngFormInnb2});
|
||||||
|
|
||||||
vo.setSopmalCd(authSopmalCd);
|
vo.setSopmalCd(authSopmalCd);
|
||||||
|
|
||||||
Map<String,Object> resultMap = responseHandler.handleResponseAsMap(
|
// 작성자 정보 할당
|
||||||
sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/bbs/selectBOBbsDtlUpdtForm",vo)
|
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||||
);
|
if("01".equals(user.getSysDvCd())){
|
||||||
|
vo.setSopmalCd(user.getSopmalCd());
|
||||||
|
} // 쇼핑몰코드
|
||||||
|
vo.setRegusr(user.getUserInnb()); // 등록자
|
||||||
|
vo.setUpdusr(user.getUserInnb()); // 수정자
|
||||||
|
|
||||||
|
DataMap codeMap = new DataMap();
|
||||||
|
codeMap = service.selectCommonCode(); // 공통 코드
|
||||||
|
|
||||||
|
List<DataMap> codeList = new ArrayList<>();
|
||||||
|
codeList.add(codeMap);
|
||||||
|
|
||||||
|
List<DataMap> mbrGradList = new ArrayList<>();
|
||||||
|
mbrGradList = service.selectBOBbsRegistForm(vo); //해당 쇼핑몰 회원 등급 조회
|
||||||
|
|
||||||
|
List<DataMap> updBbsList = new ArrayList<>();
|
||||||
|
updBbsList = service.selectUpdBbsList(vo); // 해당 쇼핑몰 게시판 목록 조회
|
||||||
|
|
||||||
|
List<DataMap> messageList = new ArrayList<>();
|
||||||
|
DataMap sms = new DataMap();
|
||||||
|
sms = service.selectBOBbsSmsFormList(vo); // 메시지 폼
|
||||||
|
|
||||||
|
DataMap kakao = new DataMap();
|
||||||
|
kakao = service.selectBOBbsKakaoFormList(vo); // 카카오 폼
|
||||||
|
|
||||||
|
List<DataMap> srchList = new ArrayList<>();
|
||||||
|
DataMap srchData = new DataMap();
|
||||||
|
srchData.put("srchWord", vo.getSrchWord());
|
||||||
|
srchData.put("srchBbsTyCd", vo.getSrchBbsTyCd());
|
||||||
|
srchData.put("srchSknTyCd", vo.getSrchSknTyCd());
|
||||||
|
srchData.put("pageUnit", vo.getPageUnit());
|
||||||
|
srchData.put("pageIndex", vo.getPageIndex());
|
||||||
|
srchData.put("pageDv", vo.getPageDv());
|
||||||
|
srchList.add(srchData);
|
||||||
|
|
||||||
|
DataMap content = new DataMap();
|
||||||
|
content = service.selectBOBbsDtlUpdtInqire(vo); // 게시판 상세 조회
|
||||||
|
content.put("mbrGradList", mbrGradList);
|
||||||
|
content.put("codeContent", codeList);
|
||||||
|
content.put("srchList", srchList);
|
||||||
|
content.put("updBbsList", updBbsList);
|
||||||
|
content.put("sms", sms);
|
||||||
|
content.put("kakao", kakao);
|
||||||
|
|
||||||
|
// Map<String,Object> resultMap = responseHandler.handleResponseAsMap(
|
||||||
|
// sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/bbs/bbs/selectBOBbsDtlUpdtForm",vo)
|
||||||
|
// );
|
||||||
|
|
||||||
|
|
||||||
ObjectMapper objectMapper = new ObjectMapper();
|
ObjectMapper objectMapper = new ObjectMapper();
|
||||||
try {
|
try {
|
||||||
resultMap.put("updBbsList", objectMapper.writeValueAsString(resultMap.get("updBbsList")));
|
content.put("updBbsList", objectMapper.writeValueAsString(content.get("updBbsList")));
|
||||||
|
|
||||||
} catch (WnbtRestException wre){
|
} catch (WnbtRestException wre){
|
||||||
throw new WnbtRestException(wre.getMessage());
|
throw new WnbtRestException(wre.getMessage());
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
model.addAttribute("resultMap", resultMap);
|
model.addAttribute("resultMap", content);
|
||||||
|
|
||||||
return "mngr/bbs/bbsmngr/BbsDtlUpdtU";
|
return "mngr/bbs/bbsmngr/BbsDtlUpdtU";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user