Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
em
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ichikawa
em
Commits
16b45903
Commit
16b45903
authored
Mar 27, 2024
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ICHICOポイント利用表示日付設定
parent
3cefeac5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
16 deletions
+18
-16
src/main/java/jp/agentec/sinaburocast/action/user/PointUseAction.java
+16
-14
src/main/java/jp/agentec/sinaburocast/common/SinaburoConstant.java
+2
-2
No files found.
src/main/java/jp/agentec/sinaburocast/action/user/PointUseAction.java
View file @
16b45903
...
@@ -4,6 +4,7 @@ import java.io.IOException;
...
@@ -4,6 +4,7 @@ import java.io.IOException;
import
java.io.UnsupportedEncodingException
;
import
java.io.UnsupportedEncodingException
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
javax.mail.MessagingException
;
import
javax.mail.MessagingException
;
...
@@ -19,6 +20,7 @@ import org.seasar.struts.annotation.Execute;
...
@@ -19,6 +20,7 @@ import org.seasar.struts.annotation.Execute;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.SinaburoConstant.UserType
;
import
jp.agentec.sinaburocast.common.SinaburoConstant.UserType
;
import
jp.agentec.sinaburocast.common.SinaburoConstant.giftExchangeHiddenDate
;
import
jp.agentec.sinaburocast.common.util.MailUtil
;
import
jp.agentec.sinaburocast.common.util.MailUtil
;
import
jp.agentec.sinaburocast.common.util.PropertyUtil
;
import
jp.agentec.sinaburocast.common.util.PropertyUtil
;
import
jp.agentec.sinaburocast.common.util.SinaburoUtil
;
import
jp.agentec.sinaburocast.common.util.SinaburoUtil
;
...
@@ -91,14 +93,14 @@ public class PointUseAction extends AbstractAction {
...
@@ -91,14 +93,14 @@ public class PointUseAction extends AbstractAction {
// ポイント交換利用方法取得
// ポイント交換利用方法取得
pointUseForm
.
giftExchangeInfoList
=
giftExchangeInfoService
.
findGiftExchangeInfoList
();
pointUseForm
.
giftExchangeInfoList
=
giftExchangeInfoService
.
findGiftExchangeInfoList
();
// 現在日付を取得し、ICHICOポイントの交換リンクを表示するか判定する
// 現在日付を取得し、ICHICOポイントの交換リンクを表示するか判定する
// 2024年4月1日から再開のため、
当該ロジックを削除
// 2024年4月1日から再開のため、
ロジックを修正
//
Date currentDate = new Date();
Date
currentDate
=
new
Date
();
//
Date hideDate = new SimpleDateFormat("yyyy/MM/dd").parse(giftExchangeHiddenDate.ICHICO_HIDE_DATE);
Date
hideDate
=
new
SimpleDateFormat
(
"yyyy/MM/dd"
).
parse
(
giftExchangeHiddenDate
.
ICHICO_HIDE_DATE
);
// if(currentDate.before
(hideDate)) {
if
(
currentDate
.
after
(
hideDate
))
{
pointUseForm
.
ichicoHide
=
false
;
pointUseForm
.
ichicoHide
=
false
;
//
} else {
}
else
{
//
pointUseForm.ichicoHide = true;
pointUseForm
.
ichicoHide
=
true
;
//
}
}
return
"/user/pointUse/pointUseIndex.html"
;
return
"/user/pointUse/pointUseIndex.html"
;
}
}
...
@@ -222,14 +224,14 @@ public class PointUseAction extends AbstractAction {
...
@@ -222,14 +224,14 @@ public class PointUseAction extends AbstractAction {
return
"/user/pointUse/memberConfirm.html"
;
return
"/user/pointUse/memberConfirm.html"
;
}
}
// 現在日付を取得し、会員カード郵送申請ボタンを表示するか判定する
// 現在日付を取得し、会員カード郵送申請ボタンを表示するか判定する
// 2024年4月1日から再開のため、
当該ロジックを削除
// 2024年4月1日から再開のため、
ロジックを修正
//
Date currentDate = new Date();
Date
currentDate
=
new
Date
();
//
Date hideDate = new SimpleDateFormat("yyyy/MM/dd").parse(giftExchangeHiddenDate.MEMBER_CARD_RECEIPT_HIDE_DATE);
Date
hideDate
=
new
SimpleDateFormat
(
"yyyy/MM/dd"
).
parse
(
giftExchangeHiddenDate
.
MEMBER_CARD_RECEIPT_HIDE_DATE
);
// if(currentDate.before
(hideDate)) {
if
(
currentDate
.
after
(
hideDate
))
{
pointUseForm
.
memberCardReceiptHide
=
false
;
pointUseForm
.
memberCardReceiptHide
=
false
;
//
} else {
}
else
{
//
pointUseForm.memberCardReceiptHide = true;
pointUseForm
.
memberCardReceiptHide
=
true
;
//
}
}
return
"/user/pointUse/memberRegistPage.html"
;
return
"/user/pointUse/memberRegistPage.html"
;
}
}
...
...
src/main/java/jp/agentec/sinaburocast/common/SinaburoConstant.java
View file @
16b45903
...
@@ -644,8 +644,8 @@ public interface SinaburoConstant {
...
@@ -644,8 +644,8 @@ public interface SinaburoConstant {
*
*
*/
*/
interface
giftExchangeHiddenDate
{
interface
giftExchangeHiddenDate
{
String
ICHICO_HIDE_DATE
=
"202
3/09/2
1"
;
String
ICHICO_HIDE_DATE
=
"202
4/04/0
1"
;
String
MEMBER_CARD_RECEIPT_HIDE_DATE
=
"202
3/09/1
1"
;
String
MEMBER_CARD_RECEIPT_HIDE_DATE
=
"202
4/04/0
1"
;
}
}
interface
initDisable
{
interface
initDisable
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment