|
@@ -210,8 +210,8 @@ func NewOrderSortingEnd(c *gin.Context) { |
|
|
//修改制作记录 |
|
|
//修改制作记录 |
|
|
for _, v := range args.OrderInfo { |
|
|
for _, v := range args.OrderInfo { |
|
|
record := db.GetOrderGoods(sess, v["oid"], args.Gid, args.SkuId) |
|
|
record := db.GetOrderGoods(sess, v["oid"], args.Gid, args.SkuId) |
|
|
record.SuccessNum = utils.StrToInt(v["num"]) |
|
|
|
|
|
if utils.StrToInt(v["num"]) == record.Num { |
|
|
|
|
|
|
|
|
record.SuccessNum += utils.StrToInt(v["num"]) |
|
|
|
|
|
if record.SuccessNum >= record.Num { |
|
|
record.State = 4 |
|
|
record.State = 4 |
|
|
} |
|
|
} |
|
|
record.AdminId = utils.StrToInt(args.AdminId) |
|
|
record.AdminId = utils.StrToInt(args.AdminId) |
|
|