|
|
@@ -6,9 +6,7 @@ import java.util.ArrayList;
|
|
|
import java.util.Calendar;
|
|
|
import java.util.Collection;
|
|
|
import java.util.Date;
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.Iterator;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -24,12 +22,6 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
-import com.gagaframework.excel.GagaExcelUtil;
|
|
|
-import com.gagaframework.web.parameter.GagaMap;
|
|
|
-import com.gagaframework.web.rest.server.GagaResponse;
|
|
|
-import com.gagaframework.web.rest.server.GagaResponseStatus;
|
|
|
-import com.gagaframework.web.util.GagaDateUtil;
|
|
|
-import com.gagaframework.web.util.GagaFileUtil;
|
|
|
import com.style24.admin.biz.service.TsaCardPromotionService;
|
|
|
import com.style24.admin.biz.service.TsaCommonService;
|
|
|
import com.style24.admin.biz.service.TsaFreegiftPromotionService;
|
|
|
@@ -77,6 +69,13 @@ import com.style24.persistence.domain.User;
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
+import com.gagaframework.excel.GagaExcelUtil;
|
|
|
+import com.gagaframework.web.parameter.GagaMap;
|
|
|
+import com.gagaframework.web.rest.server.GagaResponse;
|
|
|
+import com.gagaframework.web.rest.server.GagaResponseStatus;
|
|
|
+import com.gagaframework.web.util.GagaDateUtil;
|
|
|
+import com.gagaframework.web.util.GagaFileUtil;
|
|
|
+
|
|
|
/**
|
|
|
* 마케팅 Controller
|
|
|
* @author xodud1202
|
|
|
@@ -506,7 +505,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 쿠폰 등록 팝업 화면
|
|
|
* @return ModelAndView
|
|
|
@@ -536,7 +535,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
hhList.add(temp);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 일시 분 리스트 세팅
|
|
|
Collection<CommonCode> mmList = new ArrayList<CommonCode>();
|
|
|
for (int i = 0; i < 60; i++) {
|
|
|
@@ -555,41 +554,41 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
mav.addObject("mmList", mmList); // 시간 분 리스트 세팅
|
|
|
mav.addObject("hhList", hhList); // 시간 시 리스트 세팅
|
|
|
-
|
|
|
+
|
|
|
// 상품상태
|
|
|
String[] exceptCds = {"G008_00"};
|
|
|
mav.addObject("goodsStatList", rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
|
-
|
|
|
+
|
|
|
mav.addObject("ibSupplyCompList", rendererService.getSupplyCompanyList("", "N")); // 입점업체 조회
|
|
|
-
|
|
|
+
|
|
|
// 할인 쿠폰 코드 조회
|
|
|
String[] exceptG233 = {"G233_30"};
|
|
|
mav.addObject("dcCdList", rendererService.getCommonCodeList("G233", "Y", exceptG233));
|
|
|
-
|
|
|
+
|
|
|
mav.addObject("formalGbList", rendererService.getCommonCodeList("G009")); // 정상/이월 조회
|
|
|
mav.addObject("cateGbList", rendererService.getCommonCodeList("G032")); // 카테고리 구분 조회
|
|
|
mav.addObject("selfBrandList", rendererService.getSelfBrandList()); // 자사 브랜드 조회
|
|
|
mav.addObject("siteCdList", rendererService.getCommonCodeList("G000")); // 사이트코드 조회
|
|
|
mav.addObject("cpnStatList", rendererService.getCommonCodeList("G232")); // 쿠폰상태 조회
|
|
|
mav.addObject("cpnTypeList", rendererService.getCommonCodeList("G230", "Y")); // 쿠폰 유형 조회
|
|
|
-
|
|
|
+
|
|
|
// 사용가능 고객구분 조회
|
|
|
String[] exceptCds1 = {"G100_00"};
|
|
|
mav.addObject("usableCustGbList", rendererService.getCommonCodeList("G100", "Y", exceptCds1));
|
|
|
-
|
|
|
+
|
|
|
mav.addObject("usableCustGradeList", rendererService.getCommonCodeList("G110")); // 사용가능 고객등급 조회
|
|
|
mav.addObject("reissuanceList", rendererService.getCommonCodeList("G231")); // 재발급 여부 조회
|
|
|
mav.addObject("dcWayList", rendererService.getCommonCodeList("G240")); // 할인방식 조회
|
|
|
mav.addObject("dnGbList", rendererService.getCommonCodeList("G058")); // 쿠폰다운로드 방식 조회
|
|
|
-
|
|
|
+
|
|
|
// 결제수단 조회
|
|
|
String[] exceptCds2 = {"INICIS", "ISTYLE", "NAVER_ORDER", "NICE"};
|
|
|
mav.addObject("payTypeList", rendererService.getCommonCodeList("G015", "Y", exceptCds2));
|
|
|
-
|
|
|
+
|
|
|
mav.addObject("upperAfLinkCdList", rendererService.getCommonCodeList("G053")); // 상위제휴채널 조회
|
|
|
mav.addObject("limitedTimeCpnList", new Coupon()); // 선착순쿠폰 조회
|
|
|
mav.addObject("channelList", rendererService.getCommonCodeList("G053", "Y")); // 제휴채널 조회
|
|
|
-
|
|
|
+
|
|
|
// 이미 쿠폰 아이디가 있으면 적용대상 조회
|
|
|
if (mode.equals("U")) {
|
|
|
issueCnt = coreCouponService.getCouponIssueCnt(cpnId);
|
|
|
@@ -607,14 +606,14 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
mav.addObject("limitedTimeCpnList", coreCouponService.getLimitedTimeCouponList(cpnId)); // 선착순쿠폰 조회
|
|
|
mav.addObject("afChannelList", coreCouponService.getCouponAfChannelList(cpnId)); // 등록했던 제휴채널
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
mav.addObject("mode", mode);
|
|
|
mav.addObject("issueCnt", issueCnt);
|
|
|
|
|
|
mav.setViewName("marketing/CouponPopupForm");
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 공급업체목록으로 브랜드정보목록 조회
|
|
|
* @return ModelAndView
|
|
|
@@ -625,14 +624,14 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
@ResponseBody
|
|
|
public GagaMap getSupplyCompCdAndBrandList(@RequestBody Coupon coupon) {
|
|
|
GagaMap result = new GagaMap();
|
|
|
-
|
|
|
+
|
|
|
Collection<Coupon> brandList = coreCouponService.getSupplyCompCdAndBrandCdList(coupon);
|
|
|
-
|
|
|
+
|
|
|
result.set("returnList", brandList);
|
|
|
-
|
|
|
+
|
|
|
return result;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 브랜드목록으로 공급업체정보목록 조회
|
|
|
* @return ModelAndView
|
|
|
@@ -643,10 +642,10 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
@ResponseBody
|
|
|
public GagaMap getBrandCdAndSupplyCompList(@RequestBody Coupon coupon) {
|
|
|
GagaMap result = new GagaMap();
|
|
|
-
|
|
|
+
|
|
|
Collection<Coupon> supplyCompList = coreCouponService.getBrandCdAndSupplyCompList(coupon);
|
|
|
result.set("returnList", supplyCompList);
|
|
|
-
|
|
|
+
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
@@ -661,9 +660,9 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
public ModelAndView couponCreatePopup(@RequestParam(value = "mode") String mode, @RequestParam(value = "cpnId", required = false) Integer cpnId) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
int issueCnt = 0;
|
|
|
-
|
|
|
+
|
|
|
String num = "";
|
|
|
-
|
|
|
+
|
|
|
// 일시 시 리스트 세팅
|
|
|
Collection<CommonCode> hhList = new ArrayList<CommonCode>();
|
|
|
for (int i = 0; i < 24; i++) {
|
|
|
@@ -680,7 +679,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
hhList.add(temp);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 일시 분 리스트 세팅
|
|
|
Collection<CommonCode> mmList = new ArrayList<CommonCode>();
|
|
|
for (int i = 0; i < 60; i++) {
|
|
|
@@ -696,58 +695,58 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
mmList.add(temp);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 시간 분 리스트 세팅
|
|
|
- mav.addObject("mmList" , mmList);
|
|
|
+ mav.addObject("mmList", mmList);
|
|
|
// 시간 시 리스트 세팅
|
|
|
- mav.addObject("hhList" , hhList);
|
|
|
+ mav.addObject("hhList", hhList);
|
|
|
// 쿠폰상태 조회
|
|
|
- mav.addObject("cpnStatList" , rendererService.getCommonCodeList("G232"));
|
|
|
+ mav.addObject("cpnStatList", rendererService.getCommonCodeList("G232"));
|
|
|
// 쿠폰 유형 조회
|
|
|
- mav.addObject("cpnTypeList" , rendererService.getCommonCodeList("G230", "Y"));
|
|
|
+ mav.addObject("cpnTypeList", rendererService.getCommonCodeList("G230", "Y"));
|
|
|
// 상품상태
|
|
|
String[] exceptCds = {"G008_00"};
|
|
|
- mav.addObject("goodsStatList" , rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
|
+ mav.addObject("goodsStatList", rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
|
// 입점업체 조회
|
|
|
- mav.addObject("ibSupplyCompList" , rendererService.getSupplyCompanyList("", "N"));
|
|
|
+ mav.addObject("ibSupplyCompList", rendererService.getSupplyCompanyList("", "N"));
|
|
|
// 정상/이월 조회
|
|
|
- mav.addObject("formalGbList" , rendererService.getCommonCodeList("G009"));
|
|
|
+ mav.addObject("formalGbList", rendererService.getCommonCodeList("G009"));
|
|
|
// 카테고리 구분 조회
|
|
|
- mav.addObject("cateGbList" , rendererService.getCommonCodeList("G032"));
|
|
|
+ mav.addObject("cateGbList", rendererService.getCommonCodeList("G032"));
|
|
|
// 자사 브랜드 조회
|
|
|
- mav.addObject("selfBrandList" , rendererService.getSelfBrandList());
|
|
|
+ mav.addObject("selfBrandList", rendererService.getSelfBrandList());
|
|
|
|
|
|
// 사용가능 고객구분 조회
|
|
|
String[] exceptCds1 = {"G100_00"};
|
|
|
- mav.addObject("usableCustGbList" , rendererService.getCommonCodeList("G100", "Y", exceptCds1));
|
|
|
+ mav.addObject("usableCustGbList", rendererService.getCommonCodeList("G100", "Y", exceptCds1));
|
|
|
// 사용가능 고객등급 조회
|
|
|
- mav.addObject("usableCustGradeList" , rendererService.getCommonCodeList("G110"));
|
|
|
+ mav.addObject("usableCustGradeList", rendererService.getCommonCodeList("G110"));
|
|
|
// 재발급 여부 조회
|
|
|
- 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"));
|
|
|
// 결제수단 조회
|
|
|
String[] exceptCds2 = {"INICIS", "ISTYLE", "NAVER_ORDER", "NICE"};
|
|
|
- mav.addObject("payTypeList" , rendererService.getCommonCodeList("G015", "Y", exceptCds2));
|
|
|
+ mav.addObject("payTypeList", rendererService.getCommonCodeList("G015", "Y", exceptCds2));
|
|
|
// 상위제휴채널 조회
|
|
|
- mav.addObject("upperAfLinkCdList" , rendererService.getCommonCodeList("G053"));
|
|
|
+ mav.addObject("upperAfLinkCdList", rendererService.getCommonCodeList("G053"));
|
|
|
// 선착순쿠폰 조회
|
|
|
- mav.addObject("limitedTimeCpnList" , new Coupon());
|
|
|
+ mav.addObject("limitedTimeCpnList", new Coupon());
|
|
|
|
|
|
// 사이트코드 조회
|
|
|
- mav.addObject("siteCdList" , rendererService.getCommonCodeList("G000"));
|
|
|
-
|
|
|
+ mav.addObject("siteCdList", rendererService.getCommonCodeList("G000"));
|
|
|
+
|
|
|
// 할인 쿠폰 코드 조회
|
|
|
//String[] exceptG233 = {"G233_30"};
|
|
|
- mav.addObject("dcCdList" , rendererService.getCommonCodeList("G233", "Y"));
|
|
|
-
|
|
|
+ mav.addObject("dcCdList", rendererService.getCommonCodeList("G233", "Y"));
|
|
|
+
|
|
|
// 이미 쿠폰 아이디가 있으면 적용대상 조회
|
|
|
Coupon cpnDetail = new Coupon();
|
|
|
if (cpnId != null && cpnId > 0) {
|
|
|
- issueCnt = coreCouponService.getCouponIssueCnt(cpnId);
|
|
|
- cpnDetail = coreCouponService.getCouponDetail(cpnId);
|
|
|
+ issueCnt = coreCouponService.getCouponIssueCnt(cpnId);
|
|
|
+ cpnDetail = coreCouponService.getCouponDetail(cpnId);
|
|
|
}
|
|
|
// 쿠폰상세조회
|
|
|
mav.addObject("cpnDetail", cpnDetail);
|
|
|
@@ -758,7 +757,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
mav.setViewName("marketing/CouponPopupForm_20210823");
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 쿠폰등록화면 즉시할인쿠폰
|
|
|
* @return ModelAndView
|
|
|
@@ -769,7 +768,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
@ResponseBody
|
|
|
public ModelAndView couponCreatePopupCpn1Info(@RequestBody Coupon cpn) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
-
|
|
|
+
|
|
|
// 2021.08.17 날짜관련정보설정
|
|
|
String num = "";
|
|
|
// 일시 시 리스트 세팅
|
|
|
@@ -788,7 +787,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
hhList.add(temp);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 일시 분 리스트 세팅
|
|
|
Collection<CommonCode> mmList = new ArrayList<CommonCode>();
|
|
|
for (int i = 0; i < 60; i++) {
|
|
|
@@ -805,24 +804,24 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
mmList.add(temp);
|
|
|
}
|
|
|
|
|
|
- mav.addObject("hhList" , hhList); // 시간 시 리스트 세팅
|
|
|
- mav.addObject("mmList" , mmList); // 시간 분 리스트 세팅
|
|
|
- mav.addObject("siteCdList" , rendererService.getCommonCodeList("G000")); // 사이트코드 조회
|
|
|
- mav.addObject("dcWayList" , rendererService.getCommonCodeList("G240")); // 할인방식 조회
|
|
|
-
|
|
|
+ mav.addObject("hhList", hhList); // 시간 시 리스트 세팅
|
|
|
+ mav.addObject("mmList", mmList); // 시간 분 리스트 세팅
|
|
|
+ mav.addObject("siteCdList", rendererService.getCommonCodeList("G000")); // 사이트코드 조회
|
|
|
+ mav.addObject("dcWayList", rendererService.getCommonCodeList("G240")); // 할인방식 조회
|
|
|
+
|
|
|
// 이미 쿠폰 아이디가 있으면 적용대상 조회
|
|
|
Coupon cpnDetail = new Coupon();
|
|
|
- int cpnId = cpn.getCpnId();
|
|
|
+ int cpnId = cpn.getCpnId();
|
|
|
if (cpnId > 0) {
|
|
|
cpnDetail = coreCouponService.getCouponDetail(cpnId);
|
|
|
}
|
|
|
// 쿠폰상세조회
|
|
|
mav.addObject("cpnDetail", cpnDetail);
|
|
|
mav.setViewName("marketing/CouponPopupCpn1Info");
|
|
|
-
|
|
|
+
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 쿠폰등록화면 상품쿠폰, 장바구니쿠폰, 배송비쿠폰
|
|
|
* @return ModelAndView
|
|
|
@@ -835,7 +834,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
// 2021.08.17 날짜관련정보설정
|
|
|
String num = "";
|
|
|
-
|
|
|
+
|
|
|
// 일시 시 리스트 세팅
|
|
|
Collection<CommonCode> hhList = new ArrayList<CommonCode>();
|
|
|
for (int i = 0; i < 24; i++) {
|
|
|
@@ -852,7 +851,7 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
hhList.add(temp);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 일시 분 리스트 세팅
|
|
|
Collection<CommonCode> mmList = new ArrayList<CommonCode>();
|
|
|
for (int i = 0; i < 60; i++) {
|
|
|
@@ -868,27 +867,27 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
|
|
|
mmList.add(temp);
|
|
|
}
|
|
|
-
|
|
|
- mav.addObject("hhList" , hhList); // 시간 시 리스트 세팅
|
|
|
- mav.addObject("mmList" , mmList); // 시간 분 리스트 세팅
|
|
|
-
|
|
|
- mav.addObject("siteCdList" , rendererService.getCommonCodeList("G000")); // 사이트코드 조회
|
|
|
- mav.addObject("dcWayList" , rendererService.getCommonCodeList("G240")); // 할인방식 조회
|
|
|
-
|
|
|
+
|
|
|
+ mav.addObject("hhList", hhList); // 시간 시 리스트 세팅
|
|
|
+ mav.addObject("mmList", mmList); // 시간 분 리스트 세팅
|
|
|
+
|
|
|
+ mav.addObject("siteCdList", rendererService.getCommonCodeList("G000")); // 사이트코드 조회
|
|
|
+ mav.addObject("dcWayList", rendererService.getCommonCodeList("G240")); // 할인방식 조회
|
|
|
+
|
|
|
String[] exceptCds1 = {"G100_00"};
|
|
|
- mav.addObject("usableCustGbList" , rendererService.getCommonCodeList("G100", "Y", exceptCds1)); // 사용가능 고객구분 조회
|
|
|
- mav.addObject("usableCustGradeList" , rendererService.getCommonCodeList("G110")); // 사용가능 고객등급 조회
|
|
|
- mav.addObject("dnGbList" , rendererService.getCommonCodeList("G058")); // 쿠폰다운로드 방식 조회
|
|
|
-
|
|
|
+ mav.addObject("usableCustGbList", rendererService.getCommonCodeList("G100", "Y", exceptCds1)); // 사용가능 고객구분 조회
|
|
|
+ mav.addObject("usableCustGradeList", rendererService.getCommonCodeList("G110")); // 사용가능 고객등급 조회
|
|
|
+ mav.addObject("dnGbList", rendererService.getCommonCodeList("G058")); // 쿠폰다운로드 방식 조회
|
|
|
+
|
|
|
String[] exceptCds2 = {"INICIS", "ISTYLE", "NAVER_ORDER", "NICE"};
|
|
|
- mav.addObject("payTypeList" , rendererService.getCommonCodeList("G015", "Y", exceptCds2)); // 결제수단 조회
|
|
|
-
|
|
|
+ mav.addObject("payTypeList", rendererService.getCommonCodeList("G015", "Y", exceptCds2)); // 결제수단 조회
|
|
|
+
|
|
|
// 이미 쿠폰 아이디가 있으면 적용대상 조회
|
|
|
Coupon cpnDetail = new Coupon();
|
|
|
- int cpnId = cpn.getCpnId();
|
|
|
+ int cpnId = cpn.getCpnId();
|
|
|
if (cpnId > 0) {
|
|
|
cpnDetail = coreCouponService.getCouponDetail(cpnId);
|
|
|
-
|
|
|
+
|
|
|
// 쿠폰사용가능고객구분 조회
|
|
|
mav.addObject("cpnCustGbList", coreCouponService.getCouponCustGbList(cpnId));
|
|
|
// 쿠폰사용가능고객등급 조회
|
|
|
@@ -898,11 +897,11 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
}
|
|
|
// 쿠폰상세조회
|
|
|
mav.addObject("cpnDetail", cpnDetail);
|
|
|
-
|
|
|
+
|
|
|
mav.setViewName("marketing/CouponPopupGoodsCpnInfo");
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 쿠폰등록화면 적용대상탭
|
|
|
* @return ModelAndView
|
|
|
@@ -914,12 +913,12 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
public ModelAndView couponCreatePopupApplyInfo(@RequestBody Coupon cpn) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
- mav.addObject("formalGbList" , rendererService.getCommonCodeList("G009")); // 정상/이월 조회
|
|
|
- mav.addObject("selfBrandList" , rendererService.getSelfBrandList()); // 자사 브랜드 조회
|
|
|
- mav.addObject("cateGbList" , rendererService.getCommonCodeList("G032")); // 카테고리 구분 조회
|
|
|
-
|
|
|
+ mav.addObject("formalGbList", rendererService.getCommonCodeList("G009")); // 정상/이월 조회
|
|
|
+ mav.addObject("selfBrandList", rendererService.getSelfBrandList()); // 자사 브랜드 조회
|
|
|
+ mav.addObject("cateGbList", rendererService.getCommonCodeList("G032")); // 카테고리 구분 조회
|
|
|
+
|
|
|
// 이미 쿠폰 아이디가 있으면 적용대상 조회
|
|
|
- int cpnId = cpn.getCpnId();
|
|
|
+ int cpnId = cpn.getCpnId();
|
|
|
if (cpnId > 0) {
|
|
|
// 쿠폰적용대상 - 공급업체 조회
|
|
|
mav.addObject("cpnDtlRefvalSupplyCompList", coreCouponService.getCouponRefvalSupplyCompList(cpnId));
|
|
|
@@ -932,12 +931,12 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
// 쿠폰적용대상 - 제외상품 조회
|
|
|
mav.addObject("cpnDtlRefvalExceptGoodsList", coreCouponService.getCouponRefvalGoodsList(cpnId, "G260_14"));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
mav.setViewName("marketing/CouponPopupApplyInfo");
|
|
|
-
|
|
|
+
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 쿠폰등록화면 입점업체분담율탭
|
|
|
* @return ModelAndView
|
|
|
@@ -948,19 +947,19 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
@ResponseBody
|
|
|
public ModelAndView couponCreatePopupBurdenInfo(@RequestBody Coupon cpn) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
-
|
|
|
+
|
|
|
// 이미 쿠폰 아이디가 있으면 적용대상 조회
|
|
|
- int cpnId = cpn.getCpnId();
|
|
|
+ int cpnId = cpn.getCpnId();
|
|
|
if (cpnId > 0) {
|
|
|
// 쿠폰 입점업체분담율 조회
|
|
|
mav.addObject("cpnDtlBurdenList", coreCouponService.getCouponBurdenList(cpnId));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
mav.setViewName("marketing/CouponPopupBurdenInfo");
|
|
|
-
|
|
|
+
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 쿠폰등록화면 제휴채널탭
|
|
|
* @return ModelAndView
|
|
|
@@ -971,22 +970,22 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
@ResponseBody
|
|
|
public ModelAndView couponCreatePopupAfChannelInfo(@RequestBody Coupon cpn) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
-
|
|
|
+
|
|
|
// 제휴채널 조회
|
|
|
mav.addObject("channelList", rendererService.getCommonCodeList("G053", "Y"));
|
|
|
-
|
|
|
+
|
|
|
// 이미 쿠폰 아이디가 있으면 적용대상 조회
|
|
|
- int cpnId = cpn.getCpnId();
|
|
|
+ int cpnId = cpn.getCpnId();
|
|
|
if (cpnId > 0) {
|
|
|
// 등록했던 제휴채널
|
|
|
mav.addObject("afChannelList", coreCouponService.getCouponAfChannelList(cpnId));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
mav.setViewName("marketing/CouponPopupAfChannelInfo");
|
|
|
-
|
|
|
+
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 쿠폰등록화면 선착순시간설정탭
|
|
|
* @return ModelAndView
|
|
|
@@ -997,19 +996,19 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
@ResponseBody
|
|
|
public ModelAndView couponCreatePopupLimitedTimeInfo(@RequestBody Coupon cpn) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
-
|
|
|
+
|
|
|
// 이미 쿠폰 아이디가 있으면 적용대상 조회
|
|
|
- int cpnId = cpn.getCpnId();
|
|
|
+ int cpnId = cpn.getCpnId();
|
|
|
if (cpnId > 0) {
|
|
|
// 선착순쿠폰 조회
|
|
|
mav.addObject("limitedTimeCpnList", coreCouponService.getLimitedTimeCouponList(cpnId));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
mav.setViewName("marketing/CouponPopupLimitedTimeInfo");
|
|
|
-
|
|
|
+
|
|
|
return mav;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 쿠폰등록화면 랜덤쿠폰탭
|
|
|
* @return ModelAndView
|
|
|
@@ -1020,16 +1019,16 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
@ResponseBody
|
|
|
public ModelAndView randomCpnInfo(@RequestBody Coupon cpn) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
-
|
|
|
+
|
|
|
// 이미 쿠폰 아이디가 있으면 적용대상 조회
|
|
|
- int cpnId = cpn.getCpnId();
|
|
|
+ int cpnId = cpn.getCpnId();
|
|
|
if (cpnId > 0) {
|
|
|
// 시리얼 및 난수 쿠폰 조회
|
|
|
mav.addObject("randomCpnList", coreCouponService.getRandomCouponInfo(cpnId));
|
|
|
}
|
|
|
|
|
|
mav.setViewName("marketing/CouponPopupRandomInfo");
|
|
|
-
|
|
|
+
|
|
|
return mav;
|
|
|
}
|
|
|
|
|
|
@@ -3181,4 +3180,5 @@ public class TsaMarketingController extends TsaBaseController {
|
|
|
socialService.saveSocialApply(social);
|
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
|
}
|
|
|
+
|
|
|
}
|