This commit is contained in:
weiz 2024-03-21 14:20:44 +08:00
parent e8d1ae2416
commit d897fce646

View File

@ -15,9 +15,9 @@
namespace app\adminapi\logic\project;
use app\common\logic\BaseLogic;
use app\common\model\project\Project;
use app\common\model\project\ProjectDocument;
use app\common\logic\BaseLogic;
use app\common\model\project\ProjectDocumentSet;
use think\facade\Db;
@ -114,7 +114,6 @@ class ProjectDocumentLogic extends BaseLogic
public static function detail($params): array
{
$data = ProjectDocument::field('id,project_id,classify_id,code,name,describe,version,annex')->findOrEmpty($params['id'])->toArray();
$data['annex'] = json_decode($data['annex']);
$project = Project::field('name,project_code')->where('id', $data['project_id'])->findOrEmpty();
$doc = ProjectDocumentSet::field('large_category,middle_category')->where('id', $data['classify_id'])->findOrEmpty();
$data['project_name'] = $project['name'];