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
cb971dda
Commit
cb971dda
authored
Apr 26, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
ee37a593
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
CinemaController.java
...n/java/com/egolm/film/api/web/admin/CinemaController.java
+4
-3
No files found.
src/main/java/com/egolm/film/api/web/admin/CinemaController.java
View file @
cb971dda
package
com
.
egolm
.
film
.
api
.
web
.
admin
;
package
com
.
egolm
.
film
.
api
.
web
.
admin
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Comparator
;
import
java.util.Comparator
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -114,7 +115,7 @@ public class CinemaController {
...
@@ -114,7 +115,7 @@ public class CinemaController {
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"show_date"
,
value
=
"排片日期"
,
allowMultiple
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"show_date"
,
value
=
"排片日期"
,
allowMultiple
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"show_time"
,
value
=
"排片时间"
,
allowMultiple
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"show_time"
,
value
=
"排片时间"
,
allowMultiple
=
true
),
})
})
public
Object
saveShowtime
(
Integer
cinema_id
,
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
[]
show_date
,
String
[]
show_time
)
{
public
Object
saveShowtime
(
Integer
cinema_id
,
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
[]
show_date
,
String
[]
show_time
,
Double
ticket_price
,
Integer
is_important
)
{
Date
now
=
new
Date
();
Date
now
=
new
Date
();
List
<
Object
>
list
=
new
ArrayList
<
Object
>();
List
<
Object
>
list
=
new
ArrayList
<
Object
>();
for
(
Date
date
:
show_date
)
{
for
(
Date
date
:
show_date
)
{
...
@@ -125,8 +126,8 @@ public class CinemaController {
...
@@ -125,8 +126,8 @@ public class CinemaController {
showtime
.
setCinema_id
(
cinema_id
);
showtime
.
setCinema_id
(
cinema_id
);
showtime
.
setCreate_time
(
now
);
showtime
.
setCreate_time
(
now
);
showtime
.
setStatus
(
0
);
showtime
.
setStatus
(
0
);
showtime
.
setTicket_price
(
n
ull
);
showtime
.
setTicket_price
(
n
ew
BigDecimal
(
ticket_price
)
);
showtime
.
setIs_important
(
0
);
showtime
.
setIs_important
(
is_important
);
list
.
add
(
showtime
);
list
.
add
(
showtime
);
}
}
}
}
...
...
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