OWL ITS + 탐지시스템(인터넷 진흥원)
wyu
2021-12-01 7476ad22442c349f0751709957fee068d463980a
src/main/java/kr/wisestone/owl/web/controller/IssueController.java
@@ -31,7 +31,8 @@
@Controller
public class IssueController extends BaseController {
    private static final Logger log = LoggerFactory.getLogger(IssueController.class);
    private static final Logger
            log = LoggerFactory.getLogger(IssueController.class);
    @Autowired
    private IssueService issueService;
@@ -63,6 +64,18 @@
        return this.setSuccessMessage(resJsonData);
    }
    //  파트너 목록 조회
    @RequestMapping(value = "/issue/findPartner", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    public
    @ResponseBody
    Map<String, Object> findPartner(@RequestBody Map<String, Map<String, Object>> params) {
        Map<String, Object> resJsonData = new HashMap<>();
        this.issueService.findPartner(resJsonData, params.get(Constants.REQ_KEY_CONTENT));
        return this.setSuccessMessage(resJsonData);
    }
    //  이슈 상세 조회
    @RequestMapping(value = "/issue/detail", produces = MediaType.APPLICATION_JSON_VALUE)
    public
@@ -85,6 +98,16 @@
        //  버전 생성
        this.issueService.addIssueVersion(issue.getId());
        return this.setSuccessMessage(resJsonData);
    }
    //  하위 이슈 추가
    @RequestMapping(value = "/issue/modifyParentIssue", produces = MediaType.APPLICATION_JSON_VALUE)
    public
    @ResponseBody
    Map<String, Object> modifyParentIssue(@RequestBody Map<String, Map<String, Object>> params) {
        Map<String, Object> resJsonData = new HashMap<>();
        this.issueService.modifyParentIssue(IssueForm.make(params.get(Constants.REQ_KEY_CONTENT)));
        return this.setSuccessMessage(resJsonData);
    }
@@ -142,5 +165,14 @@
        return this.setSuccessMessage(resJsonData);
    }
    //  이슈 메일 파트너 담당자에게 발송 (템플릿 추가)
    @RequestMapping(value = "/issue/sendEmailPartners", produces = MediaType.APPLICATION_JSON_VALUE)
    public
    @ResponseBody
    Map<String, Object> sendEmailPartners(@RequestBody Map<String, Map<String, Object>> params) {
        Map<String, Object> resJsonData = new HashMap<>();
        this.issueService.sendIssueEmailPartners(IssueForm.make(params.get(Constants.REQ_KEY_CONTENT)));
        return this.setSuccessMessage(resJsonData);
    }
}