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
cdd920f2
Commit
cdd920f2
authored
Dec 11, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
a7a65288
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+2
-7
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+0
-1
No files found.
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
cdd920f2
...
@@ -377,14 +377,9 @@ public class FilmServiceImpl implements FilmService {
...
@@ -377,14 +377,9 @@ public class FilmServiceImpl implements FilmService {
@Override
@Override
public
synchronized
Integer
pass
(
Long
member_film_id
)
{
public
synchronized
Integer
pass
(
Long
member_film_id
)
{
this
.
updateEnroll
(
member_film_id
);
this
.
updateEnroll
(
member_film_id
);
Integer
film_no
=
null
;
Integer
film_no
=
jdbcTemplate
.
queryForInt
(
"select ifnull(max(film_no), 0) + 1 from fc_member_film"
);
try
{
film_no
=
jdbcTemplate
.
queryForInt
(
"select max(film_no) from fc_member_film"
);
}
catch
(
Exception
e
)
{
film_no
=
0
;
}
String
sql
=
"update fc_member_film set film_no = ?, apply_state = ?, upload_state = ?, pass_time = ? where id = ?"
;
String
sql
=
"update fc_member_film set film_no = ?, apply_state = ?, upload_state = ?, pass_time = ? where id = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
(
film_no
+
1
)
,
2
,
0
,
System
.
currentTimeMillis
()/
1000L
,
member_film_id
);
jdbcTemplate
.
executeUpdate
(
sql
,
film_no
,
2
,
0
,
System
.
currentTimeMillis
()/
1000L
,
member_film_id
);
return
film_no
;
return
film_no
;
}
}
...
...
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
cdd920f2
...
@@ -114,7 +114,6 @@ public class AdminFirstController {
...
@@ -114,7 +114,6 @@ public class AdminFirstController {
})
})
public
Object
pass
(
Long
member_film_id
,
String
film_type_name_short
)
{
public
Object
pass
(
Long
member_film_id
,
String
film_type_name_short
)
{
memberFilmService
.
verifyFilmDuplicate
(
member_film_id
);
memberFilmService
.
verifyFilmDuplicate
(
member_film_id
);
memberFilmService
.
pass
(
member_film_id
);
Fc_member_film
film
=
new
Fc_member_film
();
Fc_member_film
film
=
new
Fc_member_film
();
film
.
setId
(
member_film_id
);
film
.
setId
(
member_film_id
);
film
.
setFilm_type_name_short
(
film_type_name_short
);
film
.
setFilm_type_name_short
(
film_type_name_short
);
...
...
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