게시판 수정
This commit is contained in:
parent
51142afa61
commit
3192db220d
@ -203,8 +203,6 @@ public class BoardController {
|
|||||||
@ParameterCheck
|
@ParameterCheck
|
||||||
@PostMapping("/{LOCBRDSEQ}/comment")
|
@PostMapping("/{LOCBRDSEQ}/comment")
|
||||||
public ApiResponse<String> addCommentOrReply(@ReqMap MapDto map) {
|
public ApiResponse<String> addCommentOrReply(@ReqMap MapDto map) {
|
||||||
Long userId = AuthUtil.getUser().getId();
|
|
||||||
map.put("MEMBERSEQ", userId);
|
|
||||||
|
|
||||||
if (map.containsKey("LOCCMTPWD") && !map.getString("LOCCMTPWD").trim().isEmpty()) { // 빈 값 체크
|
if (map.containsKey("LOCCMTPWD") && !map.getString("LOCCMTPWD").trim().isEmpty()) { // 빈 값 체크
|
||||||
String rawPassword = map.getString("LOCCMTPWD");
|
String rawPassword = map.getString("LOCCMTPWD");
|
||||||
|
|||||||
@ -134,8 +134,11 @@ public class localbordService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void insertCommentOrReply(MapDto map) {
|
public void insertCommentOrReply(MapDto map) {
|
||||||
if (map.get("LOCCMTPNT") == null) {
|
if ("300102".equals(String.valueOf(map.get("LOCBRDTYP")))) {
|
||||||
map.put("LOCCMTPNT", null);
|
map.put("MEMBERSEQ", null);
|
||||||
|
}else {
|
||||||
|
Long userId = AuthUtil.getUser().getId();
|
||||||
|
map.put("MEMBERSEQ", userId);
|
||||||
}
|
}
|
||||||
boardMapper.insertCommentOrReply(map);
|
boardMapper.insertCommentOrReply(map);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user