|
|
@ -17,21 +17,21 @@ import cokr.xit.interfaces.epost.service.EmailRequestService;
|
|
|
|
import cokr.xit.interfaces.epost.service.EmailResultService;
|
|
|
|
import cokr.xit.interfaces.epost.service.EmailResultService;
|
|
|
|
|
|
|
|
|
|
|
|
@Controller("epostApi")
|
|
|
|
@Controller("epostApi")
|
|
|
|
@RequestMapping(name = "전자우편 신청 결과", value = "/api/epost/result")
|
|
|
|
@RequestMapping(name = "전자우편 신청 결과", value = "/intf/epost/result")
|
|
|
|
public class ApiController extends AbstractController {
|
|
|
|
public class ApiController extends AbstractController {
|
|
|
|
@Resource(name = "emailRequestService")
|
|
|
|
@Resource(name = "emailRequestService")
|
|
|
|
private EmailRequestService requestService;
|
|
|
|
private EmailRequestService requestService;
|
|
|
|
@Resource(name = "emailResultService")
|
|
|
|
@Resource(name = "emailResultService")
|
|
|
|
private EmailResultService resultService;
|
|
|
|
private EmailResultService resultService;
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping(name = "/전자우편 신청결과 통보", value = "/receive.do")
|
|
|
|
@PostMapping(name = "/전자우편 신청결과 통보", value = "/receive")
|
|
|
|
public ModelAndView receive(@RequestBody Map<String, Object> resultInfo) {
|
|
|
|
public ModelAndView receive(@RequestBody Map<String, Object> resultInfo) {
|
|
|
|
log().debug("received processID: {}", resultInfo);
|
|
|
|
log().debug("received processID: {}", resultInfo);
|
|
|
|
return new ModelAndView("jsonView")
|
|
|
|
return new ModelAndView("jsonView")
|
|
|
|
.addObject("received", true);
|
|
|
|
.addObject("received", true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping(name = "/전자우편 신청결과 로그 조회", value = "/list.do")
|
|
|
|
@PostMapping(name = "/전자우편 신청결과 로그 조회", value = "/list")
|
|
|
|
public ModelAndView getResultLogs(@RequestBody Map<String, Object> req) {
|
|
|
|
public ModelAndView getResultLogs(@RequestBody Map<String, Object> req) {
|
|
|
|
String procID = (String)req.get("procID");
|
|
|
|
String procID = (String)req.get("procID");
|
|
|
|
int fetchSize = (Integer)req.get("fetchSize");
|
|
|
|
int fetchSize = (Integer)req.get("fetchSize");
|
|
|
@ -43,7 +43,7 @@ public class ApiController extends AbstractController {
|
|
|
|
.addObject("more", more);
|
|
|
|
.addObject("more", more);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping(name = "/전자우편 신청결과 상태 변경", value = "/update.do")
|
|
|
|
@PostMapping(name = "/전자우편 신청결과 상태 변경", value = "/update")
|
|
|
|
public ModelAndView updateResultLogStatus(@RequestBody Map<String, Object> req) {
|
|
|
|
public ModelAndView updateResultLogStatus(@RequestBody Map<String, Object> req) {
|
|
|
|
List<DataObject> logs = (List<DataObject>)req.get("logs");
|
|
|
|
List<DataObject> logs = (List<DataObject>)req.get("logs");
|
|
|
|
int affected = resultService.updateResultLogStatus(logs);
|
|
|
|
int affected = resultService.updateResultLogStatus(logs);
|
|
|
|