초기소스
This commit is contained in:
@@ -0,0 +1,172 @@
|
||||
package com.wb.domainserver.domain.mngr.puri.controller;
|
||||
|
||||
import com.wb.domainserver.common.msg.GconeMessageSource;
|
||||
import com.wb.domainserver.domain.mngr.puri.vo.PuriSrchVO;
|
||||
import com.wb.domainserver.response.WnbtResponse;
|
||||
import com.wb.domainserver.response.WnbtWebClientResponseHandler;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import com.wb.domainserver.util.communicate.RESRC;
|
||||
import com.wb.domainserver.util.communicate.ReplyFromResrc;
|
||||
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.Model;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@Controller
|
||||
@RequestMapping("/mngr/puri")
|
||||
public class PuriController {
|
||||
|
||||
/** WebClient 호출을 위한 wrapper */
|
||||
@Autowired
|
||||
private WnbtWebClientResponseHandler responseHandler;
|
||||
|
||||
@Autowired
|
||||
private SendToResrc sendToResrc;
|
||||
|
||||
/** 공통 메시지 처리를 위한 메시지 객체 */
|
||||
@Autowired
|
||||
private GconeMessageSource gconeMessageSource;
|
||||
|
||||
/**
|
||||
* 정수기 판매 및 설치내역
|
||||
* @param vo 게시판 등록 파라미터 VO
|
||||
* @return String JSP 경로
|
||||
*/
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/selectPuriOrderListR")
|
||||
public String selectPuriOrderListR(PuriSrchVO vo, ModelMap model, @CookieValue(value = "authSopmalCd") String authSopmalCd){
|
||||
vo.setSopmalCd(authSopmalCd);
|
||||
responseHandler.handleResponse(
|
||||
sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/puri/selectPuriOrderListR", vo),
|
||||
model,
|
||||
"resultMap"
|
||||
);
|
||||
return "mngr/puri/PuriOrderListR";
|
||||
}
|
||||
|
||||
/**
|
||||
* 정수기 판매 및 설치내역
|
||||
* @param vo 게시판 등록 파라미터 VO
|
||||
* @return String JSP 경로
|
||||
*/
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/selectPuriOrderListForm")
|
||||
public String selectPuriOrderListForm(PuriSrchVO vo, ModelMap model, @CookieValue(value = "authSopmalCd") String authSopmalCd){
|
||||
vo.setSopmalCd(authSopmalCd);
|
||||
responseHandler.handleResponse(
|
||||
sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/puri/selectPuriOrderListForm", vo),
|
||||
model,
|
||||
"resultMap"
|
||||
);
|
||||
return "mngr/puri/PuriOrderList";
|
||||
}
|
||||
|
||||
/**
|
||||
* 정수기 판매 및 설치내역 팝업
|
||||
* @return String JSP 경로
|
||||
*/
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/puriOrderListDetailPopup")
|
||||
public String PuriOrderListDetailPopup(@RequestParam Map<String, String> param, Model model){
|
||||
|
||||
model.addAllAttributes(param);
|
||||
|
||||
return "mngr/puri/PuriOrderListDetailPopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 정수기 필터 교체 문자 발송 내역
|
||||
* @param vo 게시판 등록 파라미터 VO
|
||||
* @return String JSP 경로
|
||||
*/
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/selectPuriAllimList")
|
||||
@ResponseBody
|
||||
public Map<String,Object> selectPuriAllimList(@RequestParam Integer puriAllimSeq){
|
||||
|
||||
PuriSrchVO vo = new PuriSrchVO();
|
||||
vo.setPuriAllimSeq(puriAllimSeq);
|
||||
|
||||
log.debug(" 검색 파라미터 확인 231: {}", vo);
|
||||
|
||||
Map<String,Object> resultMap = responseHandler.handleResponseAsMap(
|
||||
sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/puri/selectPuriAllimList", vo)
|
||||
);
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 정수기 필터 상세 페이지 puri_order 내역 업데이트
|
||||
* @param vo 게시판 등록 파라미터 VO
|
||||
*/
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/updatePuriOrder" , method= RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public ResponseEntity<WnbtResponse> updatePuriOrder(@RequestParam Map<String, Object> formData){
|
||||
|
||||
log.debug(" 검색 파라미터 확인 231: {}", formData);
|
||||
|
||||
return responseHandler.handleResponse(
|
||||
sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/puri/updatePuriOrder", formData),
|
||||
ReplyFromResrc::getReply
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 정수기 필터 상세 페이지 puri_allim 내역 업데이트
|
||||
* @param vo 게시판 등록 파라미터 VO
|
||||
*/
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/updatePuriAllim" , method= RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public ResponseEntity<WnbtResponse> updatePuriAllim(@RequestParam Map<String, Object> formData){
|
||||
|
||||
log.debug(" 검색 파라미터 확인 231: {}", formData);
|
||||
|
||||
return responseHandler.handleResponse(
|
||||
sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/puri/updatePuriAllim", formData),
|
||||
ReplyFromResrc::getReply
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 정수기 기사설치 방문일 갱신 팝업 호출
|
||||
* @return String JSP 경로
|
||||
*/
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/PuriOrderVisitPopup")
|
||||
public String PuriOrderVisitPopup(@RequestParam Map<String, String> param, Model model){
|
||||
|
||||
model.addAllAttributes(param);
|
||||
|
||||
return "mngr/puri/PuriOrderVisitPopup";
|
||||
}
|
||||
|
||||
/**
|
||||
* 정수기 기사 설치 방문일 갱신
|
||||
* @param vo 게시판 등록 파라미터 VO
|
||||
*/
|
||||
@Policy(AuthPolicy.RESTRICTED)
|
||||
@RequestMapping(value="/updateVisitDate" , method= RequestMethod.POST)
|
||||
@ResponseBody
|
||||
public ResponseEntity<WnbtResponse> updateVisitDate(@RequestParam Map<String, Object> formData){
|
||||
|
||||
log.debug(" 검색 파라미터 확인 231: {}", formData);
|
||||
|
||||
return responseHandler.handleResponse(
|
||||
sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/puri/updateVisitDate", formData),
|
||||
ReplyFromResrc::getReply
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.wb.domainserver.domain.mngr.puri.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
public class PuriSrchVO extends AbstractVO {
|
||||
|
||||
private String sopmalCd;
|
||||
|
||||
private String secretKey;
|
||||
|
||||
private String srchOrderDateType;
|
||||
|
||||
private LocalDate sndngOrderReqstSDate;
|
||||
|
||||
private LocalDate sndngOrderReqstEDate;
|
||||
|
||||
private String srchMallCdType;
|
||||
|
||||
private String srchOrderInfoType;
|
||||
|
||||
private String srchOrdrText;
|
||||
|
||||
private String srchPurchsCd;
|
||||
|
||||
private String srchVisitTrgterAt;
|
||||
|
||||
private String srchGoodsType;
|
||||
|
||||
private String srchVisitType;
|
||||
|
||||
private String srchAllimStatus;
|
||||
|
||||
private String srchAlimType;
|
||||
|
||||
private String srchSndngType;
|
||||
|
||||
private LocalDate sndngAllimReqstSDate;
|
||||
|
||||
private LocalDate sndngAllimReqstEDate;
|
||||
|
||||
private String srchAllimText;
|
||||
|
||||
private String srchAlimInfoType;
|
||||
|
||||
private Integer puriAllimSeq;
|
||||
}
|
||||
Reference in New Issue
Block a user