|
@@ -1312,14 +1312,13 @@ func OrderEditNum(c *gin.Context) { |
|
|
all1 := db.GetOrderGoodsMakeStockAllByDate(sess, goodsId, skuId, 0, orderGoods.MakeDate) |
|
|
all1 := db.GetOrderGoodsMakeStockAllByDate(sess, goodsId, skuId, 0, orderGoods.MakeDate) |
|
|
if all1 == nil { |
|
|
if all1 == nil { |
|
|
var tmp = &model.OrderGoodsMakeStock{ |
|
|
var tmp = &model.OrderGoodsMakeStock{ |
|
|
Gid: goodsId, |
|
|
|
|
|
SkuId: skuId, |
|
|
|
|
|
SkuCode: code, |
|
|
|
|
|
GoodsTitle: orderGoods.GoodsTitle, |
|
|
|
|
|
Sku: skuStr, |
|
|
|
|
|
WaitMakeNum: utils.StrToInt(args["num"]), |
|
|
|
|
|
GoodsType: 0, |
|
|
|
|
|
MakeDate: orderGoods.MakeDate, |
|
|
|
|
|
|
|
|
Gid: goodsId, |
|
|
|
|
|
SkuId: skuId, |
|
|
|
|
|
SkuCode: code, |
|
|
|
|
|
GoodsTitle: orderGoods.GoodsTitle, |
|
|
|
|
|
Sku: skuStr, |
|
|
|
|
|
GoodsType: 0, |
|
|
|
|
|
MakeDate: orderGoods.MakeDate, |
|
|
} |
|
|
} |
|
|
sess.Insert(tmp) |
|
|
sess.Insert(tmp) |
|
|
} |
|
|
} |
|
|