|
|
@@ -40,7 +40,7 @@ class CinemaSchedRepository extends BaseRepository
|
|
40
|
40
|
public function getFilmSchedDate($film_sign)
|
|
41
|
41
|
{
|
|
42
|
42
|
$field = 'show_date';
|
|
43
|
|
- $where = [['film_sign', '=', $film_sign], ['show_date', '>=', strtotime(date('Y-m-d'))]];
|
|
|
43
|
+ $where = ['film_sign' => $film_sign, 'date' => strtotime(date('Y-m-d'))];
|
|
44
|
44
|
|
|
45
|
45
|
$show_date = $this->dao->search(null, $where)->field([$field])->order('show_date asc')->group('show_date')->select()->toArray();
|
|
46
|
46
|
foreach ($show_date as $key => $value) {
|
|
|
@@ -63,10 +63,10 @@ class CinemaSchedRepository extends BaseRepository
|
|
63
|
63
|
* @throws \think\db\exception\DbException
|
|
64
|
64
|
* @throws \think\db\exception\ModelNotFoundException
|
|
65
|
65
|
*/
|
|
66
|
|
- public function getFilmSched($page, $limit, $film_sign, $longitude, $latitude, $show_date, $with = [], $order = 1)
|
|
|
66
|
+ public function getFilmSched($page, $limit, $film_sign, $longitude, $latitude, $show_date, $show_time, $with = [], $order = 1)
|
|
67
|
67
|
{
|
|
68
|
68
|
$field = 'sched_sign,cinema_sign,cinema_name,address,show_date,price,longitude,latitude';
|
|
69
|
|
- $where = ['film_sign' => $film_sign, 'show_date' => $show_date];
|
|
|
69
|
+ $where = ['film_sign' => $film_sign, 'show_date' => $show_date, 'show_time' => $show_time];
|
|
70
|
70
|
|
|
71
|
71
|
$cinema_sched = $this->dao->search(null, $where)->when($with, function ($query) use ($with) {
|
|
72
|
72
|
$query->with($with);
|