|
@@ -358,6 +358,8 @@ public class TsfPlanningController extends TsfBaseController {
|
|
|
|
|
|
|
|
poll = planningService.getPollQuestionInfo(plan);
|
|
poll = planningService.getPollQuestionInfo(plan);
|
|
|
String partYn = poll.getDupPartiYn();
|
|
String partYn = poll.getDupPartiYn();
|
|
|
|
|
+ String comYn = poll.getFstComYn();
|
|
|
|
|
+ int partiCnt = poll.getPartiCnt();
|
|
|
// 중복참여가 아닌경우
|
|
// 중복참여가 아닌경우
|
|
|
if(partYn.equals("N")) {
|
|
if(partYn.equals("N")) {
|
|
|
int count = planningService.getCustAnswerCount(plan);
|
|
int count = planningService.getCustAnswerCount(plan);
|
|
@@ -366,6 +368,14 @@ public class TsfPlanningController extends TsfBaseController {
|
|
|
result.set("status","1");
|
|
result.set("status","1");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (comYn.equals("Y")) {
|
|
|
|
|
+ int count = planningService.getCustAnswerPartiCount(poll);
|
|
|
|
|
+ if (count>=partiCnt) {
|
|
|
|
|
+ result.set("msg","선착순 응모가 마감되었습니다.");
|
|
|
|
|
+ result.set("status","2");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|