|
|
|
@ -8,6 +8,8 @@ import java.util.Map;
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
import org.apache.poi.ss.usermodel.CellStyle;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.code.CommonCode;
|
|
|
|
@ -25,6 +27,7 @@ import cokr.xit.fims.epst.service.EpostGdccService;
|
|
|
|
|
import cokr.xit.fims.epst.service.EpostRcptDtlService;
|
|
|
|
|
import cokr.xit.fims.epst.service.EpostRcptRegService;
|
|
|
|
|
import cokr.xit.fims.epst.service.EpostRcptRsltService;
|
|
|
|
|
import cokr.xit.fims.task.Task;
|
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
|
|
|
|
|
/**전자우편 안내문 서비스의 웹 컨트롤러
|
|
|
|
@ -37,6 +40,8 @@ import cokr.xit.foundation.data.DataObject;
|
|
|
|
|
* ================================
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
@Controller
|
|
|
|
|
@RequestMapping(name="우편통합", value=Epst02Controller.CLASS_URL)
|
|
|
|
|
public class Epst02Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
public static final String CLASS_URL = "/epst/epst02";
|
|
|
|
@ -84,6 +89,7 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* 조건없는 {@link #getEpostGdccList(EpostGdccQuery) 전자우편 안내문 조회 결과}를 포함시킨다.
|
|
|
|
|
* @return /epostGdcc/epostGdcc-main
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="안내문관리", value=METHOD_URL.epostGuidanceDocumentMain)
|
|
|
|
|
public ModelAndView epostGuidanceDocumentMain() {
|
|
|
|
|
ModelAndView mav = new ModelAndView("fims/epst/epst02010-main");
|
|
|
|
|
|
|
|
|
@ -114,6 +120,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "epostGdccTotal": 조회 결과 찾은 전체 전자우편 안내문 수
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 안내문 목록 조회", value=METHOD_URL.getEpostGuidanceDocumentList)
|
|
|
|
|
public ModelAndView getEpostGuidanceDocumentList(EpostQuery req) {
|
|
|
|
|
if (!"xls".equals(req.getDownload())) {
|
|
|
|
|
List<?> result = epostGdccService.getEpostGdccList(setFetchSize(req));
|
|
|
|
@ -170,6 +178,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "epostGdccInfo": 전자우편 안내문 정보
|
|
|
|
|
* }</pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 안내문 정보 조회", value=METHOD_URL.getEpostGuidanceDocumentInfo)
|
|
|
|
|
public ModelAndView getEpostGuidanceDocumentInfo(EpostQuery req) {
|
|
|
|
|
//
|
|
|
|
|
DataObject info = epostGdccService.getEpostGdccInfo(req);
|
|
|
|
@ -197,6 +207,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "saved": 등록되었으면 true, 그렇지 않으면 false
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 안내문 등록", value=METHOD_URL.createEpostGuidanceDocument)
|
|
|
|
|
public ModelAndView createEpostGuidanceDocument(EpostGdcc epostGdcc) {
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
String rtnMsg = epostGdccService.createEpostGdcc(epostGdcc);
|
|
|
|
@ -219,6 +231,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "saved": 수정되었으면 true, 그렇지 않으면 false
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 안내문 수정", value=METHOD_URL.updateEpostGuidanceDocument)
|
|
|
|
|
public ModelAndView updateEpostGuidanceDocument(EpostGdcc epostGdcc) {
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
String rtnMsg = epostGdccService.updateEpostGdcc(epostGdcc);
|
|
|
|
@ -242,6 +256,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "saved": 저장되었으면 true, 그렇지 않으면 false
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 안내문 삭제", value=METHOD_URL.removeEpostGuidanceDocument)
|
|
|
|
|
public ModelAndView removeEpostGuidanceDocument(EpostGdcc epostGdcc) {
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
String rtnMsg = epostGdccService.removeEpostGdcc(epostGdcc);
|
|
|
|
@ -260,6 +276,7 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
/**전자우편 접수 등록 관리 메인화면(fims/epst/epst02030-main)을 연다.
|
|
|
|
|
* @return /fims/epst/epst02030-main
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="우편발송", value=METHOD_URL.epostReceiptRegistrationMain)
|
|
|
|
|
public ModelAndView epostReceiptRegistrationMain() {
|
|
|
|
|
ModelAndView mav = new ModelAndView("fims/epst/epst02030-main");
|
|
|
|
|
|
|
|
|
@ -294,6 +311,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "epostRcptRegTotal": 조회 결과 찾은 전체 전자우편 접수 등록 수
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 발송 목록 조회", value=METHOD_URL.getEpostReceiptRegistrationList)
|
|
|
|
|
public ModelAndView getEpostReceiptRegistrationList(EpostQuery req) {
|
|
|
|
|
if (!"xls".equals(req.getDownload())) {
|
|
|
|
|
List<?> result = epostRcptRegService.getEpostRcptRegList(setFetchSize(req));
|
|
|
|
@ -350,6 +369,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "epostRcptReg": 전자우편 접수 등록 정보
|
|
|
|
|
* }</pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 발송 상세 화면", value=METHOD_URL.getEpostReceiptRegistrationDetailInfo)
|
|
|
|
|
public ModelAndView getEpostReceiptRegistrationDetailInfo(EpostQuery req) {
|
|
|
|
|
//
|
|
|
|
|
ModelAndView mav = getEpostReceiptRegistrationDetailList(req);
|
|
|
|
@ -373,6 +394,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "epostRcptReg": 전자우편 접수 등록 정보
|
|
|
|
|
* }</pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 발송 상세 목록 조회", value=METHOD_URL.getEpostReceiptRegistrationDetailList)
|
|
|
|
|
public ModelAndView getEpostReceiptRegistrationDetailList(EpostQuery req) {
|
|
|
|
|
// 엑셀 저장이 아니라면.. 검색
|
|
|
|
|
if (!"xls".equals(req.getDownload())) {
|
|
|
|
@ -433,6 +456,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "saved": 수정되었으면 true, 그렇지 않으면 false
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 발송 우편처리상태코드 수정", value=METHOD_URL.updateEpostSendingProcessStatus)
|
|
|
|
|
public ModelAndView updateEpostSendingProcessStatus(EpostRcptReg epostRcptReg) {
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
String rtnMsg = epostRcptRegService.updatePostPrcsSttsCd(epostRcptReg);
|
|
|
|
@ -456,6 +481,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "saved": 저장되었으면 true, 그렇지 않으면 false
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 발송 삭제", value=METHOD_URL.removeEpostSendingStatus)
|
|
|
|
|
public ModelAndView removeEpostSendingStatus(EpostRcptReg epostRcptReg) {
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
String rtnMsg = epostRcptRegService.remove(epostRcptReg);
|
|
|
|
@ -475,6 +502,7 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* 조건없는 {@link #getEpostRcptRsltList(EpostRcptRsltQuery) 전자우편 접수 결과 조회 결과}를 포함시킨다.
|
|
|
|
|
* @return /epostRcptRslt/epostRcptRslt-main
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(name="접수결과", value=METHOD_URL.epostReceiptResultMain)
|
|
|
|
|
public ModelAndView epostReceiptResultMain() {
|
|
|
|
|
//
|
|
|
|
|
boolean json = jsonResponse();
|
|
|
|
@ -515,6 +543,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "epostRcptRsltTotal": 조회 결과 찾은 전체 전자우편 접수 결과 수
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 접수 결과 목록 조회", value=METHOD_URL.getEpostReceiptResultList)
|
|
|
|
|
public ModelAndView getEpostReceiptResultList(EpostQuery req) {
|
|
|
|
|
if (!"xls".equals(req.getDownload())) {
|
|
|
|
|
List<?> result = epostRcptRsltService.getEpostRcptRsltList(setFetchSize(req));
|
|
|
|
@ -574,6 +604,8 @@ public class Epst02Controller extends ApplicationController {
|
|
|
|
|
* "crdnPayer": {...}
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
*/
|
|
|
|
|
@Task
|
|
|
|
|
@RequestMapping(name="전자우편 접수 결과 합계 금액 조회", value=METHOD_URL.getEpostReceiptResultSumAmount)
|
|
|
|
|
public ModelAndView getEpostReceiptResultSumAmount(EpostQuery req) {
|
|
|
|
|
//
|
|
|
|
|
List<DataObject> sumAmt = epostRcptRsltService.getEpostRcptRsltSum(req);
|
|
|
|
|