This commit is contained in:
wangjinlei
2022-12-21 18:41:15 +08:00
parent 6cd29940ee
commit 9144a49c2b
3 changed files with 15 additions and 7 deletions

View File

@@ -103,7 +103,7 @@ class Board extends Controller {
return jsonError($rule->getError());
}
$journal_info = $this->journal_obj->where('issn',$data['issn'])->find();
$groups = $this->board_group_obj->where('journal_id',$journal_info['journal_id'])->where('state',0)->select();
$groups = $this->board_group_obj->where('journal_id',$journal_info['journal_id'])->where('state',0)->order('sort desc')->select();
foreach($groups as $k => $v){
$cache_num = $this->board_obj->where('journal_id',$journal_info['journal_id'])
->where('state',0)