From 1a0bf4155588c0b5695e3b69e7d41f127f6d4b41 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Thu, 2 Nov 2023 14:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/ProjectIndex.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/api/controller/ProjectIndex.php b/app/api/controller/ProjectIndex.php index db24e22..8aea64e 100644 --- a/app/api/controller/ProjectIndex.php +++ b/app/api/controller/ProjectIndex.php @@ -269,6 +269,9 @@ class ProjectIndex extends ApiController $detail['tasks'] = Db::name('ProjectTask')->where([['project_id', '=', $detail['id']],['delete_time', '=', 0]])->count(); $detail['tasks_finish'] = Db::name('ProjectTask')->where([['project_id', '=', $detail['id']],['flow_status', '>', 2], ['delete_time', '=', 0]])->count(); $detail['tasks_unfinish'] = $detail['tasks'] - $detail['tasks_finish']; + $detail['start_time'] = date('Y-m-d H:i:s', $detail['start_time']); + $detail['end_time'] = date('Y-m-d H:i:s', $detail['end_time']); + $detail['create_time'] = date('Y-m-d H:i:s', $detail['create_time']); //相关附件 $file_array = Db::name('ProjectFile') @@ -313,7 +316,8 @@ class ProjectIndex extends ApiController ->where(array('s.action_id' => $id, 's.type' => 2)) ->select()->toArray(); foreach ($step_record as $kk => &$vv) { - $vv['check_time_str'] = date('Y-m-d H:i', $vv['check_time']); + $vv['check_time_str'] = date('Y-m-d H:i:s', $vv['check_time']); + $vv['check_time'] = date('Y-m-d H:i:s', $vv['check_time']); $vv['status_str'] = '提交'; if($vv['status'] == 1){ $vv['status_str'] = '确认完成';