Compare commits
No commits in common. "7c12b60c329d0e3f2e075762d191215c1d49ff7e" and "56dee3eb9dcb1e13ebc0005815735dd759db7cf9" have entirely different histories.
7c12b60c32
...
56dee3eb9d
@ -280,21 +280,18 @@ func OrderRecordDetail(req *bundle.OrderRecordsDetailRequest) (res *bundle.Order
|
|||||||
//_ = copier.CopyWithOption(&res, orderRecord, copier.Option{DeepCopy: true})
|
//_ = copier.CopyWithOption(&res, orderRecord, copier.Option{DeepCopy: true})
|
||||||
|
|
||||||
addBundles := make([]model.BundleOrderValueAdd, 0)
|
addBundles := make([]model.BundleOrderValueAdd, 0)
|
||||||
|
err = app.ModuleClients.BundleDB.Model(model.BundleOrderValueAdd{}).Where("deleted_at is null and source = 1 and order_no = ?", req.OrderNo).Find(&addBundles).Error
|
||||||
|
if err != nil {
|
||||||
|
return res, commonErr.ReturnError(err, "增值订单信息", "获取增值订单信息失败: ")
|
||||||
|
}
|
||||||
addInfos := make([]*bundle.AddInfo, 0)
|
addInfos := make([]*bundle.AddInfo, 0)
|
||||||
if req.OrderNo == "" {
|
for _, addBundle := range addBundles {
|
||||||
req.OrderNo = orderRecord.OrderNo
|
addInfo := &bundle.AddInfo{
|
||||||
err = app.ModuleClients.BundleDB.Model(model.BundleOrderValueAdd{}).Where("deleted_at is null and source = 1 and order_no = ?", req.OrderNo).Find(&addBundles).Error
|
OrderNo: addBundle.OrderNo,
|
||||||
if err != nil {
|
Num: addBundle.Num,
|
||||||
return res, commonErr.ReturnError(err, "增值订单信息", "获取增值订单信息失败: ")
|
ValueAddUUID: addBundle.ValueAddUUID,
|
||||||
}
|
|
||||||
for _, addBundle := range addBundles {
|
|
||||||
addInfo := &bundle.AddInfo{
|
|
||||||
OrderNo: addBundle.OrderNo,
|
|
||||||
Num: addBundle.Num,
|
|
||||||
ValueAddUUID: addBundle.ValueAddUUID,
|
|
||||||
}
|
|
||||||
addInfos = append(addInfos, addInfo)
|
|
||||||
}
|
}
|
||||||
|
addInfos = append(addInfos, addInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
res = &bundle.OrderRecord{
|
res = &bundle.OrderRecord{
|
||||||
|
Loading…
Reference in New Issue
Block a user