Commit cb971dda authored by Quxl's avatar Quxl

x

parent ee37a593
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(null); showtime.setTicket_price(new BigDecimal(ticket_price));
showtime.setIs_important(0); showtime.setIs_important(is_important);
list.add(showtime); list.add(showtime);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment