Commit d7de7ec0 by Kim Gyeongeun

#56976 【市川市 eモニターシステム】 ポイント交換申請不具合

parent a5acc56e
......@@ -9,6 +9,7 @@ import java.util.Date;
import javax.mail.MessagingException;
import org.apache.log4j.Logger;
import org.apache.struts.Globals;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
import org.apache.struts.util.TokenProcessor;
......@@ -72,6 +73,22 @@ public class PointUseAction extends AbstractAction {
// 最新のユーザー情報を取得
member = memberService.findById(member.memberId);
super.setAuthenticatedToken(member, UserType.USER);
if (StringUtil.isBlank(member.zipCode) || member.prefectureId == null || StringUtil.isBlank(member.cityName) || StringUtil.isBlank(member.areaName) || StringUtil.isBlank(member.telno)
|| StringUtil.isBlank(member.firstName) || StringUtil.isBlank(member.lastName) || StringUtil.isBlank(member.firstNameKana) || StringUtil.isBlank(member.lastNameKana)
|| StringUtil.isBlank(member.birthday)) {
ActionMessages messages = (ActionMessages)request.getAttribute(Globals.ERROR_KEY);
if (messages == null) {
messages = new ActionMessages();
}
messages.add("pointUse", new ActionMessage(SinaburoViewUtil.getMessage("errors.E050")));
request.setAttribute(Globals.ERROR_KEY, messages);
session.setAttribute("pointCheckFlg", true);
return "/user/userEdit/";
}
// ポイント交換利用方法取得
pointUseForm.giftExchangeInfoList = giftExchangeInfoService.findGiftExchangeInfoList();
......
......@@ -231,7 +231,7 @@
</tr>
<tr>
<td>退会フラグ</td>
<td>&nbsp;&nbsp;退会<input name="withDrawFlg" type="checkbox" / class="mgl10" value="$!memberEditForm.withDrawFlg" #if($memberEditForm.withDrawFlg != "0") checked #end ></td>
<td>&nbsp;&nbsp;退会<input name="withDrawFlg" type="checkbox" / class="mgl10" value="$!memberEditForm.withDrawFlg" #if($memberEditForm.withDrawFlg && $memberEditForm.withDrawFlg == "1") checked #end ></td>
</tr>
<tr>
<td>ポイント<font class="listpoint">*</font></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment