From f81178cd33d9725118ce480921609d274b676ad1 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 28 May 2024 11:26:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/svc/order/svc_order_list.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/admin/svc/order/svc_order_list.go b/app/admin/svc/order/svc_order_list.go index 6470a44..007f72e 100644 --- a/app/admin/svc/order/svc_order_list.go +++ b/app/admin/svc/order/svc_order_list.go @@ -488,10 +488,17 @@ func OrderDetail(c *gin.Context) { "time": gjson.Get(order.BuyInfo, "time").String(), "create_at": order.CreateAt.Format("2006-01-02 15:04:05"), "enterprise_name": enterpriseName, - "enterprise_id": utils.IntToStr(order.EnterpriseId), + "enterprise_id": order.EnterpriseId, + "company_id": "", "inside_name": insideName, "goods_info": goodsInfo, } + enterpriseDb := db.EnterpriseDb{} + enterpriseDb.Set() + enterprise, _ := enterpriseDb.GetEnterprise(order.EnterpriseId) + if enterprise != nil { + res["company_id"] = enterprise.CompanyId + } e.OutSuc(c, res, nil) return }