|
|
@@ -2,6 +2,9 @@ package com.style24.admin.biz.web;
|
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
|
+import com.style24.admin.biz.service.TsaCustomerService;
|
|
|
+import com.style24.persistence.domain.Customer;
|
|
|
+import com.style24.persistence.domain.CustomerSearch;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
@@ -48,6 +51,9 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
@Autowired
|
|
|
private TscAnswerPhaseService ansPhaseService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TsaCustomerService customerService;
|
|
|
+
|
|
|
/**
|
|
|
* 1:1문의관리 화면
|
|
|
* @return
|
|
|
@@ -235,4 +241,45 @@ public class TsaCustomerController extends TsaBaseController {
|
|
|
return super.ok(message.getMessage("SUCC_0004"));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 활동회원
|
|
|
+ * @return ModelAndView
|
|
|
+ * @author jsshin
|
|
|
+ * @since 2020. 01. 12
|
|
|
+ */
|
|
|
+ @GetMapping("/active/list/form")
|
|
|
+ public ModelAndView customerActiveListForm() {
|
|
|
+ ModelAndView mav = new ModelAndView();
|
|
|
+
|
|
|
+ // 사이트 목록
|
|
|
+ mav.addObject("siteList", rendererService.getCommonCodeList("G000", "Y"));
|
|
|
+
|
|
|
+ // 회원 구분
|
|
|
+ mav.addObject("custGbList", rendererService.getCommonCodeList("G100", "Y"));
|
|
|
+
|
|
|
+ // 회원 등급
|
|
|
+ mav.addObject("custGradeList", rendererService.getCommonCodeList("G110", "Y"));
|
|
|
+
|
|
|
+ // 관리대상
|
|
|
+ mav.addObject("managedRsnList", rendererService.getCommonCodeList("G103", "Y"));
|
|
|
+
|
|
|
+ mav.setViewName("customer/CustomerActiveListForm");
|
|
|
+
|
|
|
+ return mav;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 활동회원 목록
|
|
|
+ * @param customerSearch - 검색조건
|
|
|
+ * @return Collection<Customer>
|
|
|
+ * @author jsshin
|
|
|
+ * @since 2020. 12. 24
|
|
|
+ */
|
|
|
+ @PostMapping("/active/list")
|
|
|
+ @ResponseBody
|
|
|
+ public Collection<Customer> getCustomerActiveList(@RequestBody CustomerSearch customerSearch) {
|
|
|
+ return customerService.getCustomerActiveList(customerSearch);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|