|
@@ -111,7 +111,7 @@ class MusicService extends BaseService
|
|
|
$dataList = $this->model::from('musics as m')
|
|
$dataList = $this->model::from('musics as m')
|
|
|
->leftJoin('music_sheets as ms', 'm.sheet_id', '=', 'ms.id')
|
|
->leftJoin('music_sheets as ms', 'm.sheet_id', '=', 'ms.id')
|
|
|
->where(function ($query) use ($params) {
|
|
->where(function ($query) use ($params) {
|
|
|
- $query->where(['m.mark'=>1,'a.status'=> 1]);
|
|
|
|
|
|
|
+ $query->where(['m.mark'=>1,'m.status'=> 1]);
|
|
|
|
|
|
|
|
$title = isset($params['title']) ? trim($params['title']) : '';
|
|
$title = isset($params['title']) ? trim($params['title']) : '';
|
|
|
if (!empty($title)) {
|
|
if (!empty($title)) {
|