|
@@ -44,6 +44,29 @@ func Detail(ctx context.Context, param model.OrderDetailParams) (map[string]inte
|
|
m["activityName"] = gconv.String(activityData.Map()["name"])
|
|
m["activityName"] = gconv.String(activityData.Map()["name"])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ productItem, _ := g.DB().GetOne(ctx, fmt.Sprintf(`SELECT name FROM jy_product_item WHERE code = '%s'`, gconv.String(m["product_code"])))
|
|
|
|
+ if !productItem.IsEmpty() {
|
|
|
|
+ m["productName"] = productItem.Map()["name"]
|
|
|
|
+ }
|
|
|
|
+ if gconv.String(m["product_type"]) == "大会员" {
|
|
|
|
+ bigService, _ := g.DB().Query(ctx, fmt.Sprintf(`SELECT s_name FROM bigmember_service WHERE id in (%s)`, gconv.Strings(gconv.Map(m["filter"])["serviceId"])))
|
|
|
|
+ if !bigService.IsEmpty() {
|
|
|
|
+ var bigServiceNames []string
|
|
|
|
+ for _, m1 := range bigService.List() {
|
|
|
|
+ bigServiceNames = append(bigServiceNames, gconv.String(m1["s_name"]))
|
|
|
|
+ }
|
|
|
|
+ m["bigServiceNames"] = bigServiceNames
|
|
|
|
+ }
|
|
|
|
+ supBigService, _ := g.DB().Query(ctx, fmt.Sprintf(`SELECT s_name FROM bigmember_service WHERE id in (%s)`, gconv.Strings(gconv.Map(m["filter"])["supServiceIds"])))
|
|
|
|
+ if !supBigService.IsEmpty() {
|
|
|
|
+ var bigServiceNames []string
|
|
|
|
+ for _, m1 := range supBigService.List() {
|
|
|
|
+ bigServiceNames = append(bigServiceNames, gconv.String(m1["s_name"]))
|
|
|
|
+ }
|
|
|
|
+ m["supBigmemberService"] = bigServiceNames
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
if linkedDetailId := gconv.String(m["linked_detail_id"]); linkedDetailId != "" {
|
|
if linkedDetailId := gconv.String(m["linked_detail_id"]); linkedDetailId != "" {
|
|
var orderArr []map[string]interface{}
|
|
var orderArr []map[string]interface{}
|
|
//关联订单
|
|
//关联订单
|