Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
149d9216
Commit
149d9216
authored
Apr 24, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
386c3e5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
CinemaController.java
...n/java/com/egolm/film/api/web/admin/CinemaController.java
+8
-2
No files found.
src/main/java/com/egolm/film/api/web/admin/CinemaController.java
View file @
149d9216
...
...
@@ -113,9 +113,15 @@ public class CinemaController {
@ApiOperation
(
"编辑场次"
)
public
Object
getShowtimeList
()
{
List
<
Map
<
String
,
Object
>>
list
=
service
.
queryShowtimeList
();
List
<
String
>
dates
=
new
ArrayList
<
String
>();
List
<
String
>
times
=
new
ArrayList
<
String
>();
for
(
Map
<
String
,
Object
>
map
:
list
)
{
Date
date
=
(
Date
)
map
.
get
(
"show_date"
);
map
.
put
(
"show_date"
,
DateUtil
.
format
(
date
,
"yyyy-MM-dd"
));
String
show_date
=
DateUtil
.
format
(
date
,
"yyyy-MM-dd"
);
map
.
put
(
"show_date"
,
show_date
);
String
show_time
=
(
String
)
map
.
get
(
"show_time"
);
dates
.
add
(
show_date
);
times
.
add
(
show_time
);
}
Map
<
String
,
List
<
Map
<
String
,
Object
>>>
datas
=
Util
.
listToML
(
list
,
"show_date"
);
for
(
String
key
:
datas
.
keySet
())
{
...
...
@@ -129,6 +135,6 @@ public class CinemaController {
}
});
}
return
Rjx
.
jsonOk
().
setData
(
new
TreeMap
<
String
,
List
<
Map
<
String
,
Object
>>>(
datas
));
return
Rjx
.
jsonOk
().
set
(
"dates"
,
dates
).
set
(
"times"
,
times
).
set
Data
(
new
TreeMap
<
String
,
List
<
Map
<
String
,
Object
>>>(
datas
));
}
}
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