Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
X
xplayer
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
曲欣亮
xplayer
Commits
92445f78
Commit
92445f78
authored
May 28, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
d75087e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AdminVideoController.java
...com/egolm/xplayer/web/api/admin/AdminVideoController.java
+5
-5
No files found.
src/main/java/com/egolm/xplayer/web/api/admin/AdminVideoController.java
View file @
92445f78
...
...
@@ -113,20 +113,20 @@ public class AdminVideoController {
for
(
Map
<
String
,
Object
>
map
:
list
)
{
String
video_name
=
(
String
)
map
.
get
(
"cn_name"
);
Integer
is_sales
=
0
;
String
profiles
=
(
String
)
map
.
get
(
"intro"
);
String
video_
profiles
=
(
String
)
map
.
get
(
"intro"
);
String
country
=
(
String
)
map
.
get
(
"film_country"
);
String
upload_id
=
(
String
)
map
.
get
(
"upload_id"
);
String
completion_date
=
(
String
)
map
.
get
(
"completion_date"
);
Integer
year
=
null
;
Integer
video_
year
=
null
;
try
{
Date
date
=
DateUtil
.
parse
(
completion_date
,
"yyyy-MM"
);
year
=
Integer
.
valueOf
(
DateUtil
.
format
(
date
,
"yyyy"
));
video_
year
=
Integer
.
valueOf
(
DateUtil
.
format
(
date
,
"yyyy"
));
}
catch
(
Exception
e
)
{}
String
cover
=
null
;
Integer
source
=
1
;
String
source_key
=
map
.
get
(
"id"
)
+
""
;
Object
[]
argArray
=
new
Object
[]
{
video_name
,
is_sales
,
profiles
,
country
,
year
,
cover
,
source
,
source_key
,
source
,
source_key
};
String
sql
=
"insert into t_video (video_name, is_sales,
profiles, country,
year, cover, source, source_key) select ?, ?, ?, ?, ?, ?, ?, ? from dual where not exists(select 1 from t_video where source = ? and source_key = ?)"
;
Object
[]
argArray
=
new
Object
[]
{
video_name
,
is_sales
,
video_profiles
,
country
,
video_
year
,
cover
,
source
,
source_key
,
source
,
source_key
};
String
sql
=
"insert into t_video (video_name, is_sales,
video_profiles, country, video_
year, cover, source, source_key) select ?, ?, ?, ?, ?, ?, ?, ? from dual where not exists(select 1 from t_video where source = ? and source_key = ?)"
;
KeyHolder
keyHolder
=
new
GeneratedKeyHolder
();
jdbcTemplate
.
update
(
new
PreparedStatementCreator
()
{
public
PreparedStatement
createPreparedStatement
(
Connection
connection
)
throws
SQLException
{
...
...
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