...
|
...
|
@@ -83,7 +83,7 @@ func (PartnerInfoService *PartnerInfoService) CreatePartnerInfo(cmd *command.Cre |
|
|
PartnerCategory: 0,
|
|
|
Password: cmd.Password,
|
|
|
Status: cmd.Status,
|
|
|
RegionInfo: cmd.RegionInfo,
|
|
|
RegionInfo: *cmd.RegionInfo,
|
|
|
Salesman: cmd.Salesman,
|
|
|
CooperateTime: cmd.CooperateTime,
|
|
|
CompanyId: cmd.CompanyId,
|
...
|
...
|
@@ -210,7 +210,7 @@ func (PartnerInfoService *PartnerInfoService) UpdatePartnerInfo(cmd *command.Upd |
|
|
}
|
|
|
partnerInfo.Salesman = cmd.Salesman
|
|
|
partnerInfo.Status = cmd.Status
|
|
|
partnerInfo.RegionInfo = cmd.RegionInfo
|
|
|
partnerInfo.RegionInfo = *cmd.RegionInfo
|
|
|
partnerInfo.CooperateTime = cmd.CooperateTime
|
|
|
partnerInfo.PartnerCategoryInfos = categorys
|
|
|
if err = partnerInfoRepository.Save(partnerInfo); err != nil {
|
...
|
...
|
|