...
|
...
|
@@ -40,6 +40,7 @@ func (reponsitory OrderBaseRepository) transformPgModelToDomainModel(orderModel |
|
|
PartnerInfo: domain.Partner{
|
|
|
Id: orderModel.PartnerId,
|
|
|
},
|
|
|
BonusStatus: orderModel.BonusStatus,
|
|
|
}
|
|
|
return order, nil
|
|
|
}
|
...
|
...
|
@@ -59,6 +60,7 @@ func (repository OrderBaseRepository) Save(orderInfo *domain.OrderBase) error { |
|
|
PlanPartnerBonus: orderInfo.OrderCompute.PlanPartnerBonus, UsePartnerBonus: orderInfo.OrderCompute.UsePartnerBonus,
|
|
|
PartnerBonusHas: orderInfo.OrderCompute.PartnerBonusHas, PartnerBonusNot: orderInfo.OrderCompute.PartnerBonusNot,
|
|
|
PartnerBonusExpense: orderInfo.OrderCompute.PartnerBonusExpense, IsDisable: orderInfo.IsDisable,
|
|
|
CreateTime: orderInfo.CreateTime, BonusStatus: orderInfo.BonusStatus,
|
|
|
}
|
|
|
if m.Id == 0 {
|
|
|
_, err = tx.Model(m).
|
...
|
...
|
|