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
02a6f052
Commit
02a6f052
authored
Apr 24, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
149d9216
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
CinemaService.java
src/main/java/com/egolm/film/api/service/CinemaService.java
+1
-1
CinemaServiceImpl.java
...va/com/egolm/film/api/service/impl/CinemaServiceImpl.java
+3
-3
CinemaController.java
...n/java/com/egolm/film/api/web/admin/CinemaController.java
+5
-2
No files found.
src/main/java/com/egolm/film/api/service/CinemaService.java
View file @
02a6f052
...
@@ -13,6 +13,6 @@ public interface CinemaService {
...
@@ -13,6 +13,6 @@ public interface CinemaService {
void
setTmpData
(
Integer
showtimeId
);
void
setTmpData
(
Integer
showtimeId
);
List
<
Map
<
String
,
Object
>>
queryShowtimeList
();
List
<
Map
<
String
,
Object
>>
queryShowtimeList
(
Integer
cinemaId
);
}
}
src/main/java/com/egolm/film/api/service/impl/CinemaServiceImpl.java
View file @
02a6f052
...
@@ -63,10 +63,10 @@ public class CinemaServiceImpl implements CinemaService {
...
@@ -63,10 +63,10 @@ public class CinemaServiceImpl implements CinemaService {
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
queryShowtimeList
()
{
public
List
<
Map
<
String
,
Object
>>
queryShowtimeList
(
Integer
cinemaId
)
{
Date
dodayStart
=
DateUtil
.
start
(
new
Date
());
Date
dodayStart
=
DateUtil
.
start
(
new
Date
());
String
sql
=
"select * from fc_cinema_showtime where show_date >= ?"
;
String
sql
=
"select * from fc_cinema_showtime where show_date >= ?
and cinema_id = ?
"
;
return
jdbcTemplate
.
queryForList
(
sql
,
dodayStart
);
return
jdbcTemplate
.
queryForList
(
sql
,
dodayStart
,
cinemaId
);
}
}
}
}
src/main/java/com/egolm/film/api/web/admin/CinemaController.java
View file @
02a6f052
...
@@ -111,8 +111,11 @@ public class CinemaController {
...
@@ -111,8 +111,11 @@ public class CinemaController {
@ResponseBody
@ResponseBody
@PostMapping
(
"updateShowtime"
)
@PostMapping
(
"updateShowtime"
)
@ApiOperation
(
"编辑场次"
)
@ApiOperation
(
"编辑场次"
)
public
Object
getShowtimeList
()
{
@ApiImplicitParams
({
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryShowtimeList
();
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"cinema_id"
,
value
=
"影院放映厅ID"
),
})
public
Object
getShowtimeList
(
Integer
cinema_id
)
{
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryShowtimeList
(
cinema_id
);
List
<
String
>
dates
=
new
ArrayList
<
String
>();
List
<
String
>
dates
=
new
ArrayList
<
String
>();
List
<
String
>
times
=
new
ArrayList
<
String
>();
List
<
String
>
times
=
new
ArrayList
<
String
>();
for
(
Map
<
String
,
Object
>
map
:
list
)
{
for
(
Map
<
String
,
Object
>
map
:
list
)
{
...
...
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