...
|
...
|
@@ -58,7 +58,7 @@ func (PartnerInfoService *PartnerInfoService) CreatePartnerInfo(command *command |
|
|
}); err != nil {
|
|
|
return nil, lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
newPartnerInfo := &domain.PartnerInfo{
|
|
|
newPartnerInfo := domain.PartnerInfo{
|
|
|
Partner: domain.Partner{
|
|
|
Account: command.Account,
|
|
|
PartnerName: command.PartnerName,
|
...
|
...
|
@@ -136,7 +136,7 @@ func (PartnerInfoService *PartnerInfoService) UpdatePartnerInfo(updatePartnerInf |
|
|
partnerInfo.Status = updatePartnerInfoCommand.Status
|
|
|
partnerInfo.RegionInfo = updatePartnerInfoCommand.RegionInfo
|
|
|
partnerInfo.CooperateTime = updatePartnerInfoCommand.CooperateTime
|
|
|
if _, err = partnerInfoRepository.Save(partnerInfo); err != nil {
|
|
|
if _, err = partnerInfoRepository.Save(*partnerInfo); err != nil {
|
|
|
return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
transactionContext.CommitTransaction()
|
...
|
...
|
@@ -219,7 +219,7 @@ func (PartnerInfoService *PartnerInfoService) UpdateStatus(command command.Statu |
|
|
return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
partnerInfo.Status = command.Status
|
|
|
if _, err = partnerInfoRepository.Save(partnerInfo); err != nil {
|
|
|
if _, err = partnerInfoRepository.Save(*partnerInfo); err != nil {
|
|
|
return lib.ThrowError(lib.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
transactionContext.CommitTransaction()
|
...
|
...
|
|