|
|
@@ -10,6 +10,8 @@ import org.springframework.core.env.Environment;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
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.TsfPlanningDao;
|
|
|
import com.style24.front.support.security.session.TsfSession;
|
|
|
@@ -21,9 +23,6 @@ import com.style24.persistence.domain.Review;
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
-import com.gagaframework.web.util.GagaDateUtil;
|
|
|
-import com.gagaframework.web.util.GagaFileUtil;
|
|
|
-
|
|
|
/**
|
|
|
* 기획전 Service
|
|
|
*
|
|
|
@@ -391,7 +390,10 @@ public class TsfPlanningService {
|
|
|
public void savePollCustAnswer(Poll poll) {
|
|
|
poll.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
// 단수형
|
|
|
- int ansIndex = planningDao.getPollCustAnswerIndex();
|
|
|
+ Integer ansIndex = planningDao.getPollCustAnswerIndex();
|
|
|
+ if(ansIndex == null) {
|
|
|
+ ansIndex = 1;
|
|
|
+ }
|
|
|
if (poll.getPollQsq_10() != null && poll.getPollQsq_10() != "") {
|
|
|
String[] pollQsq_10 = poll.getPollQsq_10().split("/");
|
|
|
for (int i = 0; i < pollQsq_10.length; i++) {
|