|
@@ -114,11 +114,11 @@ func ExchangeUserPosition(engine *xorm.Engine, relation1, relation2 *model.Publi |
|
|
return zhios_order_relate_logx.Error(err) |
|
|
return zhios_order_relate_logx.Error(err) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_, err = session.Where("id = ?", relation1.Id).Cols(forceColumns...).Update(session, &relation1) |
|
|
|
|
|
|
|
|
_, err = session.ID(relation1.Id).Cols(forceColumns...).Update(relation1) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return zhios_order_relate_logx.Error(err) |
|
|
return zhios_order_relate_logx.Error(err) |
|
|
} |
|
|
} |
|
|
_, err = session.Where("id = ?", relation2.Id).Cols(forceColumns...).Update(session, &relation2) |
|
|
|
|
|
|
|
|
_, err = session.ID(relation2.Id).Cols(forceColumns...).Update(relation2) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return zhios_order_relate_logx.Error(err) |
|
|
return zhios_order_relate_logx.Error(err) |
|
|
} |
|
|
} |
|
|