|
@@ -1,27 +1,45 @@
|
|
|
package com.style24.admin.biz.web;
|
|
package com.style24.admin.biz.web;
|
|
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
+import java.util.Collection;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.core.env.Environment;
|
|
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
+
|
|
|
import com.fasterxml.jackson.core.type.TypeReference;
|
|
import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
-import com.gagaframework.web.parameter.GagaMap;
|
|
|
|
|
-import com.gagaframework.web.rest.server.GagaResponse;
|
|
|
|
|
-import com.style24.admin.biz.service.*;
|
|
|
|
|
|
|
+import com.style24.admin.biz.service.TsaBusinessService;
|
|
|
|
|
+import com.style24.admin.biz.service.TsaCommonService;
|
|
|
|
|
+import com.style24.admin.biz.service.TsaMarketingService;
|
|
|
|
|
+import com.style24.admin.biz.service.TsaRendererService;
|
|
|
|
|
+import com.style24.admin.biz.service.TsaSystemService;
|
|
|
import com.style24.admin.support.controller.TsaBaseController;
|
|
import com.style24.admin.support.controller.TsaBaseController;
|
|
|
import com.style24.admin.support.security.session.TsaSession;
|
|
import com.style24.admin.support.security.session.TsaSession;
|
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
import com.style24.core.support.message.TscMessageByLocale;
|
|
|
import com.style24.persistence.TsaPageRequest;
|
|
import com.style24.persistence.TsaPageRequest;
|
|
|
-import com.style24.persistence.domain.*;
|
|
|
|
|
|
|
+import com.style24.persistence.domain.CommonCode;
|
|
|
|
|
+import com.style24.persistence.domain.Coupon;
|
|
|
|
|
+import com.style24.persistence.domain.FreeGoodsPromotion;
|
|
|
|
|
+import com.style24.persistence.domain.MoreBetter;
|
|
|
|
|
+import com.style24.persistence.domain.MoreBetterBurden;
|
|
|
|
|
+import com.style24.persistence.domain.MoreBetterGoods;
|
|
|
|
|
+import com.style24.persistence.domain.MoreBetterSection;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
-import org.springframework.core.env.Environment;
|
|
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
|
|
-import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
-import java.lang.reflect.Array;
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
|
|
-import java.util.Collection;
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
|
|
+import com.gagaframework.web.parameter.GagaMap;
|
|
|
|
|
+import com.gagaframework.web.rest.server.GagaResponse;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 마케팅 Controller
|
|
* 마케팅 Controller
|
|
|
* @author xodud1202
|
|
* @author xodud1202
|
|
@@ -76,7 +94,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
public GagaMap getFreeGoodsPromotionList(@RequestBody FreeGoodsPromotion param) {
|
|
public GagaMap getFreeGoodsPromotionList(@RequestBody FreeGoodsPromotion param) {
|
|
|
GagaMap result = new GagaMap();
|
|
GagaMap result = new GagaMap();
|
|
|
|
|
|
|
|
- List<FreeGoodsPromotion> marketingList = (ArrayList<FreeGoodsPromotion>) marketingService.getFreeGoodsPromotionList(param);
|
|
|
|
|
|
|
+ List<FreeGoodsPromotion> marketingList = (ArrayList<FreeGoodsPromotion>)marketingService.getFreeGoodsPromotionList(param);
|
|
|
|
|
|
|
|
param.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
param.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
|
param.setPageable(new TsaPageRequest(param.getPageNo() - 1, param.getPageSize()));
|
|
param.setPageable(new TsaPageRequest(param.getPageNo() - 1, param.getPageSize()));
|
|
@@ -88,7 +106,6 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 사은품 프로모션 등록 팝업창
|
|
* 사은품 프로모션 등록 팝업창
|
|
|
* @param param
|
|
* @param param
|
|
@@ -111,7 +128,6 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
return mav;
|
|
return mav;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/* // xodud1202 진행 */
|
|
/* // xodud1202 진행 */
|
|
|
|
|
|
|
|
/* JSM 진행 */
|
|
/* JSM 진행 */
|
|
@@ -121,15 +137,15 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
* @since 2020-12-21
|
|
* @since 2020-12-21
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/coupon/form")
|
|
@GetMapping("/coupon/form")
|
|
|
- public ModelAndView couponListForm(){
|
|
|
|
|
|
|
+ public ModelAndView couponListForm() {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
|
|
// 쿠폰 유형 조회
|
|
// 쿠폰 유형 조회
|
|
|
- mav.addObject("cpnTypeList" , rendererService.getCommonCodeList("G230"));
|
|
|
|
|
|
|
+ mav.addObject("cpnTypeList", rendererService.getCommonCodeList("G230"));
|
|
|
// 할인 유형 조회
|
|
// 할인 유형 조회
|
|
|
- mav.addObject("dcWayList" , rendererService.getCommonCodeList("G240"));
|
|
|
|
|
|
|
+ mav.addObject("dcWayList", rendererService.getCommonCodeList("G240"));
|
|
|
// 사이트 조회
|
|
// 사이트 조회
|
|
|
- mav.addObject("siteCdList" , rendererService.getCommonCodeList("G000"));
|
|
|
|
|
|
|
+ mav.addObject("siteCdList", rendererService.getCommonCodeList("G000"));
|
|
|
|
|
|
|
|
mav.setViewName("marketing/CouponListForm");
|
|
mav.setViewName("marketing/CouponListForm");
|
|
|
|
|
|
|
@@ -145,8 +161,8 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/coupon/list")
|
|
@PostMapping("/coupon/list")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public GagaMap getCouponList(@RequestBody Coupon param){
|
|
|
|
|
- GagaMap result = new GagaMap();
|
|
|
|
|
|
|
+ public GagaMap getCouponList(@RequestBody Coupon param) {
|
|
|
|
|
+ GagaMap result = new GagaMap();
|
|
|
|
|
|
|
|
ArrayList<Coupon> cpnList = marketingService.getCouponList(param);
|
|
ArrayList<Coupon> cpnList = marketingService.getCouponList(param);
|
|
|
int cpnTotCnt = marketingService.getCouponListCnt(param);
|
|
int cpnTotCnt = marketingService.getCouponListCnt(param);
|
|
@@ -155,9 +171,9 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
param.setPageable(new TsaPageRequest(param.getPageNo() - 1, param.getPageSize()));
|
|
param.setPageable(new TsaPageRequest(param.getPageNo() - 1, param.getPageSize()));
|
|
|
param.getPageable().setTotalCount(cpnTotCnt);
|
|
param.getPageable().setTotalCount(cpnTotCnt);
|
|
|
|
|
|
|
|
- result.set("pageing" , param);
|
|
|
|
|
- result.set("cpnTotCnt" , cpnTotCnt);
|
|
|
|
|
- result.set("cpnList" , cpnList);
|
|
|
|
|
|
|
+ result.set("pageing", param);
|
|
|
|
|
+ result.set("cpnTotCnt", cpnTotCnt);
|
|
|
|
|
+ result.set("cpnList", cpnList);
|
|
|
|
|
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
@@ -176,10 +192,10 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
|
|
// 일시 시 리스트 세팅
|
|
// 일시 시 리스트 세팅
|
|
|
Collection<CommonCode> hhList = new ArrayList<CommonCode>();
|
|
Collection<CommonCode> hhList = new ArrayList<CommonCode>();
|
|
|
- for(int i = 0; i < 24; i++) {
|
|
|
|
|
|
|
+ for (int i = 0; i < 24; i++) {
|
|
|
num = "";
|
|
num = "";
|
|
|
CommonCode temp = new CommonCode();
|
|
CommonCode temp = new CommonCode();
|
|
|
- if(i < 10) {
|
|
|
|
|
|
|
+ if (i < 10) {
|
|
|
num = "0" + i;
|
|
num = "0" + i;
|
|
|
} else {
|
|
} else {
|
|
|
num = String.valueOf(i);
|
|
num = String.valueOf(i);
|
|
@@ -190,44 +206,44 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
mav.addObject("goodsStatList", rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
mav.addObject("goodsStatList", rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
|
|
|
|
|
|
temp.setCd(num);
|
|
temp.setCd(num);
|
|
|
- temp.setCdNm(num+"시");
|
|
|
|
|
|
|
+ temp.setCdNm(num + "시");
|
|
|
|
|
|
|
|
hhList.add(temp);
|
|
hhList.add(temp);
|
|
|
}
|
|
}
|
|
|
// 일시 분 리스트 세팅
|
|
// 일시 분 리스트 세팅
|
|
|
Collection<CommonCode> mmList = new ArrayList<CommonCode>();
|
|
Collection<CommonCode> mmList = new ArrayList<CommonCode>();
|
|
|
- for(int i = 0 ; i < 60; i++) {
|
|
|
|
|
|
|
+ for (int i = 0; i < 60; i++) {
|
|
|
num = "";
|
|
num = "";
|
|
|
CommonCode temp = new CommonCode();
|
|
CommonCode temp = new CommonCode();
|
|
|
- if(i < 10) {
|
|
|
|
|
|
|
+ if (i < 10) {
|
|
|
num = "0" + i;
|
|
num = "0" + i;
|
|
|
} else {
|
|
} else {
|
|
|
num = String.valueOf(i);
|
|
num = String.valueOf(i);
|
|
|
}
|
|
}
|
|
|
temp.setCd(num);
|
|
temp.setCd(num);
|
|
|
- temp.setCdNm(num+"분");
|
|
|
|
|
|
|
+ temp.setCdNm(num + "분");
|
|
|
|
|
|
|
|
mmList.add(temp);
|
|
mmList.add(temp);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 쿠폰 유형 조회
|
|
// 쿠폰 유형 조회
|
|
|
- mav.addObject("cpnTypeList" , rendererService.getCommonCodeList("G230"));
|
|
|
|
|
|
|
+ mav.addObject("cpnTypeList", rendererService.getCommonCodeList("G230"));
|
|
|
// 사용가능 고객구분 조회
|
|
// 사용가능 고객구분 조회
|
|
|
mav.addObject("usableCustGbList", rendererService.getCommonCodeList("G100"));
|
|
mav.addObject("usableCustGbList", rendererService.getCommonCodeList("G100"));
|
|
|
// 사용가능 고객등급 조회
|
|
// 사용가능 고객등급 조회
|
|
|
mav.addObject("usableCustGradeList", rendererService.getCommonCodeList("G110"));
|
|
mav.addObject("usableCustGradeList", rendererService.getCommonCodeList("G110"));
|
|
|
// 사이트코드 조회
|
|
// 사이트코드 조회
|
|
|
- mav.addObject("siteCdList" , rendererService.getCommonCodeList("G000"));
|
|
|
|
|
|
|
+ mav.addObject("siteCdList", rendererService.getCommonCodeList("G000"));
|
|
|
// 재발급 여부 조회
|
|
// 재발급 여부 조회
|
|
|
- mav.addObject("reissuanceList" , rendererService.getCommonCodeList("G231"));
|
|
|
|
|
|
|
+ mav.addObject("reissuanceList", rendererService.getCommonCodeList("G231"));
|
|
|
// 할인방식 조회
|
|
// 할인방식 조회
|
|
|
- mav.addObject("dcWayList" , rendererService.getCommonCodeList("G240"));
|
|
|
|
|
|
|
+ mav.addObject("dcWayList", rendererService.getCommonCodeList("G240"));
|
|
|
// 쿠폰다운로드 방식 조회
|
|
// 쿠폰다운로드 방식 조회
|
|
|
- mav.addObject("dnGbList" , rendererService.getCommonCodeList("G058"));
|
|
|
|
|
|
|
+ mav.addObject("dnGbList", rendererService.getCommonCodeList("G058"));
|
|
|
// 시간 분 리스트 세팅
|
|
// 시간 분 리스트 세팅
|
|
|
- mav.addObject("mmList" , mmList);
|
|
|
|
|
|
|
+ mav.addObject("mmList", mmList);
|
|
|
// 시간 시 리스트 세팅
|
|
// 시간 시 리스트 세팅
|
|
|
- mav.addObject("hhList" , hhList);
|
|
|
|
|
|
|
+ mav.addObject("hhList", hhList);
|
|
|
|
|
|
|
|
mav.setViewName("marketing/CouponCreatePopupForm");
|
|
mav.setViewName("marketing/CouponCreatePopupForm");
|
|
|
return mav;
|
|
return mav;
|
|
@@ -258,7 +274,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
public GagaMap getMorebetterList(@RequestBody MoreBetter param) {
|
|
public GagaMap getMorebetterList(@RequestBody MoreBetter param) {
|
|
|
GagaMap result = new GagaMap();
|
|
GagaMap result = new GagaMap();
|
|
|
|
|
|
|
|
- List<MoreBetter> tmtbList = (ArrayList<MoreBetter>) marketingService.getMorebetterList(param);
|
|
|
|
|
|
|
+ List<MoreBetter> tmtbList = (ArrayList<MoreBetter>)marketingService.getMorebetterList(param);
|
|
|
|
|
|
|
|
param.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
param.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
|
param.setPageable(new TsaPageRequest(param.getPageNo() - 1, param.getPageSize()));
|
|
param.setPageable(new TsaPageRequest(param.getPageNo() - 1, param.getPageSize()));
|
|
@@ -286,23 +302,23 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
// 상품상태 : 등록일때는 '대기'
|
|
// 상품상태 : 등록일때는 '대기'
|
|
|
String[] exceptCds = {"G008_00"};
|
|
String[] exceptCds = {"G008_00"};
|
|
|
mav.addObject("goodsStatList", rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
mav.addObject("goodsStatList", rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
|
- log.info("CHECK param goodsStatList>>"+rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
|
|
|
|
|
+ log.info("CHECK param goodsStatList>>" + rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
|
|
|
|
|
|
// 할인구간 목록
|
|
// 할인구간 목록
|
|
|
mav.addObject("sectionGbList", rendererService.getAvailCommonCodeList("G810"));
|
|
mav.addObject("sectionGbList", rendererService.getAvailCommonCodeList("G810"));
|
|
|
- log.info("CHECK param sectionGbList>>"+rendererService.getAvailCommonCodeList("G810"));
|
|
|
|
|
|
|
+ log.info("CHECK param sectionGbList>>" + rendererService.getAvailCommonCodeList("G810"));
|
|
|
// 할인구분 목록
|
|
// 할인구분 목록
|
|
|
mav.addObject("dcWayList", rendererService.getAvailCommonCodeList("G240"));
|
|
mav.addObject("dcWayList", rendererService.getAvailCommonCodeList("G240"));
|
|
|
- log.info("CHECK param dcWayList>>"+rendererService.getAvailCommonCodeList("G240"));
|
|
|
|
|
|
|
+ log.info("CHECK param dcWayList>>" + rendererService.getAvailCommonCodeList("G240"));
|
|
|
|
|
|
|
|
// 적용 상품구분 목록
|
|
// 적용 상품구분 목록
|
|
|
- String[] exceptGoodsCds = {"G800_30","G800_40"};
|
|
|
|
|
|
|
+ String[] exceptGoodsCds = {"G800_30", "G800_40"};
|
|
|
mav.addObject("applyGoodsGbList", rendererService.getCommonCodeList("G800", "Y", exceptGoodsCds));
|
|
mav.addObject("applyGoodsGbList", rendererService.getCommonCodeList("G800", "Y", exceptGoodsCds));
|
|
|
- log.info("CHECK param applyGoodsGbList>>"+rendererService.getCommonCodeList("G800", "Y", exceptGoodsCds));
|
|
|
|
|
|
|
+ log.info("CHECK param applyGoodsGbList>>" + rendererService.getCommonCodeList("G800", "Y", exceptGoodsCds));
|
|
|
|
|
|
|
|
// 제외 상품구분 목록
|
|
// 제외 상품구분 목록
|
|
|
mav.addObject("exceptGoodsGbList", rendererService.getAvailCommonCodeList("G800"));
|
|
mav.addObject("exceptGoodsGbList", rendererService.getAvailCommonCodeList("G800"));
|
|
|
- log.info("CHECK param exceptGoodsGbList>>"+rendererService.getAvailCommonCodeList("G800"));
|
|
|
|
|
|
|
+ log.info("CHECK param exceptGoodsGbList>>" + rendererService.getAvailCommonCodeList("G800"));
|
|
|
|
|
|
|
|
// 이것도 리스트 받아와서 바꿔야함 ㅠㅠ
|
|
// 이것도 리스트 받아와서 바꿔야함 ㅠㅠ
|
|
|
String tmtbStat = "G232_10";
|
|
String tmtbStat = "G232_10";
|
|
@@ -310,11 +326,11 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
|
|
//tmtb sq 자동생성 추가해야함
|
|
//tmtb sq 자동생성 추가해야함
|
|
|
Integer tmtbSq;
|
|
Integer tmtbSq;
|
|
|
- tmtbSq = commonService.getNextSequence("SEQ_TMTB");
|
|
|
|
|
|
|
+ tmtbSq = commonService.getNextSequence("SEQ_TMTB");
|
|
|
tmtb.setTmtbSq(tmtbSq);
|
|
tmtb.setTmtbSq(tmtbSq);
|
|
|
|
|
|
|
|
mav.addObject("params", tmtb);
|
|
mav.addObject("params", tmtb);
|
|
|
- log.info("CHECK param tmtbSq>>"+tmtb.getTmtbSq());
|
|
|
|
|
|
|
+ log.info("CHECK param tmtbSq>>" + tmtb.getTmtbSq());
|
|
|
mav.setViewName("marketing/MorebetterRegForm");
|
|
mav.setViewName("marketing/MorebetterRegForm");
|
|
|
return mav;
|
|
return mav;
|
|
|
}
|
|
}
|
|
@@ -397,7 +413,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- log.info("tmtb::"+tmtb);
|
|
|
|
|
|
|
+ log.info("tmtb::" + tmtb);
|
|
|
|
|
|
|
|
tmtb.setSupplyCompListNew(tmtbSupplyCompList);
|
|
tmtb.setSupplyCompListNew(tmtbSupplyCompList);
|
|
|
tmtb.setBrandListNew(tmtbBrandList);
|
|
tmtb.setBrandListNew(tmtbBrandList);
|
|
@@ -410,6 +426,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 다다익선 할인구간 삭제
|
|
* 다다익선 할인구간 삭제
|
|
|
*
|
|
*
|
|
@@ -428,4 +445,53 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* // CSB 진행 */
|
|
/* // CSB 진행 */
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 쿠폰조회 팝업
|
|
|
|
|
+ * @param returnCode - 반환할코드. 필수
|
|
|
|
|
+ * @param returnName - 반환할명칭. 필수
|
|
|
|
|
+ * @param cpnNm - 쿠폰명. 옵션
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @author gagamel
|
|
|
|
|
+ * @since 2021. 1. 8
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/coupon/retrieve/form")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public ModelAndView couponRetrieveForm(@RequestParam(value = "returnCode") String returnCode, @RequestParam(value = "returnName") String returnName, @RequestParam(value = "cpnNm", required = false) String cpnNm) {
|
|
|
|
|
+ ModelAndView mav = new ModelAndView();
|
|
|
|
|
+
|
|
|
|
|
+ mav.addObject("returnCode", returnCode);
|
|
|
|
|
+ mav.addObject("returnName", returnName);
|
|
|
|
|
+ mav.addObject("cpnNm", StringUtils.defaultString(cpnNm, ""));
|
|
|
|
|
+
|
|
|
|
|
+ // 사이트 목록
|
|
|
|
|
+ mav.addObject("siteList", rendererService.getAvailCommonCodeList("G000"));
|
|
|
|
|
+
|
|
|
|
|
+ // 사용가능고객구분 목록
|
|
|
|
|
+ mav.addObject("usableCustGbList", rendererService.getAvailCommonCodeList("G100"));
|
|
|
|
|
+
|
|
|
|
|
+ // 쿠폰유형 목록
|
|
|
|
|
+ mav.addObject("cpnTypeList", rendererService.getAvailCommonCodeList("G230"));
|
|
|
|
|
+
|
|
|
|
|
+ // 할인방식 목록
|
|
|
|
|
+ mav.addObject("dcWayList", rendererService.getAvailCommonCodeList("G240"));
|
|
|
|
|
+
|
|
|
|
|
+ mav.setViewName("marketing/CouponRetrieveForm");
|
|
|
|
|
+
|
|
|
|
|
+ return mav;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 쿠폰조회 목록
|
|
|
|
|
+ * @param coupon - 쿠폰 정보
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @author gagamel
|
|
|
|
|
+ * @since 2021. 1. 8
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("/coupon/retrieve/list")
|
|
|
|
|
+ @ResponseBody
|
|
|
|
|
+ public Collection<Coupon> getCouponRetrieveList(@RequestBody Coupon coupon) {
|
|
|
|
|
+ return marketingService.getCouponRetrieveList(coupon);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|