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
04d18335
Commit
04d18335
authored
Feb 22, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
36473887
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
230 additions
and
5 deletions
+230
-5
ExportService.java
src/main/java/com/egolm/film/api/service/ExportService.java
+3
-0
FilmGroupService.java
...ain/java/com/egolm/film/api/service/FilmGroupService.java
+1
-1
ExportServiceImpl.java
...va/com/egolm/film/api/service/impl/ExportServiceImpl.java
+222
-0
FilmGroupServiceImpl.java
...com/egolm/film/api/service/impl/FilmGroupServiceImpl.java
+2
-2
FilmGroupController.java
...ava/com/egolm/film/api/web/admin/FilmGroupController.java
+2
-2
No files found.
src/main/java/com/egolm/film/api/service/ExportService.java
View file @
04d18335
...
...
@@ -14,4 +14,7 @@ public interface ExportService {
Map
<
String
,
String
>
getApplyPassListColumns
();
void
exportApplyPassList
(
ServletOutputStream
os
,
String
[]
columns
,
List
<
Map
<
String
,
Object
>>
list
);
Map
<
String
,
String
>
getReviewPassListColumns
();
void
exportReviewPassList
(
ServletOutputStream
os
,
String
[]
columns
,
List
<
Map
<
String
,
Object
>>
list
);
}
src/main/java/com/egolm/film/api/service/FilmGroupService.java
View file @
04d18335
...
...
@@ -11,7 +11,7 @@ public interface FilmGroupService {
List
<
Map
<
String
,
Object
>>
queryFilmListByGroupId
(
Integer
film_group_id
);
void
updateFilmGroupId
(
Integer
[]
film_id
,
Integer
group_id
);
void
updateFilmGroupId
(
Integer
[]
film_id
,
Integer
group_id
,
String
group_remark
);
void
removeFilmGroupById
(
Integer
[]
id
);
...
...
src/main/java/com/egolm/film/api/service/impl/ExportServiceImpl.java
View file @
04d18335
This diff is collapsed.
Click to expand it.
src/main/java/com/egolm/film/api/service/impl/FilmGroupServiceImpl.java
View file @
04d18335
...
...
@@ -48,12 +48,12 @@ public class FilmGroupServiceImpl implements FilmGroupService {
}
@Override
public
void
updateFilmGroupId
(
Integer
[]
film_id
,
Integer
group_id
)
{
public
void
updateFilmGroupId
(
Integer
[]
film_id
,
Integer
group_id
,
String
group_remark
)
{
Integer
[][]
args
=
new
Integer
[
film_id
.
length
][];
for
(
int
i
=
0
;
i
<
film_id
.
length
;
i
++)
{
args
[
i
]
=
new
Integer
[]
{
group_id
,
film_id
[
i
]};
}
jdbcTemplate
.
batchUpdate
(
"update fc_member_film set film_group_id = ? where id = ?"
,
args
);
jdbcTemplate
.
batchUpdate
(
"update fc_member_film set film_group_id = ?
, group_remark
where id = ?"
,
args
);
}
@Override
...
...
src/main/java/com/egolm/film/api/web/admin/FilmGroupController.java
View file @
04d18335
...
...
@@ -135,8 +135,8 @@ public class FilmGroupController {
@ResponseBody
@PostMapping
(
"updateFilmGroupId"
)
@ApiOperation
(
"更新影片分类"
)
public
Object
updateFilmGroupId
(
Integer
[]
film_id
,
Integer
group_id
)
{
filmGroupService
.
updateFilmGroupId
(
film_id
,
group_id
);
public
Object
updateFilmGroupId
(
Integer
[]
film_id
,
Integer
group_id
,
String
group_remark
)
{
filmGroupService
.
updateFilmGroupId
(
film_id
,
group_id
,
group_remark
);
return
Rjx
.
jsonOk
();
}
...
...
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