正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
@@ -570,7 +570,12 @@ func (userService *UserService) UpdateCooperator(updateCooperatorCommand *comman | @@ -570,7 +570,12 @@ func (userService *UserService) UpdateCooperator(updateCooperatorCommand *comman | ||
570 | Avatar: updateCooperatorCommand.Avatar, | 570 | Avatar: updateCooperatorCommand.Avatar, |
571 | Email: updateCooperatorCommand.Email, | 571 | Email: updateCooperatorCommand.Email, |
572 | } | 572 | } |
573 | - | 573 | + user.CooperationInfo = &domain.CooperationInfo{ |
574 | + CooperationCompany: updateCooperatorCommand.CooperationCompany, | ||
575 | + } | ||
576 | + if !updateCooperatorCommand.CooperationDeadline.IsZero() { | ||
577 | + user.CooperationInfo.CooperationDeadline = updateCooperatorCommand.CooperationDeadline | ||
578 | + } | ||
574 | updateUserService, _ := factory.CreatePgUpdateUserService(map[string]interface{}{ | 579 | updateUserService, _ := factory.CreatePgUpdateUserService(map[string]interface{}{ |
575 | "transactionContext": transactionContext, | 580 | "transactionContext": transactionContext, |
576 | }) | 581 | }) |
-
mentioned in commit f7a113df
-
请 注册 或 登录 后发表评论