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
c2876728
Commit
c2876728
authored
Mar 07, 2023
by
Kazuki Nakamura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#51860【ポイント交換申請】管理者画面のポイント交換申請検索画面、郵送受付申請検索画面のレイアウト、文言修正対応
parent
bf59a0c0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
22 deletions
+47
-22
src/main/java/jp/agentec/sinaburocast/action/user/PointUseAction.java
+2
-2
src/main/java/jp/agentec/sinaburocast/service/GiftExchangeService.java
+23
-7
src/main/java/jp/agentec/sinaburocast/service/MemberCardReceiptService.java
+14
-5
src/main/webapp/WEB-INF/view/admin/enquete/giftExchangeSearch.html
+5
-5
src/main/webapp/WEB-INF/view/admin/enquete/memberCardReceiptSearch.html
+3
-3
No files found.
src/main/java/jp/agentec/sinaburocast/action/user/PointUseAction.java
View file @
c2876728
...
...
@@ -218,7 +218,7 @@ public class PointUseAction extends AbstractAction {
* @return
*/
@Execute
(
validator
=
false
)
public
String
sendEmailForMemberCardReceipt
()
{
public
String
sendEmailForMemberCardReceipt
()
throws
UnsupportedEncodingException
,
MessagingException
{
// 会員情報の確認
String
url
=
memberInfoValidate
();
...
...
@@ -241,7 +241,7 @@ public class PointUseAction extends AbstractAction {
if
(!
StringUtil
.
isBlank
(
member
.
mbEmail
))
{
MailUtil
.
send
(
member
.
mbEmail
,
PropertyUtil
.
getProperty
(
"MEMBER_CARD_RECEIPT_MAIL_TITLE"
),
message
.
message
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Messaging
Exception
e
)
{
logger
.
warn
(
"Mail send failed."
+
e
.
toString
());
addError
(
SinaburoViewUtil
.
getMessage
(
"errors.E055"
));
return
"/user/pointUse/confirmOfAddress.html"
;
...
...
src/main/java/jp/agentec/sinaburocast/service/GiftExchangeService.java
View file @
c2876728
...
...
@@ -101,7 +101,7 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
toDay
=
SinaburoUtil
.
convertStringToTimestamp
(
SinaburoUtil
.
getNextDay
(
giftExchangeSearchForm
.
toDay
),
"yyyy-MM-dd"
);
}
return
select
().
innerJoin
(
"member"
).
innerJoin
(
"member.prefecture"
).
where
(
new
SimpleWhere
()
return
select
().
innerJoin
(
"member"
).
innerJoin
(
"member.prefecture"
).
innerJoin
(
"gift"
).
where
(
new
SimpleWhere
()
.
ge
(
"applyDate"
,
fromDay
)
.
lt
(
"applyDate"
,
toDay
)
.
eq
(
"member.validFlg"
,
SinaburoConstant
.
MemberValidFlg
.
VALID
)
...
...
@@ -116,7 +116,7 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
public
String
getGiftExchangeForCsv
(
GiftExchangeSearchForm
giftExchangeSearchForm
)
throws
UnsupportedEncodingException
,
Exception
{
StringBuffer
str
=
new
StringBuffer
();
str
.
append
(
"\"申請日\",\"会員ID\",\"氏名\",\"メールアドレス\",\"申請
枚数
\",\"郵便番号\",\"都道府県\",\"市区町村\",\"町名・番地\",\"建物名\",\"会員番号\""
+
"\r\n"
);
str
.
append
(
"\"申請日\",\"会員ID\",\"氏名\",\"メールアドレス\",\"申請
(枚数/ポイント数)
\",\"郵便番号\",\"都道府県\",\"市区町村\",\"町名・番地\",\"建物名\",\"会員番号\""
+
"\r\n"
);
List
<
GiftExchange
>
giftExchangeList
=
getGiftExchangeByFromDayAndToDay
(
giftExchangeSearchForm
);
...
...
@@ -132,10 +132,16 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
str
.
append
(
"\""
+
giftExchange
.
member
.
firstName
+
" "
+
giftExchange
.
member
.
lastName
+
"\","
);
//メールアドレス
str
.
append
(
"\""
+
giftExchange
.
member
.
pcEmail
+
"\","
);
str
.
append
(
"\""
+
replaceNullWithBlank
(
giftExchange
.
member
.
pcEmail
)
+
"\","
);
//申請枚数
str
.
append
(
"\""
+
giftExchange
.
cnt
+
"\","
);
String
unit
=
null
;
if
(
SinaburoConstant
.
giftType
.
ECOBO
.
equals
(
giftExchange
.
gift
.
giftType
))
{
unit
=
"枚"
;
}
else
{
unit
=
"ポイント"
;
}
str
.
append
(
"\""
+
giftExchange
.
cnt
+
unit
+
"\","
);
//郵便番号
str
.
append
(
"\""
+
giftExchange
.
member
.
zipCode
+
"\","
);
...
...
@@ -150,10 +156,10 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
str
.
append
(
"\""
+
giftExchange
.
member
.
areaName
+
"\","
);
//建物名
str
.
append
(
"\""
+
giftExchange
.
member
.
buildingName
+
"\","
);
str
.
append
(
"\""
+
replaceNullWithBlank
(
giftExchange
.
member
.
buildingName
)
+
"\","
);
//会員番号
str
.
append
(
"\""
+
giftExchange
.
member
.
memberNum
+
"\""
);
str
.
append
(
"\""
+
replaceNullWithBlank
(
giftExchange
.
member
.
memberNum
)
+
"\""
);
str
.
append
(
"\r\n"
);
...
...
@@ -163,6 +169,16 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
}
/**
* null値を空白に置き換え
*/
private
String
replaceNullWithBlank
(
String
str
)
{
if
(
str
!=
null
)
{
return
str
;
}
return
""
;
}
/**
* ポイント交換申請情報取得(CSV出力用)
* @param giftExchangeSearchForm
* @return List<GiftExchange>
...
...
@@ -184,7 +200,7 @@ public class GiftExchangeService extends AbstractService<GiftExchange> {
toDay
=
SinaburoUtil
.
convertStringToTimestamp
(
SinaburoUtil
.
getNextDay
(
giftExchangeSearchForm
.
toDay
),
"yyyy-MM-dd"
);
}
return
select
().
innerJoin
(
"member"
).
innerJoin
(
"member.prefecture"
).
where
(
new
SimpleWhere
()
return
select
().
innerJoin
(
"member"
).
innerJoin
(
"member.prefecture"
).
innerJoin
(
"gift"
).
where
(
new
SimpleWhere
()
.
ge
(
"applyDate"
,
fromDay
)
.
lt
(
"applyDate"
,
toDay
)
.
eq
(
"member.validFlg"
,
SinaburoConstant
.
MemberValidFlg
.
VALID
)
...
...
src/main/java/jp/agentec/sinaburocast/service/MemberCardReceiptService.java
View file @
c2876728
...
...
@@ -122,9 +122,9 @@ public class MemberCardReceiptService extends AbstractService<MemberCardReceipt>
}
/**
* CSVファイル出力
ポイント交換
申請情報取得
* CSVファイル出力
郵送受付
申請情報取得
* @param memberCardReceiptSearchForm
* @return String
ポイント交換
申請情報文字列
* @return String
郵送受付
申請情報文字列
*/
public
String
getMemberCardReceiptForCsv
(
MemberCardReceiptSearchForm
memberCardReceiptSearchForm
)
throws
UnsupportedEncodingException
,
Exception
{
...
...
@@ -157,7 +157,7 @@ public class MemberCardReceiptService extends AbstractService<MemberCardReceipt>
str
.
append
(
"\""
+
memberCardReceipt
.
member
.
areaName
+
"\","
);
//建物名
str
.
append
(
"\""
+
memberCardReceipt
.
member
.
buildingName
+
"\","
);
str
.
append
(
"\""
+
replaceNullWithBlank
(
memberCardReceipt
.
member
.
buildingName
)
+
"\","
);
//電話番号
str
.
append
(
"\""
+
memberCardReceipt
.
member
.
telno
+
"\""
);
...
...
@@ -170,7 +170,17 @@ public class MemberCardReceiptService extends AbstractService<MemberCardReceipt>
}
/**
* ポイント交換申請情報取得(CSV出力用)
* null値を空白に置き換え
*/
private
String
replaceNullWithBlank
(
String
str
)
{
if
(
str
!=
null
)
{
return
str
;
}
return
""
;
}
/**
* 郵送受付申請情報取得(CSV出力用)
* @param memberCardReceiptSearchForm
* @return List<MemberCardReceipt>
*/
...
...
@@ -179,7 +189,6 @@ public class MemberCardReceiptService extends AbstractService<MemberCardReceipt>
Date
fromDay
=
null
;
Date
toDay
=
null
;
//#30951 「ポイント交換申請結果CSV出力」でエラー画面 対応
if
(!
StringUtil
.
isBlank
(
memberCardReceiptSearchForm
.
fromDay
)){
logger
.
info
(
"memberCardReceiptSearchForm.fromDay:"
+
memberCardReceiptSearchForm
.
fromDay
);
fromDay
=
SinaburoUtil
.
convertStringToTimestamp
(
memberCardReceiptSearchForm
.
fromDay
,
"yyyy-MM-dd"
);
...
...
src/main/webapp/WEB-INF/view/admin/enquete/giftExchangeSearch.html
View file @
c2876728
...
...
@@ -70,15 +70,15 @@ $!tools.getMsg("dateError") $!tools.getMsg("dateError_1") $!tools.getMsg("dateEr
<div
style=
"width:844px; overflow-x: auto;"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
class=
"stripe"
style=
"width:1
32
4px;"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
class=
"stripe"
style=
"width:1
41
4px;"
>
<colgroup>
<col
width=
"100px"
>
<col
width=
"80px"
>
<col
width=
"100px"
>
<col
width=
"120px"
>
<col
width=
"170px"
>
<col
width=
"80px"
>
<col
width=
"80px"
>
<col
width=
"100px"
>
<col
width=
"184px"
>
<col
width=
"200px"
>
<col
width=
"200px"
>
...
...
@@ -90,7 +90,7 @@ $!tools.getMsg("dateError") $!tools.getMsg("dateError_1") $!tools.getMsg("dateEr
<th
class=
"t_center"
>
会員ID
</th>
<th
class=
"t_center"
>
氏名
</th>
<th
class=
"t_center"
>
メールアドレス
</th>
<th
class=
"t_center"
>
申請
枚数
</th>
<th
class=
"t_center"
>
申請
(枚数/ポイント数)
</th>
<th
class=
"t_center"
>
郵便番号
</th>
<th
class=
"t_center"
>
都道府県
</th>
<th
class=
"t_center"
>
市区町村
</th>
...
...
@@ -106,13 +106,13 @@ $!tools.getMsg("dateError") $!tools.getMsg("dateError_1") $!tools.getMsg("dateEr
<td
class=
"tdDiv"
>
$!giftExchange.memberId
</td>
<td
class=
"tdDiv"
>
$!escape.html($!giftExchange.member.firstName) $!escape.html($!giftExchange.member.lastName)
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.pcEmail
</td>
<td
class=
"tdDiv"
>
$!giftExchange.cnt
</td>
<td
class=
"tdDiv"
>
$!giftExchange.cnt
#if($!giftExchange.gift.giftType == 1)枚#elseポイント#end
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.zipCode
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.prefecture.prefecture
</td>
<td
class=
"tdDiv"
>
$!escape.html($!giftExchange.member.cityName)
</td>
<td
class=
"tdDiv"
>
$!escape.html($!giftExchange.member.areaName)
</td>
<td
class=
"tdDiv"
>
$!escape.html($!giftExchange.member.buildingName)
</td>
<td
class=
"tdDiv"
>
$!giftExchange.member.memberNum
</td>
<td
class=
"tdDiv
t_center
"
>
$!giftExchange.member.memberNum
</td>
</tr>
#end
</tbody>
...
...
src/main/webapp/WEB-INF/view/admin/enquete/memberCardReceiptSearch.html
View file @
c2876728
...
...
@@ -70,13 +70,13 @@ $!tools.getMsg("dateError") $!tools.getMsg("dateError_1") $!tools.getMsg("dateEr
<div
style=
"width:844px; overflow-x: auto;"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
class=
"stripe"
style=
"width:11
2
4px;"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
class=
"stripe"
style=
"width:11
0
4px;"
>
<colgroup>
<col
width=
"100px"
>
<col
width=
"80px"
>
<col
width=
"100px"
>
<col
width=
"80px"
>
<col
width=
"
10
0px"
>
<col
width=
"
8
0px"
>
<col
width=
"184px"
>
<col
width=
"200px"
>
<col
width=
"200px"
>
...
...
@@ -116,7 +116,7 @@ $!tools.getMsg("dateError") $!tools.getMsg("dateError_1") $!tools.getMsg("dateEr
<!--▼ページング▼-->
<ul
class=
"pageNav01"
>
#makeLink("#q('/admin/enquete/memberCardReceiptSearch/memberCardReceiptSearch/')",$memberCardReceiptSearchForm.pagingMap.paging)
<a
href=
"#"
onclick=
"report_download(); return false;"
><button
class=
"button1"
>
郵送申請結果CSV出力
</button></a>
<a
href=
"#"
onclick=
"report_download(); return false;"
><button
class=
"button1"
>
郵送
受付
申請結果CSV出力
</button></a>
</ul>
<!--▲ページング▲-->
...
...
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