正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
| @@ -60,6 +60,7 @@ func (c *PartnerInfoController) CreatePartnerInfo() { | @@ -60,6 +60,7 @@ func (c *PartnerInfoController) CreatePartnerInfo() { | ||
| 60 | c.ResponseError(e) | 60 | c.ResponseError(e) |
| 61 | return | 61 | return |
| 62 | } | 62 | } |
| 63 | + companyId := c.GetUserCompany() | ||
| 63 | cmd := partnerInfoCmd.CreatePartnerInfoCommand{ | 64 | cmd := partnerInfoCmd.CreatePartnerInfoCommand{ |
| 64 | PartnerName: param.PartnerName, | 65 | PartnerName: param.PartnerName, |
| 65 | Account: param.Account, | 66 | Account: param.Account, |
| @@ -73,6 +74,7 @@ func (c *PartnerInfoController) CreatePartnerInfo() { | @@ -73,6 +74,7 @@ func (c *PartnerInfoController) CreatePartnerInfo() { | ||
| 73 | Telephone: param.Phone, | 74 | Telephone: param.Phone, |
| 74 | }, | 75 | }, |
| 75 | }, | 76 | }, |
| 77 | + CompanyId: companyId, | ||
| 76 | } | 78 | } |
| 77 | if len(param.Area) > 0 { | 79 | if len(param.Area) > 0 { |
| 78 | cmd.RegionInfo = &domain.RegionInfo{ | 80 | cmd.RegionInfo = &domain.RegionInfo{ |
| @@ -116,6 +118,7 @@ func (c *PartnerInfoController) UpdatePartnerInfo() { | @@ -116,6 +118,7 @@ func (c *PartnerInfoController) UpdatePartnerInfo() { | ||
| 116 | c.ResponseError(e) | 118 | c.ResponseError(e) |
| 117 | return | 119 | return |
| 118 | } | 120 | } |
| 121 | + companyId := c.GetUserCompany() | ||
| 119 | cmd := partnerInfoCmd.UpdatePartnerInfoCommand{ | 122 | cmd := partnerInfoCmd.UpdatePartnerInfoCommand{ |
| 120 | Id: param.ID, | 123 | Id: param.ID, |
| 121 | Status: param.State, | 124 | Status: param.State, |
| @@ -130,6 +133,7 @@ func (c *PartnerInfoController) UpdatePartnerInfo() { | @@ -130,6 +133,7 @@ func (c *PartnerInfoController) UpdatePartnerInfo() { | ||
| 130 | Telephone: param.Phone, | 133 | Telephone: param.Phone, |
| 131 | }, | 134 | }, |
| 132 | }, | 135 | }, |
| 136 | + CompanyId: companyId, | ||
| 133 | } | 137 | } |
| 134 | serve := partnerInfoService.NewPartnerInfoService(nil) | 138 | serve := partnerInfoService.NewPartnerInfoService(nil) |
| 135 | err = serve.UpdatePartnerInfo(&cmd) | 139 | err = serve.UpdatePartnerInfo(&cmd) |
-
请 注册 或 登录 后发表评论