|
|
@@ -727,6 +727,7 @@ public class TsfPlanningController extends TsfBaseController {
|
|
|
Collection<Plan> benefitList = planningService.getAttendBenefitList(plan);
|
|
|
plan.setEntryAllYn("Y");
|
|
|
count = planningService.getAttendEntryCount(plan);
|
|
|
+ String msg = "출석체크 되었습니다.";
|
|
|
for (Plan tPlan : benefitList) {
|
|
|
if (tPlan.getBasDays() == count) {
|
|
|
// 지급 방식이 포인트일 경우
|
|
|
@@ -750,8 +751,8 @@ public class TsfPlanningController extends TsfBaseController {
|
|
|
point.setExpBeDt(df.format(cal.getTime()));
|
|
|
point.setSignGb("+");
|
|
|
corePointService.saveCustomerPoint(point);
|
|
|
- String msg = "축하합니다. " + toNumFormat(pointAmt) + " 포인트가 지급 되었습니다!";
|
|
|
- result.set("msg", msg);
|
|
|
+ msg = "축하합니다. " + toNumFormat(pointAmt) + " 포인트가 지급 되었습니다!";
|
|
|
+// result.set("msg", msg);
|
|
|
break;
|
|
|
}
|
|
|
else if(tPlan.getBenefitGb().equals("C")) {
|
|
|
@@ -766,8 +767,8 @@ public class TsfPlanningController extends TsfBaseController {
|
|
|
coupon.setPubReasonDtl("이벤트출석체크");
|
|
|
coupon.setEndAlimSendYn("N");
|
|
|
coreCouponService.saveCouponIssue(coupon);
|
|
|
- String msg = "축하합니다. " + toNumFormat(coupon.getDcVal()) +coupon.getDcWay() + " 할인쿠폰이 지급 되었습니다!";
|
|
|
- result.set("msg", msg);
|
|
|
+ msg = "축하합니다. " + toNumFormat(coupon.getDcVal()) +coupon.getDcWay() + " 할인쿠폰이 지급 되었습니다!";
|
|
|
+// result.set("msg", msg);
|
|
|
break;
|
|
|
}
|
|
|
else if(tPlan.getBenefitGb().equals("A")) {
|
|
|
@@ -802,16 +803,17 @@ public class TsfPlanningController extends TsfBaseController {
|
|
|
coupon.setPubReasonDtl("출석체크");
|
|
|
coupon.setEndAlimSendYn("N");
|
|
|
coreCouponService.saveCouponIssue(coupon);
|
|
|
- String msg = "축하합니다. " + toNumFormat(pointAmt) + " 포인트와 " + toNumFormat(coupon.getDcVal()) +coupon.getDcWay() + " 할인쿠폰이 지급 되었습니다!";
|
|
|
- result.set("msg", msg);
|
|
|
+ msg = "축하합니다. " + toNumFormat(pointAmt) + " 포인트와 " + toNumFormat(coupon.getDcVal()) +coupon.getDcWay() + " 할인쿠폰이 지급 되었습니다!";
|
|
|
+// result.set("msg", msg);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
}else {
|
|
|
- result.set("msg", "출석체크 되었습니다.");
|
|
|
+// result.set("msg", "출석체크 되었습니다.");
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ result.set("msg", msg);
|
|
|
}
|
|
|
|
|
|
result.set("custAttendList",planningService.getCustAttendEntryList(plan));
|