Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sentinel
Commits
9706d9f1
Commit
9706d9f1
authored
Jan 08, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
b2039d08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
EmailServiceImpl.java
...ava/com/egolm/film/api/service/impl/EmailServiceImpl.java
+5
-3
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+1
-3
No files found.
src/main/java/com/egolm/film/api/service/impl/EmailServiceImpl.java
View file @
9706d9f1
...
...
@@ -79,6 +79,8 @@ public class EmailServiceImpl implements EmailService {
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>();
Integer
adminid
=
(
Integer
)
adminTokenService
.
getToken
().
getId
();
Fc_member_film
memberFilm
=
filmService
.
queryMemberFilmById
(
member_film_id
);
String
film_no
=
StringUtil
.
formatLength
(
memberFilm
.
getFilm_no
(),
"0000"
);
map
.
put
(
"film_no"
,
film_no
);
Fc_member
member
=
null
;
try
{
member
=
memberService
.
getMemberById
(
memberFilm
.
getMember_id
());
...
...
@@ -107,15 +109,15 @@ public class EmailServiceImpl implements EmailService {
if
(
filmName
==
null
||
filmName
.
trim
().
length
()
==
0
)
{
filmName
=
memberFilm
.
getCn_name
();
}
String
film_no
=
StringUtil
.
formatLength
(
memberFilm
.
getFilm_no
(),
"0000"
);
content
=
MessageFormat
.
format
(
content
,
member
.
getUsername
(),
film_no
,
filmName
==
null
?
""
:
filmName
);
this
.
send
(
2
,
adminid
,
subject
,
content
,
member
.
getEmail
());
map
.
put
(
"email"
,
member
.
getEmail
());
map
.
put
(
"film_no"
,
film_no
);
return
map
;
}
else
{
return
new
HashMap
<
String
,
Object
>(
);
map
.
put
(
"email"
,
"后台申报影片,未发送邮件"
);
}
return
map
;
}
public
static
void
main
(
String
[]
args
)
{
...
...
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
9706d9f1
...
...
@@ -128,9 +128,7 @@ public class AdminFirstController {
reviewService
.
toFirstRound
(
member_film_id
);
Map
<
String
,
Object
>
map
=
emailService
.
sendByTemplate_01
(
member_film_id
,
"doc/first_pass"
);
Rjx
rjx
=
Rjx
.
jsonOk
();
if
(
map
!=
null
)
{
rjx
.
putAll
(
map
);
}
rjx
.
putAll
(
map
);
return
rjx
;
}
...
...
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