update
This commit is contained in:
parent
e8d1ae2416
commit
d897fce646
@ -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'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user