作者 唐旭辉

微调

... ... @@ -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 {
... ...
... ... @@ -39,7 +39,7 @@ type PartnerInfo struct {
//合作时间
CooperateTime time.Time `json:"cooperateTime"`
//所属区域信息
RegionInfo *RegionInfo `json:"regionInfo"`
RegionInfo RegionInfo `json:"regionInfo"`
//关联业务员
Salesman []Salesman `json:"salesman"`
//合伙人分类
... ...
... ... @@ -21,7 +21,7 @@ type PartnerInfo struct {
// 状态(1:启用或者0:禁用)
Status int `pg:",use_zero"`
//所属区域信息
RegionInfo *domain.RegionInfo
RegionInfo domain.RegionInfo
//创建时间
CreateAt time.Time
//更新时间
... ...