This commit is contained in:
邹宗楠
2026-05-18 14:34:33 +08:00
parent 17342da47c
commit 215139147a

View File

@@ -318,6 +318,14 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
v.IsVendorAct = model.YES v.IsVendorAct = model.YES
} }
} }
if len(orderData["order_tag_list"].([]interface{})) != 0 {
tagList := utils.Interface2Int64List(orderData["order_tag_list"].([]interface{}))
tagListStr := make([]string, len(tagList), len(tagList))
for _, v := range tagList {
tagListStr = append(tagListStr, utils.Int64ToStr(v))
}
order.CouponIDs = strings.Join(tagListStr, ",")
}
// 包装袋金额 // 包装袋金额
store, _ := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), order.VendorStoreID, model.VendorIDMTWM, order.VendorOrgCode) store, _ := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), order.VendorStoreID, model.VendorIDMTWM, order.VendorOrgCode)