diff --git a/application/api/controller/Journal.php b/application/api/controller/Journal.php index 8191081..787af8a 100644 --- a/application/api/controller/Journal.php +++ b/application/api/controller/Journal.php @@ -112,7 +112,7 @@ class Journal extends Controller { $rearr = $journal_info['relate']==''?[]:explode(',',$journal_info['relate']); $relatelist = $this->journal_obj->where('journal_id','in',$rearr)->where('state',0)->select(); $absList = $this->journal_abs_obj->where('journal_id', $data['journal_id'])->where('state', 0)->order('sort')->select(); - $stageList = $this->journal_stage_obj->where('journal_id', $data['journal_id'])->where('is_publish', 1)->where('state', 0)->order('journal_stage_id desc')->select(); + $stageList = $this->journal_stage_obj->where('journal_id', $data['journal_id'])->where('is_publish', 1)->where('state', 0)->order('stage_year desc,stage_vol desc')->select(); return json(['code' => 0, 'msg' => 'success', 'data' => ['journal' => $journal_info,'relats'=>$relatelist ,'journalAbs' => $absList, 'journalStage' => $stageList]]); }