|
|
@@ -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 |
|
|
|
} |
|
|
|