物料订单商品物料编码必须有值
This commit is contained in:
@@ -457,8 +457,10 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
|
||||
}
|
||||
skuMap := make(map[int]*model.SkuAndName)
|
||||
for _, v := range skuList {
|
||||
if v.EclpID == "" {
|
||||
return nil, nil, fmt.Errorf("此商品物料编码为空,请联系管理员!skuID:[%v]", v.ID)
|
||||
if fromStoreID != 0 {
|
||||
if v.EclpID == "" {
|
||||
return nil, nil, fmt.Errorf("此商品物料编码为空,请联系管理员!skuID:[%v]", v.ID)
|
||||
}
|
||||
}
|
||||
skuMap[v.ID] = v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user