로그 삭제

This commit is contained in:
주수현
2025-06-19 20:41:36 +09:00
parent 68b396921f
commit 3af1922d79
2 changed files with 13 additions and 13 deletions

View File

@@ -33,20 +33,18 @@ public class AdminCreatePostController {
if (bindingResult.hasErrors()) {
log.info("############Binding errors: {}", bindingResult.getAllErrors());
log.info("Binding 메세지 errors: {}", bindingResult.getAllErrors().get(0).getDefaultMessage());
return ResponseEntity.status(HttpStatus.UNPROCESSABLE_ENTITY)
.body(bindingResult.getAllErrors().get(0).getDefaultMessage());
}
return ResponseEntity.status(HttpStatus.OK).body(
savePortIn.apiConnect(bindingVO.getSeq(),
bindingVO.getId(),
bindingVO.getPassword(),
bindingVO.getName(),
"010"+bindingVO.getPhone1()+bindingVO.getPhone2(),
bindingVO.getRegionMainCode(),
bindingVO.getAccountDisabled(),
bindingVO.getRoleId()));
savePortIn.apiConnect(bindingVO.getSeq(),
bindingVO.getId(),
bindingVO.getPassword(),
bindingVO.getName(),
"010"+bindingVO.getPhone1()+bindingVO.getPhone2(),
bindingVO.getRegionMainCode(),
bindingVO.getAccountDisabled(),
bindingVO.getRoleId()));
}
}

View File

@@ -239,11 +239,13 @@
},
function (code, rstData) {
if(code == 422) alert(rstData.responseText);
if(code == 400) alert(rstData.responseJSON.message);
if(code == 200 ){
alert("등록이 완료되었습니다.");
location.href = '/settings/admins';
}
},
'post',
'json',
{ handle422Type: 'alert' }
'json'
);
}
</script>