|
@@ -3,7 +3,6 @@ package com.style24.front.biz.service;
|
|
|
import java.io.File;
|
|
import java.io.File;
|
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
|
import java.util.Iterator;
|
|
import java.util.Iterator;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -11,8 +10,6 @@ import org.springframework.core.env.Environment;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
-import com.gagaframework.web.util.GagaDateUtil;
|
|
|
|
|
-import com.gagaframework.web.util.GagaFileUtil;
|
|
|
|
|
import com.style24.front.biz.dao.TsfCommonDao;
|
|
import com.style24.front.biz.dao.TsfCommonDao;
|
|
|
import com.style24.front.biz.dao.TsfPlanningDao;
|
|
import com.style24.front.biz.dao.TsfPlanningDao;
|
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
@@ -24,6 +21,9 @@ import com.style24.persistence.domain.Review;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
|
|
+import com.gagaframework.web.util.GagaDateUtil;
|
|
|
|
|
+import com.gagaframework.web.util.GagaFileUtil;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 기획전 Service
|
|
* 기획전 Service
|
|
|
*
|
|
*
|
|
@@ -42,7 +42,7 @@ public class TsfPlanningService {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TsfCommonDao commonDao;
|
|
private TsfCommonDao commonDao;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private Environment env;
|
|
private Environment env;
|
|
|
|
|
|
|
@@ -99,7 +99,7 @@ public class TsfPlanningService {
|
|
|
public Collection<Plan> getPlanningList(Plan plan) {
|
|
public Collection<Plan> getPlanningList(Plan plan) {
|
|
|
return planningDao.getPlanningList(plan);
|
|
return planningDao.getPlanningList(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 기획전 코너 상품 목록
|
|
* 기획전 코너 상품 목록
|
|
|
* @param plan - 기획전 정보
|
|
* @param plan - 기획전 정보
|
|
@@ -111,7 +111,6 @@ public class TsfPlanningService {
|
|
|
return planningDao.getPlanningCornerGoodsList(plan);
|
|
return planningDao.getPlanningCornerGoodsList(plan);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 접근 불가능한 기획전 메시지 조회
|
|
* 접근 불가능한 기획전 메시지 조회
|
|
|
* @param planSq - 기획전번호
|
|
* @param planSq - 기획전번호
|
|
@@ -120,42 +119,45 @@ public class TsfPlanningService {
|
|
|
* @since 2021. 3. 30
|
|
* @since 2021. 3. 30
|
|
|
*/
|
|
*/
|
|
|
public String getInaccessiblePlanningMessage(Integer planSq) {
|
|
public String getInaccessiblePlanningMessage(Integer planSq) {
|
|
|
- String msg = "";
|
|
|
|
|
|
|
+// String msg = "";
|
|
|
|
|
|
|
|
Plan plan = new Plan();
|
|
Plan plan = new Plan();
|
|
|
plan.setPlanSq(planSq);
|
|
plan.setPlanSq(planSq);
|
|
|
|
|
|
|
|
|
|
+ // 유효한 기획전 여부 조회
|
|
|
|
|
+ if ("N".equals(planningDao.getAvailPlanningYn(plan))) {
|
|
|
|
|
+ return "진행중인 기획전/이벤트가 아닙니다.";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 디바이스접근가능여부 조회
|
|
// 디바이스접근가능여부 조회
|
|
|
plan.setFrontGb(TsfSession.getFrontGb());
|
|
plan.setFrontGb(TsfSession.getFrontGb());
|
|
|
if ("N".equals(planningDao.getDeviceAccessibleYn(plan))) {
|
|
if ("N".equals(planningDao.getDeviceAccessibleYn(plan))) {
|
|
|
String frontGb = planningDao.getFrontAccessibleList(plan);
|
|
String frontGb = planningDao.getFrontAccessibleList(plan);
|
|
|
- msg = frontGb + "에서만 접근이 가능합니다.";
|
|
|
|
|
if ("M".equals(TsfSession.getFrontGb())) {
|
|
if ("M".equals(TsfSession.getFrontGb())) {
|
|
|
- msg = frontGb + "에서만 접근이 가능합니다.";
|
|
|
|
|
|
|
+ return frontGb + "에서만 접근이 가능합니다.";
|
|
|
} else if ("A".equals(TsfSession.getFrontGb())) {
|
|
} else if ("A".equals(TsfSession.getFrontGb())) {
|
|
|
- msg = frontGb + "에서만 접근이 가능합니다.";
|
|
|
|
|
|
|
+ return frontGb + "에서만 접근이 가능합니다.";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!TsfSession.isLogin()) {
|
|
if (!TsfSession.isLogin()) {
|
|
|
plan.setCustGrade("G110_60");
|
|
plan.setCustGrade("G110_60");
|
|
|
if ("N".equals(planningDao.getCustomerGradeAccessibleYn(plan))) {
|
|
if ("N".equals(planningDao.getCustomerGradeAccessibleYn(plan))) {
|
|
|
- msg = "로그인 후 이용 가능합니다.";
|
|
|
|
|
|
|
+ return "로그인 후 이용 가능합니다.";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (TsfSession.isLogin()) {
|
|
if (TsfSession.isLogin()) {
|
|
|
// 신규회원접근가능여부 조회
|
|
// 신규회원접근가능여부 조회
|
|
|
plan.setCustNo(TsfSession.getInfo().getCustNo());
|
|
plan.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
if ("N".equals(planningDao.getNewCustomerAccessibleYn(plan))) {
|
|
if ("N".equals(planningDao.getNewCustomerAccessibleYn(plan))) {
|
|
|
- msg = "신규회원만 접근 가능합니다.";
|
|
|
|
|
|
|
+ return "신규회원만 접근 가능합니다.";
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// 고객구분접근가능여부 조회
|
|
// 고객구분접근가능여부 조회
|
|
|
plan.setCustGb(TsfSession.getCustGb());
|
|
plan.setCustGb(TsfSession.getCustGb());
|
|
|
if ("N".equals(planningDao.getCustomerGubunAccessibleYn(plan))) {
|
|
if ("N".equals(planningDao.getCustomerGubunAccessibleYn(plan))) {
|
|
|
- msg = planningDao.getCustomerGubunAccessibleList(plan).getCustGb() + "만 접근이 가능합니다.";
|
|
|
|
|
|
|
+ return planningDao.getCustomerGubunAccessibleList(plan).getCustGb() + "만 접근이 가능합니다.";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String custGrade = "";
|
|
String custGrade = "";
|
|
@@ -165,12 +167,12 @@ public class TsfPlanningService {
|
|
|
Iterator<Plan> iter = planningDao.getCustomerGradeAccessibleList(plan).iterator();
|
|
Iterator<Plan> iter = planningDao.getCustomerGradeAccessibleList(plan).iterator();
|
|
|
while (iter.hasNext()) {
|
|
while (iter.hasNext()) {
|
|
|
custGrade += iter.next().getCustGrade();
|
|
custGrade += iter.next().getCustGrade();
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (iter.hasNext()) {
|
|
if (iter.hasNext()) {
|
|
|
custGrade += ", ";
|
|
custGrade += ", ";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- msg = custGrade+ " 회원만 접근 가능합니다.";
|
|
|
|
|
|
|
+ return custGrade + " 회원만 접근 가능합니다.";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -178,15 +180,14 @@ public class TsfPlanningService {
|
|
|
// 웹제휴채널접근가능여부 조회
|
|
// 웹제휴채널접근가능여부 조회
|
|
|
plan.setAfLinkCd(TsfSession.getAttribute("afLinkCd"));
|
|
plan.setAfLinkCd(TsfSession.getAttribute("afLinkCd"));
|
|
|
if ("N".equals(planningDao.getAfLinkAccessibleYn(plan))) {
|
|
if ("N".equals(planningDao.getAfLinkAccessibleYn(plan))) {
|
|
|
- //msg = commonDao.getAfLinkName(TsfSession.getAttribute("afLinkCd")) + " 채널만 접근 가능합니다.";
|
|
|
|
|
- msg = "제휴 채널을 통해서만 접근 가능합니다. ";
|
|
|
|
|
|
|
+// return commonDao.getAfLinkName(TsfSession.getAttribute("afLinkCd")) + " 채널만 접근 가능합니다.";
|
|
|
|
|
+ return "제휴 채널을 통해서만 접근 가능합니다.";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return msg;
|
|
|
|
|
|
|
+ return "";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 기획전 상세 정보
|
|
* 기획전 상세 정보
|
|
|
*
|
|
*
|
|
@@ -247,7 +248,7 @@ public class TsfPlanningService {
|
|
|
if (TsfSession.isLogin()) {
|
|
if (TsfSession.isLogin()) {
|
|
|
coupon.setCustNo(TsfSession.getInfo().getCustNo());
|
|
coupon.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
return planningDao.getPlanCouponInfo(coupon);
|
|
return planningDao.getPlanCouponInfo(coupon);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -262,7 +263,7 @@ public class TsfPlanningService {
|
|
|
public Collection<Plan> getPlanImageInfo(Plan plan) {
|
|
public Collection<Plan> getPlanImageInfo(Plan plan) {
|
|
|
return planningDao.getPlanImageInfo(plan);
|
|
return planningDao.getPlanImageInfo(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 기획전 템플릿 유의사항
|
|
* 기획전 템플릿 유의사항
|
|
|
*
|
|
*
|
|
@@ -286,7 +287,7 @@ public class TsfPlanningService {
|
|
|
public Collection<Plan> getPlanGoodsDisplayList(Plan plan) {
|
|
public Collection<Plan> getPlanGoodsDisplayList(Plan plan) {
|
|
|
return planningDao.getPlanGoodsDisplayList(plan);
|
|
return planningDao.getPlanGoodsDisplayList(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 기획전 코너 리스트
|
|
* 기획전 코너 리스트
|
|
|
*
|
|
*
|
|
@@ -295,7 +296,7 @@ public class TsfPlanningService {
|
|
|
* @author sowon
|
|
* @author sowon
|
|
|
* @date 2021. 3. 30
|
|
* @date 2021. 3. 30
|
|
|
*/
|
|
*/
|
|
|
- public Collection<Plan> getPlanCornerList(Plan plan){
|
|
|
|
|
|
|
+ public Collection<Plan> getPlanCornerList(Plan plan) {
|
|
|
return planningDao.getPlanCornerList(plan);
|
|
return planningDao.getPlanCornerList(plan);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -334,7 +335,7 @@ public class TsfPlanningService {
|
|
|
public Collection<Plan> getPlanEventList(Plan plan) {
|
|
public Collection<Plan> getPlanEventList(Plan plan) {
|
|
|
return planningDao.getPlanEventList(plan);
|
|
return planningDao.getPlanEventList(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 총알배송 상단 html 소스
|
|
* 총알배송 상단 html 소스
|
|
|
*
|
|
*
|
|
@@ -346,7 +347,7 @@ public class TsfPlanningService {
|
|
|
public Plan getShotDeliveryHtmlTop(Plan plan) {
|
|
public Plan getShotDeliveryHtmlTop(Plan plan) {
|
|
|
return planningDao.getShotDeliveryHtmlTop(plan);
|
|
return planningDao.getShotDeliveryHtmlTop(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 총알배송 하단 html 소스
|
|
* 총알배송 하단 html 소스
|
|
|
*
|
|
*
|
|
@@ -358,8 +359,7 @@ public class TsfPlanningService {
|
|
|
public Plan getShotDeliveryHtmlBtm(Plan plan) {
|
|
public Plan getShotDeliveryHtmlBtm(Plan plan) {
|
|
|
return planningDao.getShotDeliveryHtmlBtm(plan);
|
|
return planningDao.getShotDeliveryHtmlBtm(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 설문조사 정보
|
|
* 설문조사 정보
|
|
|
*
|
|
*
|
|
@@ -371,7 +371,7 @@ public class TsfPlanningService {
|
|
|
public Poll getPollQuestionInfo(Plan plan) {
|
|
public Poll getPollQuestionInfo(Plan plan) {
|
|
|
return planningDao.getPollQuestionInfo(plan);
|
|
return planningDao.getPollQuestionInfo(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 설문조사 질문내용
|
|
* 설문조사 질문내용
|
|
|
*
|
|
*
|
|
@@ -383,7 +383,7 @@ public class TsfPlanningService {
|
|
|
public Collection<Poll> getPollQuestionList(Plan plan) {
|
|
public Collection<Poll> getPollQuestionList(Plan plan) {
|
|
|
return planningDao.getPollQuestionList(plan);
|
|
return planningDao.getPollQuestionList(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 설문조사 등록
|
|
* 설문조사 등록
|
|
|
*
|
|
*
|
|
@@ -397,67 +397,67 @@ public class TsfPlanningService {
|
|
|
poll.setCustNo(TsfSession.getInfo().getCustNo());
|
|
poll.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
// 단수형
|
|
// 단수형
|
|
|
int ansIndex = planningDao.getPollCustAnswerIndex();
|
|
int ansIndex = planningDao.getPollCustAnswerIndex();
|
|
|
- if(poll.getPollQsq_10()!=null && poll.getPollQsq_10()!="") {
|
|
|
|
|
- String[] pollQsq_10 =poll.getPollQsq_10().split("/");
|
|
|
|
|
|
|
+ if (poll.getPollQsq_10() != null && poll.getPollQsq_10() != "") {
|
|
|
|
|
+ String[] pollQsq_10 = poll.getPollQsq_10().split("/");
|
|
|
for (int i = 0; i < pollQsq_10.length; i++) {
|
|
for (int i = 0; i < pollQsq_10.length; i++) {
|
|
|
String[] temp = pollQsq_10[i].split("-");
|
|
String[] temp = pollQsq_10[i].split("-");
|
|
|
for (int j = 0; j < temp.length; j++) {
|
|
for (int j = 0; j < temp.length; j++) {
|
|
|
- String pollQsq=temp[j].toString();
|
|
|
|
|
- poll.setPollQsq(Integer.parseInt(pollQsq));
|
|
|
|
|
- String dummy = temp[j+1].toString();
|
|
|
|
|
- poll.setDummy(dummy);
|
|
|
|
|
|
|
+ String pollQsq = temp[j].toString();
|
|
|
|
|
+ poll.setPollQsq(Integer.parseInt(pollQsq));
|
|
|
|
|
+ String dummy = temp[j + 1].toString();
|
|
|
|
|
+ poll.setDummy(dummy);
|
|
|
poll.setAnsIndex(ansIndex);
|
|
poll.setAnsIndex(ansIndex);
|
|
|
planningDao.savePollCustAnswer(poll);
|
|
planningDao.savePollCustAnswer(poll);
|
|
|
j++;
|
|
j++;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//복수형
|
|
//복수형
|
|
|
- if(poll.getPollQsq_20()!=null && poll.getPollQsq_20()!="") {
|
|
|
|
|
- String[] pollQsq_20 =poll.getPollQsq_20().split("/");
|
|
|
|
|
|
|
+ if (poll.getPollQsq_20() != null && poll.getPollQsq_20() != "") {
|
|
|
|
|
+ String[] pollQsq_20 = poll.getPollQsq_20().split("/");
|
|
|
for (int i = 0; i < pollQsq_20.length; i++) {
|
|
for (int i = 0; i < pollQsq_20.length; i++) {
|
|
|
String[] temp = pollQsq_20[i].split("-");
|
|
String[] temp = pollQsq_20[i].split("-");
|
|
|
for (int j = 0; j < temp.length; j++) {
|
|
for (int j = 0; j < temp.length; j++) {
|
|
|
- String pollQsq=temp[j].toString();
|
|
|
|
|
|
|
+ String pollQsq = temp[j].toString();
|
|
|
poll.setPollQsq(Integer.parseInt(pollQsq));
|
|
poll.setPollQsq(Integer.parseInt(pollQsq));
|
|
|
- String dummy = temp[j+1].toString().replaceAll("[,]", "|");
|
|
|
|
|
- poll.setDummy(dummy);
|
|
|
|
|
|
|
+ String dummy = temp[j + 1].toString().replaceAll("[,]", "|");
|
|
|
|
|
+ poll.setDummy(dummy);
|
|
|
poll.setAnsIndex(ansIndex);
|
|
poll.setAnsIndex(ansIndex);
|
|
|
planningDao.savePollCustAnswer(poll);
|
|
planningDao.savePollCustAnswer(poll);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
j++;
|
|
j++;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//단답형
|
|
//단답형
|
|
|
- if(poll.getPollQsq_30()!=null && poll.getPollQsq_30()!="") {
|
|
|
|
|
- String[] pollQsq_30 =poll.getPollQsq_30().split("/");
|
|
|
|
|
|
|
+ if (poll.getPollQsq_30() != null && poll.getPollQsq_30() != "") {
|
|
|
|
|
+ String[] pollQsq_30 = poll.getPollQsq_30().split("/");
|
|
|
for (int i = 0; i < pollQsq_30.length; i++) {
|
|
for (int i = 0; i < pollQsq_30.length; i++) {
|
|
|
String[] temp = pollQsq_30[i].split("-");
|
|
String[] temp = pollQsq_30[i].split("-");
|
|
|
for (int j = 0; j < temp.length; j++) {
|
|
for (int j = 0; j < temp.length; j++) {
|
|
|
- String pollQsq=temp[j].toString();
|
|
|
|
|
- poll.setPollQsq(Integer.parseInt(pollQsq));
|
|
|
|
|
- String dummy = temp[j+1].toString();
|
|
|
|
|
- poll.setDummy(dummy);
|
|
|
|
|
|
|
+ String pollQsq = temp[j].toString();
|
|
|
|
|
+ poll.setPollQsq(Integer.parseInt(pollQsq));
|
|
|
|
|
+ String dummy = temp[j + 1].toString();
|
|
|
|
|
+ poll.setDummy(dummy);
|
|
|
poll.setAnsIndex(ansIndex);
|
|
poll.setAnsIndex(ansIndex);
|
|
|
planningDao.savePollCustAnswer(poll);
|
|
planningDao.savePollCustAnswer(poll);
|
|
|
j++;
|
|
j++;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//서룰형
|
|
//서룰형
|
|
|
- if(poll.getPollQsq_40()!=null && poll.getPollQsq_40()!="") {
|
|
|
|
|
- String[] pollQsq_40 =poll.getPollQsq_40().split("/");
|
|
|
|
|
|
|
+ if (poll.getPollQsq_40() != null && poll.getPollQsq_40() != "") {
|
|
|
|
|
+ String[] pollQsq_40 = poll.getPollQsq_40().split("/");
|
|
|
for (int i = 0; i < pollQsq_40.length; i++) {
|
|
for (int i = 0; i < pollQsq_40.length; i++) {
|
|
|
String[] temp = pollQsq_40[i].split("-");
|
|
String[] temp = pollQsq_40[i].split("-");
|
|
|
for (int j = 0; j < temp.length; j++) {
|
|
for (int j = 0; j < temp.length; j++) {
|
|
|
- String pollQsq=temp[j].toString();
|
|
|
|
|
- poll.setPollQsq(Integer.parseInt(pollQsq));
|
|
|
|
|
- String dummy = temp[j+1].toString();
|
|
|
|
|
- poll.setDummy(dummy);
|
|
|
|
|
|
|
+ String pollQsq = temp[j].toString();
|
|
|
|
|
+ poll.setPollQsq(Integer.parseInt(pollQsq));
|
|
|
|
|
+ String dummy = temp[j + 1].toString();
|
|
|
|
|
+ poll.setDummy(dummy);
|
|
|
poll.setAnsIndex(ansIndex);
|
|
poll.setAnsIndex(ansIndex);
|
|
|
planningDao.savePollCustAnswer(poll);
|
|
planningDao.savePollCustAnswer(poll);
|
|
|
j++;
|
|
j++;
|
|
@@ -465,7 +465,7 @@ public class TsfPlanningService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 설문조사 중복카운트
|
|
* 설문조사 중복카운트
|
|
|
*
|
|
*
|
|
@@ -477,7 +477,7 @@ public class TsfPlanningService {
|
|
|
public int getCustAnswerCount(Plan plan) {
|
|
public int getCustAnswerCount(Plan plan) {
|
|
|
return planningDao.getCustAnswerCount(plan);
|
|
return planningDao.getCustAnswerCount(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 설문조사 중복카운트
|
|
* 설문조사 중복카운트
|
|
|
*
|
|
*
|
|
@@ -501,7 +501,7 @@ public class TsfPlanningService {
|
|
|
public CustDeliveryAddr getCustAddrInfo(CustDeliveryAddr addr) {
|
|
public CustDeliveryAddr getCustAddrInfo(CustDeliveryAddr addr) {
|
|
|
return planningDao.getCustAddrInfo(addr);
|
|
return planningDao.getCustAddrInfo(addr);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 총알배송 가능여부
|
|
* 총알배송 가능여부
|
|
|
*
|
|
*
|
|
@@ -513,7 +513,7 @@ public class TsfPlanningService {
|
|
|
public CustDeliveryAddr getCustAddrShotConfirm(String recipZipcode) {
|
|
public CustDeliveryAddr getCustAddrShotConfirm(String recipZipcode) {
|
|
|
return planningDao.getCustAddrShotConfirm(recipZipcode);
|
|
return planningDao.getCustAddrShotConfirm(recipZipcode);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 출석체크 달력 출력
|
|
* 출석체크 달력 출력
|
|
|
*
|
|
*
|
|
@@ -525,7 +525,7 @@ public class TsfPlanningService {
|
|
|
public Collection<Plan> getAttendMonth(Plan plan) {
|
|
public Collection<Plan> getAttendMonth(Plan plan) {
|
|
|
return planningDao.getAttendMonth(plan);
|
|
return planningDao.getAttendMonth(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 출석체크
|
|
* 출석체크
|
|
|
*
|
|
*
|
|
@@ -555,7 +555,7 @@ public class TsfPlanningService {
|
|
|
plan.setCustNo(TsfSession.getInfo().getCustNo());
|
|
plan.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
return planningDao.getAttendEntryCount(plan);
|
|
return planningDao.getAttendEntryCount(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 고객이 출석한 일 리스트
|
|
* 고객이 출석한 일 리스트
|
|
|
*
|
|
*
|
|
@@ -564,11 +564,11 @@ public class TsfPlanningService {
|
|
|
* @author sowon
|
|
* @author sowon
|
|
|
* @date 2021. 4. 7
|
|
* @date 2021. 4. 7
|
|
|
*/
|
|
*/
|
|
|
- public Collection<Plan> getCustAttendEntryList(Plan plan){
|
|
|
|
|
|
|
+ public Collection<Plan> getCustAttendEntryList(Plan plan) {
|
|
|
plan.setCustNo(TsfSession.getInfo().getCustNo());
|
|
plan.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
return planningDao.getCustAttendEntryList(plan);
|
|
return planningDao.getCustAttendEntryList(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 출석체크 혜택 리스트
|
|
* 출석체크 혜택 리스트
|
|
|
*
|
|
*
|
|
@@ -577,7 +577,7 @@ public class TsfPlanningService {
|
|
|
* @author sowon
|
|
* @author sowon
|
|
|
* @date 2021. 4. 14
|
|
* @date 2021. 4. 14
|
|
|
*/
|
|
*/
|
|
|
- public Collection<Plan> getAttendBenefitList(Plan plan){
|
|
|
|
|
|
|
+ public Collection<Plan> getAttendBenefitList(Plan plan) {
|
|
|
plan.setFrontGb(TsfSession.getFrontGb());
|
|
plan.setFrontGb(TsfSession.getFrontGb());
|
|
|
return planningDao.getAttendBenefitList(plan);
|
|
return planningDao.getAttendBenefitList(plan);
|
|
|
}
|
|
}
|
|
@@ -590,11 +590,10 @@ public class TsfPlanningService {
|
|
|
* @author sowon
|
|
* @author sowon
|
|
|
* @date 2021. 4. 8
|
|
* @date 2021. 4. 8
|
|
|
*/
|
|
*/
|
|
|
- public Collection<Plan> getReplyList(Plan plan){
|
|
|
|
|
|
|
+ public Collection<Plan> getReplyList(Plan plan) {
|
|
|
return planningDao.getReplyList(plan);
|
|
return planningDao.getReplyList(plan);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 기획전/이벤트 댓글,이미지 저장
|
|
* 기획전/이벤트 댓글,이미지 저장
|
|
|
*
|
|
*
|
|
@@ -608,10 +607,10 @@ public class TsfPlanningService {
|
|
|
int custNo = TsfSession.getInfo().getCustNo();
|
|
int custNo = TsfSession.getInfo().getCustNo();
|
|
|
plan.setCustNo(custNo);
|
|
plan.setCustNo(custNo);
|
|
|
planningDao.saveEntryReply(plan);
|
|
planningDao.saveEntryReply(plan);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
//이미지등록
|
|
//이미지등록
|
|
|
Plan filePlan = new Plan();
|
|
Plan filePlan = new Plan();
|
|
|
- if(!StringUtils.isAllEmpty(plan.getMultiReplySysFile())) {
|
|
|
|
|
|
|
+ if (!StringUtils.isAllEmpty(plan.getMultiReplySysFile())) {
|
|
|
filePlan.setRegNo(custNo);
|
|
filePlan.setRegNo(custNo);
|
|
|
filePlan.setPlanEntrySq(plan.getPlanEntrySq());
|
|
filePlan.setPlanEntrySq(plan.getPlanEntrySq());
|
|
|
//파일아이템 등록
|
|
//파일아이템 등록
|
|
@@ -642,7 +641,7 @@ public class TsfPlanningService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 기획전/이벤트 댓글 카운트
|
|
* 기획전/이벤트 댓글 카운트
|
|
|
*
|
|
*
|
|
@@ -654,7 +653,7 @@ public class TsfPlanningService {
|
|
|
public int getEntryReplyCount(Plan plan) {
|
|
public int getEntryReplyCount(Plan plan) {
|
|
|
return planningDao.getEntryReplyCount(plan);
|
|
return planningDao.getEntryReplyCount(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 기획전/이벤트 댓글, 이미지 삭제
|
|
* 기획전/이벤트 댓글, 이미지 삭제
|
|
|
*
|
|
*
|
|
@@ -668,7 +667,7 @@ public class TsfPlanningService {
|
|
|
planningDao.deleteEntryReply(plan);
|
|
planningDao.deleteEntryReply(plan);
|
|
|
planningDao.deleteEntryReplyAttach(plan);
|
|
planningDao.deleteEntryReplyAttach(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 기획전/이벤트 댓글 이미지 리스트
|
|
* 기획전/이벤트 댓글 이미지 리스트
|
|
|
*
|
|
*
|
|
@@ -677,10 +676,9 @@ public class TsfPlanningService {
|
|
|
* @author sowon
|
|
* @author sowon
|
|
|
* @date 2021. 4. 8
|
|
* @date 2021. 4. 8
|
|
|
*/
|
|
*/
|
|
|
- public Collection<Plan> getEntryReplyAttachList(Plan plan){
|
|
|
|
|
|
|
+ public Collection<Plan> getEntryReplyAttachList(Plan plan) {
|
|
|
return planningDao.getEntryReplyAttachList(plan);
|
|
return planningDao.getEntryReplyAttachList(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 총알배송 planSq
|
|
* 총알배송 planSq
|
|
@@ -693,7 +691,7 @@ public class TsfPlanningService {
|
|
|
public Integer getShotPlanSq(Plan plan) {
|
|
public Integer getShotPlanSq(Plan plan) {
|
|
|
return planningDao.getShotPlanSq(plan);
|
|
return planningDao.getShotPlanSq(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 기획전 컨텐츠 정보
|
|
* 기획전 컨텐츠 정보
|
|
|
*
|
|
*
|
|
@@ -702,22 +700,22 @@ public class TsfPlanningService {
|
|
|
* @author sowon
|
|
* @author sowon
|
|
|
* @date 2021. 6. 3
|
|
* @date 2021. 6. 3
|
|
|
*/
|
|
*/
|
|
|
- public Collection<Plan> getPlanContentInfo(Plan plan) {
|
|
|
|
|
- return planningDao.getPlanContentInfo(plan);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * 총알배송 브랜드 리스트
|
|
|
|
|
- *
|
|
|
|
|
- * @param
|
|
|
|
|
- * @return
|
|
|
|
|
- * @author sowon
|
|
|
|
|
- * @date 2021. 6. 29
|
|
|
|
|
- */
|
|
|
|
|
- public Collection<Plan> getShotBrandList(){
|
|
|
|
|
|
|
+ public Collection<Plan> getPlanContentInfo(Plan plan) {
|
|
|
|
|
+ return planningDao.getPlanContentInfo(plan);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 총알배송 브랜드 리스트
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param
|
|
|
|
|
+ * @return
|
|
|
|
|
+ * @author sowon
|
|
|
|
|
+ * @date 2021. 6. 29
|
|
|
|
|
+ */
|
|
|
|
|
+ public Collection<Plan> getShotBrandList() {
|
|
|
return planningDao.getShotBrandList();
|
|
return planningDao.getShotBrandList();
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 총알배송 브랜드 상품 리스트
|
|
* 총알배송 브랜드 상품 리스트
|
|
|
*
|
|
*
|
|
@@ -726,8 +724,8 @@ public class TsfPlanningService {
|
|
|
* @author sowon
|
|
* @author sowon
|
|
|
* @date 2021. 6. 29
|
|
* @date 2021. 6. 29
|
|
|
*/
|
|
*/
|
|
|
- public Collection<Plan> getShotDeliveryGoodsList(Plan plan){
|
|
|
|
|
|
|
+ public Collection<Plan> getShotDeliveryGoodsList(Plan plan) {
|
|
|
return planningDao.getShotDeliveryGoodsList(plan);
|
|
return planningDao.getShotDeliveryGoodsList(plan);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|