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
50016f92
Commit
50016f92
authored
Feb 22, 2019
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8e685394
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
281 additions
and
254 deletions
+281
-254
FilmServiceImpl.java
...java/com/egolm/film/api/service/impl/FilmServiceImpl.java
+15
-4
AdminFirstController.java
...va/com/egolm/film/api/web/admin/AdminFirstController.java
+266
-250
No files found.
src/main/java/com/egolm/film/api/service/impl/FilmServiceImpl.java
View file @
50016f92
...
...
@@ -35,6 +35,7 @@ import com.egolm.film.bean.model.Fc_member_film_base_model;
import
com.egolm.film.config.WebMvcConfig
;
import
com.egolm.film.config.XException
;
import
com.egolm.film.config.XRException
;
import
com.egolm.film.util.FilmContrants
;
import
com.egolm.film.util.SqlWhere
;
...
...
@@ -635,15 +636,25 @@ public class FilmServiceImpl implements FilmService {
@Override
public
void
updateFilmUploadState
(
String
[]
film_id
,
String
[]
number
)
{
if
(
film_id
.
length
==
number
.
length
)
{
List
<
Object
[]>
objs
=
new
ArrayList
<
Object
[]>();
List
<
Object
[]>
uploadObjs
=
new
ArrayList
<
Object
[]>();
List
<
Object
[]>
filmObjs
=
new
ArrayList
<
Object
[]>();
for
(
int
i
=
0
;
i
<
film_id
.
length
;
i
++)
{
objs
.
add
(
new
Object
[]{
uploadObjs
.
add
(
new
Object
[]{
FilmContrants
.
UPLOAD_STATUS_INIT
,
film_id
[
i
],
number
[
i
]});
filmObjs
.
add
(
new
Object
[]{
FilmContrants
.
UPLOAD_STATUS_INIT
,
film_id
[
i
]});
}
String
sql
=
"update fc_film_upload set upload_state = 0 ,upload__error_message= '',upload_progress='0%' where film_id = ? and number = ? "
;
jdbcTemplate
.
batchUpdate
(
sql
,
objs
);
String
updateSql
=
"update fc_film_upload set upload_state = ? ,upload__error_message= '',upload_progress='0%' where film_id = ? and number = ? "
;
jdbcTemplate
.
batchUpdate
(
updateSql
,
uploadObjs
);
String
filmSql
=
"update fc_member_film set upload_state = ? where film_no = ? "
;
jdbcTemplate
.
batchUpdate
(
filmSql
,
filmObjs
);
}
}
}
src/main/java/com/egolm/film/api/web/admin/AdminFirstController.java
View file @
50016f92
This diff is collapsed.
Click to expand it.
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