Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
243ae9ec
Commit
243ae9ec
authored
Dec 17, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
d9599218
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
FilmService.java
src/main/java/com/egolm/film/api/service/FilmService.java
+5
-0
EmailServiceImpl.java
...ava/com/egolm/film/api/service/impl/EmailServiceImpl.java
+3
-1
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+1
-0
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+19
-1
No files found.
src/main/java/com/egolm/film/api/service/FilmService.java
View file @
243ae9ec
...
...
@@ -3,6 +3,9 @@ package com.egolm.film.api.service;
import
java.util.List
;
import
java.util.Map
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.bean.Fc_member_film
;
import
com.egolm.film.bean.Fc_member_film_enroll
;
...
...
@@ -13,6 +16,8 @@ import com.egolm.film.bean.model.Fc_member_film_base_model;
public
interface
FilmService
{
Logger
logger
=
LoggerFactory
.
getLogger
(
FilmService
.
class
);
List
<
Fc_member_film_issuer
>
queryMemberFilmIssuerList
(
Long
member_film_id
);
List
<
Fc_member_film_playactor
>
queryMemberFilmPlayactorList
(
Long
member_film_id
);
...
...
src/main/java/com/egolm/film/api/service/impl/EmailServiceImpl.java
View file @
243ae9ec
...
...
@@ -21,6 +21,8 @@ public class EmailServiceImpl implements EmailService {
@Value
(
"${com.egolm.film.email.smtp.username}"
)
private
String
username
;
@Value
(
"${com.egolm.film.email.smtp.password}"
)
private
String
password
;
@Value
(
"${spring.profiles.active}"
)
private
String
profiles
;
@Autowired
JdbcTemplate
jdbcTemplate
;
...
...
@@ -38,7 +40,7 @@ public class EmailServiceImpl implements EmailService {
new
Thread
()
{
public
void
run
()
{
try
{
MailUtil
.
sendBySmtp
(
host
,
port
,
is_auth
,
username
,
password
,
from
,
subject
,
content
,
null
,
email
);
MailUtil
.
sendBySmtp
(
host
,
port
,
is_auth
,
username
,
password
,
from
,
subject
,
content
,
null
,
!
profiles
.
equals
(
"pro"
)
?
"sun.nana@egolm.com"
:
email
);
record
.
setSend_state
(
1
);
}
catch
(
Exception
e
)
{
record
.
setSend_state
(
2
);
...
...
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
243ae9ec
...
...
@@ -311,6 +311,7 @@ public class FilmServiceImpl implements FilmService {
jdbcTemplate
.
batchUpdate
(
sql
,
args
);
}
else
{
throw
new
XException
(
messages
.
get
(
"err.args_nums"
));
}
}
...
...
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
243ae9ec
...
...
@@ -26,6 +26,7 @@ import com.egolm.film.api.service.ReviewService;
import
com.egolm.film.bean.Fc_member
;
import
com.egolm.film.bean.Fc_member_film
;
import
com.egolm.film.bean.Fc_member_film_enroll
;
import
com.egolm.film.config.XRException
;
import
com.egolm.film.model.LoginToken
;
import
com.egolm.film.util.Common
;
...
...
@@ -123,8 +124,25 @@ public class AdminFirstController {
memberFilmService
.
mergeMemberFilm
(
film
);
memberFilmService
.
pass
(
member_film_id
);
List
<
Fc_member_film_enroll
>
enrolls
=
memberFilmService
.
queryFilmEnrollList
(
member_film_id
);
Integer
enroll_1_2
=
null
;
Integer
enroll_4
=
null
;
for
(
Fc_member_film_enroll
enroll
:
enrolls
)
{
reviewService
.
toFirstRound
(
member_film_id
,
enroll
.
getEnroll_type_id
());
Integer
enroll_type_id
=
enroll
.
getEnroll_type_id
();
if
(
enroll_type_id
==
1
||
enroll_type_id
==
2
)
{
if
(
enroll_1_2
==
null
)
{
enroll_1_2
=
enroll_type_id
;
}
else
{
throw
new
XRException
(
"不能同时申请亚新和金爵流程"
);
}
}
else
if
(
enroll_type_id
==
4
)
{
enroll_4
=
enroll_type_id
;
}
}
if
(
enroll_1_2
!=
null
)
{
reviewService
.
toFirstRound
(
member_film_id
,
enroll_1_2
);
}
else
if
(
enroll_4
!=
null
)
{
reviewService
.
toFirstRound
(
member_film_id
,
enroll_4
);
}
Fc_member_film
memberFilm
=
memberFilmService
.
queryMemberFilmById
(
member_film_id
);
Fc_member
member
=
memberService
.
getMemberById
(
memberFilm
.
getMember_id
());
...
...
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