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