+test ajax

This commit is contained in:
hehihoho3@gmail.com 2024-11-28 10:53:19 +09:00
parent 118a60fe8b
commit 768468dd3a
2 changed files with 27 additions and 0 deletions

View File

@ -47,6 +47,7 @@ import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
@ -3380,5 +3381,24 @@ public class TestController {
}
}
@RequestMapping(value = "/web/mjon/test/ajaxTest.do")
public ResponseEntity<StatusResponse> ajaxTest(
@RequestParam String isSuccess,
@RequestParam String s_msg,
@RequestParam String f_msg,
HttpServletRequest request,
ModelMap model) throws Exception {
if("Y".equals(isSuccess)) {
return ResponseEntity.ok().body(new StatusResponse(HttpStatus.OK, s_msg, ""));
}else {
return ResponseEntity.ok().body(new StatusResponse(HttpStatus.BAD_REQUEST, f_msg, ""));
}
}
}

View File

@ -1043,6 +1043,9 @@ function blineSendCheck(blineCode) {
return confCheck;
}
//문자발송 처리 함수
function fn_sendMsgData(){
@ -1233,6 +1236,10 @@ function fn_sendMsgData(){
}
function sendMsgAjax_advc(){
// 타블레이터 호출
var $selectedData = tableL.getData(); // 데이터 가져오기