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
16e32420
Commit
16e32420
authored
Dec 21, 2023
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#56954 メールアドレスの種別変更
parent
fa0dfce1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
21 deletions
+51
-21
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberEditAction.java
+29
-15
src/main/java/jp/agentec/sinaburocast/action/user/UserEditAction.java
+19
-5
src/main/resources/application_ja.properties
+2
-1
src/main/webapp/WEB-INF/view/user/userEdit/uEdit.html
+1
-0
No files found.
src/main/java/jp/agentec/sinaburocast/action/admin/member/MemberEditAction.java
View file @
16e32420
...
...
@@ -11,6 +11,7 @@ import java.util.List;
import
javax.mail.MessagingException
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.Globals
;
import
org.apache.struts.action.ActionMessage
;
...
...
@@ -134,6 +135,7 @@ public class MemberEditAction extends AbstractAction {
public
String
confirm
()
{
Member
memberInfo
=
null
;
List
<
Member
>
memberList
=
null
;
if
(
memberEditForm
.
withDrawFlg
!=
null
)
{
memberEditForm
.
withDrawFlg
=
"1"
;
...
...
@@ -155,6 +157,18 @@ public class MemberEditAction extends AbstractAction {
return
"/admin/member/memberEdit.html"
;
}
if
(
StringUtil
.
isNotBlank
(
memberEditForm
.
subPcEmail
)
&&
memberEditForm
.
mainPcEmail
.
equals
(
memberEditForm
.
subPcEmail
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
}
messages
.
add
(
"dupEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E071"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
//携帯メールチェック
// if (!StringUtil.isBlank(memberEditForm.subPcEmail)) {
// if (!SinaburoUtil.mobileAddressCheck(memberEditForm.subPcEmail)) {
...
...
@@ -171,8 +185,8 @@ public class MemberEditAction extends AbstractAction {
//メールアドレス重複チェックPCメール
if
(!
memberEditForm
.
mainPcEmail
.
trim
().
equals
(
memberEditForm
.
mainPcEmailBefore
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mainPcEmail
))
{
member
Info
=
memberService
.
findByMainPc
Email
(
memberEditForm
.
mainPcEmail
);
if
(
memberInfo
!=
null
)
{
member
List
=
memberService
.
findBy
Email
(
memberEditForm
.
mainPcEmail
);
if
(
CollectionUtils
.
isNotEmpty
(
memberList
)
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
...
...
@@ -189,8 +203,8 @@ public class MemberEditAction extends AbstractAction {
if
(
memberEditForm
.
withDrawFlgBefore
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
DEL
)
&&
memberEditForm
.
withDrawFlg
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mainPcEmail
))
{
member
Info
=
memberService
.
findByMainPc
Email
(
memberEditForm
.
mainPcEmail
);
if
(
memberInfo
!=
null
)
{
member
List
=
memberService
.
findBy
Email
(
memberEditForm
.
mainPcEmail
);
if
(
CollectionUtils
.
isNotEmpty
(
memberList
)
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
...
...
@@ -208,14 +222,14 @@ public class MemberEditAction extends AbstractAction {
if
(!
memberEditForm
.
subPcEmail
.
trim
().
equals
(
memberEditForm
.
subPcEmailBefore
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPcEmail
))
{
member
Info
=
memberService
.
findBySubPc
Email
(
memberEditForm
.
subPcEmail
);
if
(
memberInfo
!=
null
)
{
member
List
=
memberService
.
findBy
Email
(
memberEditForm
.
subPcEmail
);
if
(
CollectionUtils
.
isNotEmpty
(
memberList
)
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
}
messages
.
add
(
"subPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E01
5
"
)));
messages
.
add
(
"subPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E01
4
"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberEdit.html"
;
}
...
...
@@ -224,13 +238,13 @@ public class MemberEditAction extends AbstractAction {
if
(
memberEditForm
.
withDrawFlgBefore
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
DEL
)
&&
memberEditForm
.
withDrawFlg
.
equals
(
SinaburoConstant
.
MemberDelFlg
.
NOT_DEL
))
{
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPcEmail
))
{
member
Info
=
memberService
.
findBySubPc
Email
(
memberEditForm
.
subPcEmail
.
trim
());
if
(
memberInfo
!=
null
)
{
member
List
=
memberService
.
findBy
Email
(
memberEditForm
.
subPcEmail
.
trim
());
if
(
CollectionUtils
.
isNotEmpty
(
memberList
)
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
}
messages
.
add
(
"subPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E01
5
"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
messages
.
add
(
"subPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E01
4
"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/admin/member/memberEdit.html"
;
...
...
@@ -271,8 +285,8 @@ public class MemberEditAction extends AbstractAction {
}
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
mainPcEmail
))
{
member
Info
=
memberService
.
findByMainPc
Email
(
memberEditForm
.
mainPcEmail
);
if
(
memberInfo
!=
null
)
{
member
List
=
memberService
.
findBy
Email
(
memberEditForm
.
mainPcEmail
);
if
(
CollectionUtils
.
isNotEmpty
(
memberList
)
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
...
...
@@ -284,13 +298,13 @@ public class MemberEditAction extends AbstractAction {
}
}
if
(!
StringUtil
.
isBlank
(
memberEditForm
.
subPcEmail
))
{
member
Info
=
memberService
.
findBySubPc
Email
(
memberEditForm
.
subPcEmail
);
if
(
memberInfo
!=
null
)
{
member
List
=
memberService
.
findBy
Email
(
memberEditForm
.
subPcEmail
);
if
(
CollectionUtils
.
isNotEmpty
(
memberList
)
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
}
messages
.
add
(
"subPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E01
5
"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
messages
.
add
(
"subPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E01
4
"
)+
SinaburoViewUtil
.
getMessage
(
"errors.E049"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
err
=
true
;
//return "/admin/member/memberEdit.html";
...
...
src/main/java/jp/agentec/sinaburocast/action/user/UserEditAction.java
View file @
16e32420
...
...
@@ -5,6 +5,7 @@ import java.text.SimpleDateFormat;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.log4j.Logger
;
import
org.apache.struts.Globals
;
import
org.apache.struts.action.ActionMessage
;
...
...
@@ -167,6 +168,7 @@ public class UserEditAction extends AbstractAction {
Member
memberInfoSession
=
getMember
();
Member
memberInfo
=
null
;
List
<
Member
>
memberList
=
null
;
// メールアドレス登録チェック
if
(
StringUtil
.
isBlank
(
userEditForm
.
mainPcEmail
))
{
...
...
@@ -181,6 +183,18 @@ public class UserEditAction extends AbstractAction {
return
"/user/userEdit/uEdit.html"
;
}
if
(
StringUtil
.
isNotBlank
(
userEditForm
.
subPcEmail
)
&&
userEditForm
.
mainPcEmail
.
equals
(
userEditForm
.
subPcEmail
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
}
messages
.
add
(
"dupEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E071"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
//携帯メールチェック
// if (!StringUtil.isBlank(userEditForm.subPcEmail)) {
...
...
@@ -197,8 +211,8 @@ public class UserEditAction extends AbstractAction {
//メールアドレス重複チェックPCメール
if
(!
userEditForm
.
mainPcEmail
.
trim
().
equals
(
memberInfoSession
.
mainPcEmail
))
{
member
Info
=
memberService
.
findByMainPc
Email
(
userEditForm
.
mainPcEmail
);
if
(
memberInfo
!=
null
)
{
member
List
=
memberService
.
findBy
Email
(
userEditForm
.
mainPcEmail
);
if
(
CollectionUtils
.
isNotEmpty
(
memberList
)
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
...
...
@@ -213,14 +227,14 @@ public class UserEditAction extends AbstractAction {
//メールアドレス重複チェック携帯メール
if
(!
userEditForm
.
subPcEmail
.
trim
().
equals
(
memberInfoSession
.
subPcEmail
))
{
if
(!
StringUtil
.
isBlank
(
userEditForm
.
subPcEmail
))
{
member
Info
=
memberService
.
findBySubPc
Email
(
userEditForm
.
subPcEmail
);
if
(
memberInfo
!=
null
)
{
member
List
=
memberService
.
findBy
Email
(
userEditForm
.
subPcEmail
);
if
(
CollectionUtils
.
isNotEmpty
(
memberList
)
)
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
messages
==
null
)
{
messages
=
new
ActionMessages
();
}
messages
.
add
(
"subPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E01
5
"
)));
messages
.
add
(
"subPcEmail"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.E01
4
"
)));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
...
...
src/main/resources/application_ja.properties
View file @
16e32420
...
...
@@ -53,7 +53,7 @@ errors.E010=E-mail(\u30e1\u30a4\u30f3)\u306f\u5fc5\u9808\u3067\u3059\u3002
errors.E011
=
\u
30d1
\u
30b9
\u
30ef
\u
30fc
\u
30c9
\u
304c
\u
4e00
\u
81f4
\u3057\u
307e
\u
305b
\u3093\u3002
errors.E012
=
\u
30ed
\u
30b0
\u
30a4
\u
30f3ID
\u3082\u3057\u
304f
\u
306f
\u
30d1
\u
30b9
\u
30ef
\u
30fc
\u
30c9
\u
304c
\u
4e0d
\u
6b63
\u3067\u3059\u3002
errors.E013
=
\u
73fe
\u5728\u
306e
\u
30dd
\u
30a4
\u
30f3
\u
30c8
\u6570\u3088\u
308a
\u
30dd
\u
30a4
\u
30f3
\u
30c8
\u
6d88
\u
8cbb
\u6570\u
304c
\u5927\u
304d
\u3044\u3067\u3059\u3002
errors.E014
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
\u
30d1
\u
30bd
\u
30b3
\u
30f3
E-mail
\u3067\u3059\u3002
errors.E014
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306eE-mail
\u3067\u3059\u3002
errors.E015
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
\u
643a
\u
5e2f
\u
96fb
\u
8a71E-mail
\u3067\u3059\u3002
errors.E016
=
\u
65e2
\u
306b
\u
767b
\u9332\u
6e08
\u
307f
\u
306e
\u
30ed
\u
30b0
\u
30a4
\u
30f3ID
\u3067\u3059\u3002
errors.E017
=
\u
65e5
\u5225\u
306e
\u
691c
\u
7d22
\u
306f
\u
671f
\u9593
(from)
\u3092\u5165\u
529b
\u3057\u3066\u
304f
\u3060\u3055\u3044\u3002
...
...
@@ -112,6 +112,7 @@ errors.E067=ICHICO\u30dd\u30a4\u30f3\u30c8\u4f1a\u54e1\u756a\u53f7\u3092\u5165\u
errors.E068
=
ICHICO
\u
30dd
\u
30a4
\u
30f3
\u
30c8
\u
4f1a
\u
54e1
\u
756a
\u
53f7
\u
306f
\u
534a
\u
89d2
\u6570\u
5b57
\u3067\u5165\u
529b
\u3057\u3066\u
304f
\u3060\u3055\u3044\u3002
errors.E069
=
ICHICO
\u
30dd
\u
30a4
\u
30f3
\u
30c8
\u
4f1a
\u
54e1
\u
756a
\u
53f7
\u
306f8
\u6841\u3067\u5165\u
529b
\u3057\u3066\u
304f
\u3060\u3055\u3044\u3002
errors.E070
=
\u
5f53
\u6708\u
306f
\u
65e2
\u
306b
\u7533\u
8acb
\u
6e08
\u
307f
\u3067\u3059\u3002
errors.E071
=
E-mail(
\u
30e1
\u
30a4
\u
30f3)
\u3068
E-mail(
\u
30b5
\u
30d6)
\u
304c
\u
91cd
\u8907\u3067\u3059\u3002
#\u30b7\u30b9\u30c6\u30e0
errors.S000
=
\u
30b7
\u
30b9
\u
30c6
\u
30e0
\u
30a8
\u
30e9
\u
30fc
\u
304c
\u
767a
\u
751f
\u3057\u
307e
\u3057\u
305f
\u3002
...
...
src/main/webapp/WEB-INF/view/user/userEdit/uEdit.html
View file @
16e32420
...
...
@@ -120,6 +120,7 @@
<td
class=
"listmenu"
>
E-mail(サブ)
</td>
<td
class=
"listcts"
>
<input
type=
"text"
size=
"40"
name=
"subPcEmail"
maxlength=
"128"
value=
"$!escape.html($!{userEditForm.subPcEmail})"
>
<TABLE
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
><TR><Td>
$!tools.getMsg("subPcEmail")
</Td></TR></TABLE>
</td>
</tr>
...
...
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