This commit is contained in:
wangjinlei
2025-04-01 13:20:26 +08:00
parent 43a9768b0c
commit 7a619af589

View File

@@ -341,7 +341,10 @@ class Journal extends Controller
// $list3 = $this->article_cite_obj->where("journal_id",$journal['journal_id'])->where("state",1)->where("ctime",">",$y_time)->select();
$y_time = date("Y");
//获取前两年的分期信息
$y_time_stages = $this->journal_stage_obj->where("journal_id",$journal['journal_id'])->whereIn("stage_year",[$y_time-1,$y_time-2])->column("journal_stage_id");
$y_time_stages = $this->journal_stage_obj
->where("journal_id",$journal['journal_id'])
->whereIn("stage_year",[$y_time-1,$y_time-2])
->column("journal_stage_id");
$list3 = $this->article_cite_obj
->field("j_article_cite.*")
->join("j_article","j_article.article_id = j_article_cite.article_id","left")