From 47812418b8a32c3a72f4eb7f0c9b38f375d80f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=A1=83?= <1098598843@qq.com> Date: Wed, 29 Mar 2023 16:14:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Maintainentry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/Maintainentry.php b/app/api/controller/Maintainentry.php index 3a39dbb..afc38df 100644 --- a/app/api/controller/Maintainentry.php +++ b/app/api/controller/Maintainentry.php @@ -2009,7 +2009,7 @@ class Maintainentry extends BaseController $where['user_id'] = $this->request->uid; $result = Db::table('cms_planting_information')->where($where) ->withAttr('createtime', function ($val,$data) { - return date('Y-m-d H:i:s',$data['createtime']); + return date('Y-m-d',$data['createtime']); }) ->find(); if ($result) { @@ -2066,7 +2066,7 @@ class Maintainentry extends BaseController $result = Db::table('cms_planting_information')->where($where)->whereIn('type_id',$ids)->page($page,$limit)->order($order. ' desc') ->withAttr('createtime', function ($val,$data) { - return date('Y-m-d H:i:s',$data['createtime']); + return date('Y-m-d',$data['createtime']); }) ->withAttr('name', function ($val,$data) { return Db::table('cms_planting_type')->where('id',$data['type_id'])->value('name');