OWL ITS + 탐지시스템(인터넷 진흥원)
wyu
2021-12-28 a75bcc7c2b0fc98bd3a8abc100a4ad4ec11b9c26
src/main/java/kr/wisestone/owl/web/controller/NoticeController.java
@@ -3,6 +3,7 @@
import kr.wisestone.owl.constant.Constants;
import kr.wisestone.owl.service.NoticeService;
import kr.wisestone.owl.web.condition.NoticeCondition;
import kr.wisestone.owl.web.form.CompanyFieldForm;
import kr.wisestone.owl.web.form.NoticeForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
@@ -88,6 +89,18 @@
        return this.setSuccessMessage(resJsonData);
    }
    // 공지 삭제
    @RequestMapping(value = "/notice/remove", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    public
    @ResponseBody
    Map<String, Object> remove(@RequestBody Map<String, Map<String, Object>> params) {
        Map<String, Object> resJsonData = new HashMap<>();
        Map<String, Object> content = params.get(Constants.REQ_KEY_CONTENT);
        this.noticeService.remove(NoticeForm.make(content));
        return this.setSuccessMessage(resJsonData);
    }
    @RequestMapping(value = "/notice/downloadExcel", method = RequestMethod.POST)
    public ModelAndView downloadExcel(HttpServletRequest request, Model model) {