作者 唐旭辉

微调

@@ -83,7 +83,7 @@ func (PartnerInfoService *PartnerInfoService) CreatePartnerInfo(cmd *command.Cre @@ -83,7 +83,7 @@ func (PartnerInfoService *PartnerInfoService) CreatePartnerInfo(cmd *command.Cre
83 PartnerCategory: 0, 83 PartnerCategory: 0,
84 Password: cmd.Password, 84 Password: cmd.Password,
85 Status: cmd.Status, 85 Status: cmd.Status,
86 - RegionInfo: cmd.RegionInfo, 86 + RegionInfo: *cmd.RegionInfo,
87 Salesman: cmd.Salesman, 87 Salesman: cmd.Salesman,
88 CooperateTime: cmd.CooperateTime, 88 CooperateTime: cmd.CooperateTime,
89 CompanyId: cmd.CompanyId, 89 CompanyId: cmd.CompanyId,
@@ -210,7 +210,7 @@ func (PartnerInfoService *PartnerInfoService) UpdatePartnerInfo(cmd *command.Upd @@ -210,7 +210,7 @@ func (PartnerInfoService *PartnerInfoService) UpdatePartnerInfo(cmd *command.Upd
210 } 210 }
211 partnerInfo.Salesman = cmd.Salesman 211 partnerInfo.Salesman = cmd.Salesman
212 partnerInfo.Status = cmd.Status 212 partnerInfo.Status = cmd.Status
213 - partnerInfo.RegionInfo = cmd.RegionInfo 213 + partnerInfo.RegionInfo = *cmd.RegionInfo
214 partnerInfo.CooperateTime = cmd.CooperateTime 214 partnerInfo.CooperateTime = cmd.CooperateTime
215 partnerInfo.PartnerCategoryInfos = categorys 215 partnerInfo.PartnerCategoryInfos = categorys
216 if err = partnerInfoRepository.Save(partnerInfo); err != nil { 216 if err = partnerInfoRepository.Save(partnerInfo); err != nil {
@@ -39,7 +39,7 @@ type PartnerInfo struct { @@ -39,7 +39,7 @@ type PartnerInfo struct {
39 //合作时间 39 //合作时间
40 CooperateTime time.Time `json:"cooperateTime"` 40 CooperateTime time.Time `json:"cooperateTime"`
41 //所属区域信息 41 //所属区域信息
42 - RegionInfo *RegionInfo `json:"regionInfo"` 42 + RegionInfo RegionInfo `json:"regionInfo"`
43 //关联业务员 43 //关联业务员
44 Salesman []Salesman `json:"salesman"` 44 Salesman []Salesman `json:"salesman"`
45 //合伙人分类 45 //合伙人分类
@@ -21,7 +21,7 @@ type PartnerInfo struct { @@ -21,7 +21,7 @@ type PartnerInfo struct {
21 // 状态(1:启用或者0:禁用) 21 // 状态(1:启用或者0:禁用)
22 Status int `pg:",use_zero"` 22 Status int `pg:",use_zero"`
23 //所属区域信息 23 //所属区域信息
24 - RegionInfo *domain.RegionInfo 24 + RegionInfo domain.RegionInfo
25 //创建时间 25 //创建时间
26 CreateAt time.Time 26 CreateAt time.Time
27 //更新时间 27 //更新时间