Skip to content

Commit

Permalink
⚡代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoule committed Jun 25, 2022
1 parent 8cbc23f commit 640ded1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/manage/manage_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (m *ManageOrderService) CheckDone(ids request.IdsReq) (err error) {
}
}
if errorOrders == "" {
if err := global.GVA_DB.Where("order_id in ?", ids.Ids).UpdateColumns(manage.MallOrder{OrderStatus: 2, UpdateTime: common.JSONTime{Time: time.Now()}}).Error; err != nil {
if err = global.GVA_DB.Where("order_id in ?", ids.Ids).UpdateColumns(manage.MallOrder{OrderStatus: 2, UpdateTime: common.JSONTime{Time: time.Now()}}).Error; err != nil {
return err
}
} else {
Expand Down

0 comments on commit 640ded1

Please sign in to comment.