Browse Source

1.制作流程确认

master
huangjiajun 8 months ago
parent
commit
24a69031fd
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      app/ipad/svc/svc_order_make.go

+ 9
- 0
app/ipad/svc/svc_order_make.go View File

@@ -222,6 +222,15 @@ func NewOrderSortingEnd(c *gin.Context) {
e.OutErr(c, 400, e.NewErr(400, "提交失败,请重试"))
return
}
makeRecord := db.GetOrderGoodsMakeStock(sess, utils.StrToInt64(args.Gid), utils.StrToInt64(args.SkuId))
makeRecord.WaitSortingNum -= utils.StrToInt(v["num"])
makeRecord.SuccessNum += utils.StrToInt(v["num"])
_, err = sess.Where("id=?", makeRecord.Id).Cols("success_num,wait_sorting_num").Update(makeRecord)
if err != nil {
sess.Rollback()
e.OutErr(c, 400, e.NewErr(400, "提交失败,请重试"))
return
}
//写入流程记录
var recordFlow = &model.OrderGoodsDoingFlow{
Num: record.Num,


Loading…
Cancel
Save