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('暂无数据');