|
|
@@ -10,9 +10,12 @@ import com.style24.core.support.env.TscConstants;
|
|
|
import com.style24.core.support.session.TscSession;
|
|
|
import com.style24.core.support.util.CryptoUtils;
|
|
|
import com.style24.persistence.domain.Coupon;
|
|
|
+import com.style24.persistence.domain.CustContactHst;
|
|
|
+import com.style24.persistence.domain.CustGrade;
|
|
|
import com.style24.persistence.domain.Customer;
|
|
|
import com.style24.persistence.domain.CustomerSearch;
|
|
|
import com.style24.persistence.domain.Delivery;
|
|
|
+import com.style24.persistence.domain.GiftCard;
|
|
|
import com.style24.persistence.domain.Order;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -38,6 +41,8 @@ import com.style24.persistence.domain.Counsel;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
import com.gagaframework.web.rest.server.GagaResponse;
|
|
|
+import com.style24.persistence.domain.Point;
|
|
|
+import com.style24.persistence.domain.Review;
|
|
|
|
|
|
/**
|
|
|
* 고객 Controller
|
|
|
@@ -373,6 +378,8 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
// 포인트반영상태
|
|
|
mav.addObject("pntUploadStatList", rendererService.getCommonCodeList("G070"));
|
|
|
|
|
|
+ // 상품권유형
|
|
|
+ mav.addObject("giftCardOccurGbList", rendererService.getCommonCodeList("G074"));
|
|
|
|
|
|
mav.addObject("custNo", custNo);
|
|
|
|
|
|
@@ -658,80 +665,74 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 회원상세-1:1문의내역
|
|
|
+ * 회원상세-포인트
|
|
|
*
|
|
|
* @param custNo -고객일련번호
|
|
|
- * @return Collection<Counsel>
|
|
|
+ * @return TsaPoint
|
|
|
* @author jsshin
|
|
|
* @since 2021. 01. 21
|
|
|
*/
|
|
|
- @GetMapping("/counsel/list/{custNo}")
|
|
|
- @ResponseBody
|
|
|
- public Collection<Counsel> getCustomerCounselList(@PathVariable Integer custNo) {
|
|
|
- //return customerService.getCustomerCounselList(custNo);
|
|
|
- return null;
|
|
|
- }
|
|
|
+ // @GetMapping("/point/{custNo}")
|
|
|
+ // @ResponseBody
|
|
|
+ // public Point getCustomerPoint(@PathVariable Integer custNo) {
|
|
|
+ // return customerService.getCustomerPoint(custNo);
|
|
|
+ // }
|
|
|
|
|
|
/**
|
|
|
- * 회원상세-상품문의내역
|
|
|
+ * 회원상세-포인트내역
|
|
|
*
|
|
|
* @param custNo -고객일련번호
|
|
|
- * @return Collection<Counsel>
|
|
|
+ * @return Collection<TsaPoint>
|
|
|
* @author jsshin
|
|
|
* @since 2021. 01. 21
|
|
|
*/
|
|
|
- @GetMapping("/goodsQna/list/{custNo}")
|
|
|
+ @GetMapping("/point/list/{custNo}")
|
|
|
@ResponseBody
|
|
|
- public Collection<Counsel> getCustomerGoodsQnaList(@PathVariable Integer custNo) {
|
|
|
- //return customerService.getCustomerGoodsQnaList(custNo);
|
|
|
- return null;
|
|
|
+ public Collection<Point> getCustomerPointList(@PathVariable Integer custNo) {
|
|
|
+ return customerService.getCustomerPointList(custNo);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 회원상세-상품문의 상세화면
|
|
|
+ * 회원상세-1:1문의내역
|
|
|
*
|
|
|
- * @param counselSq -상담일련번호
|
|
|
- * @return ModelAndView
|
|
|
+ * @param custNo -고객일련번호
|
|
|
+ * @return Collection<Counsel>
|
|
|
* @author jsshin
|
|
|
* @since 2021. 01. 21
|
|
|
*/
|
|
|
- @GetMapping("/goodsQna/detail/form/{counselSq}")
|
|
|
- public ModelAndView goodsQnaDetailForm(@PathVariable String counselSq) {
|
|
|
- ModelAndView mav = new ModelAndView();
|
|
|
- // 문의상세
|
|
|
- //mav.addObject("goodsQna", customerService.getGoodsQnaDetail(counselSq));
|
|
|
- mav.setViewName("customer/GoodsQnaPopupForm");
|
|
|
- return mav;
|
|
|
+ @GetMapping("/giftcard/list/{custNo}")
|
|
|
+ @ResponseBody
|
|
|
+ public Collection<GiftCard> getCustomerGiftCardList(@PathVariable Integer custNo) {
|
|
|
+ return customerService.getCustomerGiftCardList(custNo);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
- * 회원상세-포인트
|
|
|
+ * 회원상세-1:1문의내역
|
|
|
*
|
|
|
* @param custNo -고객일련번호
|
|
|
- * @return TsaPoint
|
|
|
+ * @return Collection<Counsel>
|
|
|
* @author jsshin
|
|
|
* @since 2021. 01. 21
|
|
|
*/
|
|
|
-// @GetMapping("/point/{custNo}")
|
|
|
-// @ResponseBody
|
|
|
-// public Point getCustomerPoint(@PathVariable Integer custNo) {
|
|
|
-// return customerService.getCustomerPoint(custNo);
|
|
|
-// }
|
|
|
+ @GetMapping("/counsel/list/{custNo}")
|
|
|
+ @ResponseBody
|
|
|
+ public Collection<Counsel> getCustomerCounselList(@PathVariable Integer custNo) {
|
|
|
+ return customerService.getCustomerCounselList(custNo);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
- * 회원상세-포인트내역
|
|
|
+ * 회원상세-상품문의내역
|
|
|
*
|
|
|
* @param custNo -고객일련번호
|
|
|
- * @return Collection<TsaPoint>
|
|
|
+ * @return Collection<Counsel>
|
|
|
* @author jsshin
|
|
|
* @since 2021. 01. 21
|
|
|
*/
|
|
|
-// @GetMapping("/point/list/{custNo}")
|
|
|
-// @ResponseBody
|
|
|
-// public Collection<TsaPoint> getCustomerPointList(@PathVariable Integer custNo) {
|
|
|
-// return customerService.getCustomerPointList(custNo);
|
|
|
-// }
|
|
|
+ @GetMapping("/goodsQna/list/{custNo}")
|
|
|
+ @ResponseBody
|
|
|
+ public Collection<Counsel> getCustomerGoodsQnaList(@PathVariable Integer custNo) {
|
|
|
+ return customerService.getCustomerGoodsQnaList(custNo);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 회원상세-상품평내역
|
|
|
@@ -741,11 +742,11 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
* @author jsshin
|
|
|
* @since 2021. 01. 21
|
|
|
*/
|
|
|
-// @GetMapping("/review/list/{custNo}")
|
|
|
-// @ResponseBody
|
|
|
-// public Collection<Review> getCustomerReviewList(@PathVariable Integer custNo) {
|
|
|
-// return customerService.getCustomerReviewList(custNo);
|
|
|
-// }
|
|
|
+ @GetMapping("/review/list/{custNo}")
|
|
|
+ @ResponseBody
|
|
|
+ public Collection<Review> getCustomerReviewList(@PathVariable Integer custNo) {
|
|
|
+ return customerService.getCustomerReviewList(custNo);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 회원상세-회원등급변경이력
|
|
|
@@ -755,12 +756,11 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
* @author jsshin
|
|
|
* @since 2021. 01. 21
|
|
|
*/
|
|
|
-// @GetMapping("/change/grade/list/{custNo}")
|
|
|
-// @ResponseBody
|
|
|
-// public Collection<TsaCustomer> getCustomerChageGradeList(@PathVariable Integer custNo) {
|
|
|
-// return customerService.getCustomerChangeGradeList(custNo);
|
|
|
-// }
|
|
|
-
|
|
|
+ @GetMapping("/change/grade/list/{custNo}")
|
|
|
+ @ResponseBody
|
|
|
+ public Collection<CustGrade> getCustomerChageGradeList(@PathVariable Integer custNo) {
|
|
|
+ return customerService.getCustomerChangeGradeList(custNo);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 회원상세-회원접촉이력
|
|
|
@@ -772,9 +772,8 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
*/
|
|
|
@GetMapping("/contact/list/{custNo}")
|
|
|
@ResponseBody
|
|
|
- public Collection<Customer> getCustomerContactList(@PathVariable Integer custNo) {
|
|
|
- //return customerService.getCustomerContactList(custNo);
|
|
|
- return null;
|
|
|
+ public Collection<CustContactHst> getCustomerContactList(@PathVariable Integer custNo) {
|
|
|
+ return customerService.getCustomerContactList(custNo);
|
|
|
}
|
|
|
|
|
|
/**
|