From 3b5a892c753fd4ebb37bad4c48a64e4763d2eb75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E6=A1=83?= <1098598843@qq.com> Date: Thu, 2 Feb 2023 14:05:59 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/controller/Maintainentry.php b/app/api/controller/Maintainentry.php index d55b20a..b9f83ad 100644 --- a/app/api/controller/Maintainentry.php +++ b/app/api/controller/Maintainentry.php @@ -624,13 +624,14 @@ class Maintainentry extends BaseController // 获取种植信息 $where['user_id'] = $user_id; - $res = Db::table('fa_szxc_information_planting')->where($where)->field("id,user_id,tools_msg,crops_msg,createtime,land_area,is_wz,nature_of_land,work_name,work_gender,work_phone,work_relation,work_id")->find(); + $res = Db::table('fa_szxc_information_planting')->where($where)->field("id,user_id,tools_msg,crops_msg,createtime,land_area,is_wz,nature_of_land,work_name,work_gender,work_phone,work_relation,work_id,breed_area,breed_msg")->find(); if ($res) { $find=Db::table('fa_category')->where('id',$res['nature_of_land'])->find(); $res['nature_of_land_id']=$res['nature_of_land']; $res['nature_of_land']=$find['name']; $res['tools_msg'] = $res['tools_msg'] ? json_decode($res['tools_msg'], 1):[]; $res['crops_msg'] = $res['crops_msg'] ? json_decode($res['crops_msg'], 1):[]; + $res['breed_msg'] = $res['breed_msg'] ? json_decode($res['breed_msg'], 1):[]; $this->apiSuccess('获取成功', $res, 1); } else { $this->apiError('暂无数据');