This commit is contained in:
wangjinlei
2023-07-14 15:41:27 +08:00
parent 87464357c2
commit 3f289cebec
7 changed files with 100 additions and 13 deletions

View File

@@ -1323,7 +1323,7 @@ class Production extends Base
return jsonError($rule->getError());
}
$p_info = $this->production_article_obj->where('p_article_id', $data['p_article_id'])->where('state', 0)->find();
$p_info = $this->production_article_obj->where('p_article_id', $data['p_article_id'])->find();
//清空之前的引用条目
$this->production_article_refer_obj->where('p_article_id', $p_info['p_article_id'])->update(['state' => 1]);