|
|
@@ -424,6 +424,13 @@ public class TsfPlanningController extends TsfBaseController {
|
|
|
@GetMapping("/event/poll/form")
|
|
|
public ModelAndView planningEventPollSave(Plan plan) {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
+ // 로그인 안 한 경우
|
|
|
+ if (!TsfSession.isLogin()) {
|
|
|
+ mav.addObject("inaccessibleMsg", "로그인 후 참여 가능합니다.");
|
|
|
+ mav.setViewName(super.getDeviceViewName("error/Inaccess"));
|
|
|
+ return mav;
|
|
|
+ }
|
|
|
+
|
|
|
Poll poll = new Poll();
|
|
|
plan.setSiteCd(TscConstants.Site.STYLE24.value());
|
|
|
plan.setCustNo(TsfSession.getInfo().getCustNo());
|
|
|
@@ -431,7 +438,8 @@ public class TsfPlanningController extends TsfBaseController {
|
|
|
poll = planningService.getPollQuestionInfo(plan);
|
|
|
String partYn = poll.getDupPartiYn();
|
|
|
String comYn = poll.getFstComYn();
|
|
|
- int partiCnt = poll.getPartiCnt();
|
|
|
+ int partiCnt = poll.getPartiCnt();
|
|
|
+
|
|
|
// 중복참여가 아닌경우
|
|
|
if(partYn.equals("N")) {
|
|
|
int count = planningService.getCustAnswerCount(plan);
|