|
|
@@ -1637,19 +1637,6 @@ func OrderDeductNum(c *gin.Context) { |
|
|
|
} |
|
|
|
newNum -= deNum |
|
|
|
all1.WaitBakingNum -= deNum |
|
|
|
all := all1 |
|
|
|
all.Id = 0 |
|
|
|
all.WaitBakingNum = deNum |
|
|
|
all.WaitMakeNum = 0 |
|
|
|
all.WaitSortingNum = 0 |
|
|
|
all.GoodsTitle = orderGoods1.GoodsTitle |
|
|
|
all.GoodsType = 2 |
|
|
|
_, err = sess.InsertOne(all) |
|
|
|
if err != nil { |
|
|
|
sess.Rollback() |
|
|
|
e.OutErr(c, 400, e.NewErr(400, "修改失败")) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
if newNum > 0 { |
|
|
|
sess.Rollback() |
|
|
|