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
fa0dfce1
Commit
fa0dfce1
authored
Dec 21, 2023
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#56952 設問設定機能追加
#56951 性別の選択肢を追加 #56954 メールアドレスの種別変更
parent
7d46402a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
40 deletions
+27
-40
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberEditAction.java
+12
-23
src/main/java/jp/agentec/sinaburocast/form/admin/member/MemberEditForm.java
+4
-4
src/main/java/jp/agentec/sinaburocast/form/user/UserEditForm.java
+4
-4
src/main/java/jp/agentec/sinaburocast/service/MemberService.java
+7
-9
No files found.
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberEditAction.java
View file @
fa0dfce1
...
@@ -142,7 +142,7 @@ public class MemberEditAction extends AbstractAction {
...
@@ -142,7 +142,7 @@ public class MemberEditAction extends AbstractAction {
}
}
// メールアドレス登録チェック
// メールアドレス登録チェック
if
(
StringUtil
.
isBlank
(
memberEditForm
.
mainPcEmail
)
&&
StringUtil
.
isBlank
(
memberEditForm
.
subPcEmail
)
)
{
if
(
StringUtil
.
isBlank
(
memberEditForm
.
mainPcEmail
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
...
@@ -156,32 +156,21 @@ public class MemberEditAction extends AbstractAction {
...
@@ -156,32 +156,21 @@ public class MemberEditAction extends AbstractAction {
}
}
//携帯メールチェック
//携帯メールチェック
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPcEmail
))
{
//
if (!StringUtil.isBlank(memberEditForm.subPcEmail)) {
if
(!
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
subPcEmail
))
{
//
if (!SinaburoUtil.mobileAddressCheck(memberEditForm.subPcEmail)) {
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
//
ActionMessages messages = (ActionMessages)request.getAttribute(Globals.ERROR_KEY);
if
(
messages
==
null
)
{
//
if (messages == null) {
messages
=
new
ActionMessages
();
//
messages = new ActionMessages();
}
//
}
messages
.
add
(
"subPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.mbMail"
))));
//
messages.add("subPcEmail", new ActionMessage(SinaburoViewUtil.getMessage("errors.email",SinaburoViewUtil.getMessage("labels.mbMail"))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
//
request.setAttribute(Globals.ERROR_KEY, messages);
return
"/admin/member/memberEdit.html"
;
//
return "/admin/member/memberEdit.html";
}
//
}
}
//
}
//メールアドレス重複チェックPCメール
//メールアドレス重複チェックPCメール
if
(!
memberEditForm
.
mainPcEmail
.
trim
().
equals
(
memberEditForm
.
mainPcEmailBefore
))
{
if
(!
memberEditForm
.
mainPcEmail
.
trim
().
equals
(
memberEditForm
.
mainPcEmailBefore
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mainPcEmail
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mainPcEmail
))
{
if
(
SinaburoUtil
.
mobileAddressCheck
(
memberEditForm
.
mainPcEmail
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
}
messages
.
add
(
"mainPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.email"
,
SinaburoViewUtil
.
getMessage
(
"labels.pcMail"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberEdit.html"
;
}
memberInfo
=
memberService
.
findByMainPcEmail
(
memberEditForm
.
mainPcEmail
);
memberInfo
=
memberService
.
findByMainPcEmail
(
memberEditForm
.
mainPcEmail
);
if
(
memberInfo
!=
null
)
{
if
(
memberInfo
!=
null
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
...
...
src/main/java/jp/agentec/sinaburocast/form/admin/member/MemberEditForm.java
View file @
fa0dfce1
...
@@ -51,13 +51,13 @@ public class MemberEditForm {
...
@@ -51,13 +51,13 @@ public class MemberEditForm {
public
String
lastNameKana
;
public
String
lastNameKana
;
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.pcMail"))
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.pcMail"))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.
pcM
ail"
))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.
mainPcEm
ail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.
pcM
ail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.
mainPcEm
ail"
))
public
String
mainPcEmail
;
public
String
mainPcEmail
;
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.mbMail"))
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.mbMail"))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.
mbM
ail"
))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.
subPcEm
ail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.
mbM
ail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.
subPcEm
ail"
))
public
String
subPcEmail
;
public
String
subPcEmail
;
@Mask
(
mask
=
"^[0-9]{7}$"
,
msg
=
@Msg
(
key
=
"errors.invalid"
),
arg0
=
@Arg
(
key
=
"labels.zipCode"
))
@Mask
(
mask
=
"^[0-9]{7}$"
,
msg
=
@Msg
(
key
=
"errors.invalid"
),
arg0
=
@Arg
(
key
=
"labels.zipCode"
))
...
...
src/main/java/jp/agentec/sinaburocast/form/user/UserEditForm.java
View file @
fa0dfce1
...
@@ -41,13 +41,13 @@ public class UserEditForm {
...
@@ -41,13 +41,13 @@ public class UserEditForm {
public
String
lastNameKana
;
public
String
lastNameKana
;
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.pcMail"))
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.pcMail"))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.mainPc
M
ail"
))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.mainPc
Em
ail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.mainPc
M
ail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.mainPc
Em
ail"
))
public
String
mainPcEmail
;
public
String
mainPcEmail
;
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.mbMail"))
//@Required(msg=@Msg(key="errors.required"), arg0=@Arg(key="labels.mbMail"))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.subPc
M
ail"
))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.subPc
Em
ail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.subPc
M
ail"
))
@Mask
(
mask
=
"^[!-~]+@[!-~]+$"
,
msg
=
@Msg
(
key
=
"errors.email"
),
arg0
=
@Arg
(
key
=
"labels.subPc
Em
ail"
))
public
String
subPcEmail
;
public
String
subPcEmail
;
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.email"
))
@Maxlength
(
maxlength
=
64
,
msg
=
@Msg
(
key
=
"errors.maxlength"
),
arg0
=
@Arg
(
key
=
"labels.email"
))
...
...
src/main/java/jp/agentec/sinaburocast/service/MemberService.java
View file @
fa0dfce1
...
@@ -278,16 +278,14 @@ public class MemberService extends AbstractService<Member> {
...
@@ -278,16 +278,14 @@ public class MemberService extends AbstractService<Member> {
values
.
add
(
"%"
+
memberSearchForm
.
lastNameKana
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
values
.
add
(
"%"
+
memberSearchForm
.
lastNameKana
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
flg
=
true
;
flg
=
true
;
}
}
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
mainPcEmail
))
{
// E-mail(メイン)又はE-mail(サブ)検索
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
searchPcEmail
))
{
if
(
flg
)
sql
.
append
(
" and "
);
if
(
flg
)
sql
.
append
(
" and "
);
sql
.
append
(
"main_pc_email like ? "
);
sql
.
append
(
"(main_pc_email like ? "
);
values
.
add
(
"%"
+
memberSearchForm
.
mainPcEmail
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
values
.
add
(
"%"
+
memberSearchForm
.
searchPcEmail
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
flg
=
true
;
sql
.
append
(
" or sub_pc_email like ? "
);
}
values
.
add
(
"%"
+
memberSearchForm
.
searchPcEmail
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
subPcEmail
))
{
sql
.
append
(
")"
);
if
(
flg
)
sql
.
append
(
" and "
);
sql
.
append
(
"sub_pc_email like ? "
);
values
.
add
(
"%"
+
memberSearchForm
.
subPcEmail
.
trim
().
replace
(
"%"
,
"\\%"
)+
"%"
);
flg
=
true
;
flg
=
true
;
}
}
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
telNo
))
{
if
(!
StringUtil
.
isBlank
(
memberSearchForm
.
telNo
))
{
...
...
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