Browse Source

更新

master
huangjiajun 5 months ago
parent
commit
208ee471d1
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      app/ipad/svc/svc_order_make.go

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

@@ -51,6 +51,11 @@ func NewOrderSortingEnd(c *gin.Context) {
e.OutErr(c, 400, e.NewErr(400, v["oid"]+",未到制作时间,请勿提交")) e.OutErr(c, 400, e.NewErr(400, v["oid"]+",未到制作时间,请勿提交"))
return return
} }
if utils.StrToInt(v["num"]) > record.Num-record.SuccessNum {
sess.Rollback()
e.OutErr(c, 400, e.NewErr(400, record.GoodsTitle+",数量只能提交"+utils.IntToStr(record.Num-record.SuccessNum)+"个"))
return
}
record.SuccessNum += utils.StrToInt(v["num"]) record.SuccessNum += utils.StrToInt(v["num"])
if record.SuccessNum >= record.Num { if record.SuccessNum >= record.Num {
record.State = 4 record.State = 4


Loading…
Cancel
Save