|
@@ -159,13 +159,6 @@ func commMake(c *gin.Context, args map[string]string) { |
|
|
e.OutErr(c, 400, e.NewErr(400, "开始制作失败,请重试")) |
|
|
e.OutErr(c, 400, e.NewErr(400, "开始制作失败,请重试")) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
orderGoods.State = state |
|
|
|
|
|
update, err := sess.Where("id=?", orderGoods.Id).Cols("state").Update(orderGoods) |
|
|
|
|
|
if update == 0 || err != nil { |
|
|
|
|
|
sess.Rollback() |
|
|
|
|
|
e.OutErr(c, 400, e.NewErr(400, "提交失败,请重试")) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
//判断大订单 要不要改状态 |
|
|
//判断大订单 要不要改状态 |
|
|
count, _ := sess.Where("oid=?", orderGoods.Oid).Count(&model.OrderGoods{}) |
|
|
count, _ := sess.Where("oid=?", orderGoods.Oid).Count(&model.OrderGoods{}) |
|
|
countEnd, _ := sess.Where("oid=? and state=?", orderGoods.Oid, state).Count(&model.OrderGoods{}) |
|
|
countEnd, _ := sess.Where("oid=? and state=?", orderGoods.Oid, state).Count(&model.OrderGoods{}) |
|
|