正在显示
1 个修改的文件
包含
9 行增加
和
1 行删除
@@ -110,10 +110,18 @@ func (data *CooperationApplicationDto) LoadUser(v *domain.User) *User { | @@ -110,10 +110,18 @@ func (data *CooperationApplicationDto) LoadUser(v *domain.User) *User { | ||
110 | if v == nil { | 110 | if v == nil { |
111 | return &User{} | 111 | return &User{} |
112 | } | 112 | } |
113 | - return &User{ | 113 | + result := User{ |
114 | UserId: v.UserId, | 114 | UserId: v.UserId, |
115 | UserInfo: v.UserInfo, | 115 | UserInfo: v.UserInfo, |
116 | } | 116 | } |
117 | + if v.Department != nil { | ||
118 | + result.Department = &Department{ | ||
119 | + DepartmentId: v.Department.DepartmentId, | ||
120 | + DepartmentName: v.Department.DepartmentName, | ||
121 | + } | ||
122 | + } | ||
123 | + | ||
124 | + return &result | ||
117 | } | 125 | } |
118 | 126 | ||
119 | func (data *CooperationApplicationDto) LoadCompany(v *domain.Company) *Company { | 127 | func (data *CooperationApplicationDto) LoadCompany(v *domain.Company) *Company { |
-
请 注册 或 登录 后发表评论