正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
@@ -159,8 +159,12 @@ func ToCooperationContractInfo(param *allied_creation_cooperation.CooperationCon | @@ -159,8 +159,12 @@ func ToCooperationContractInfo(param *allied_creation_cooperation.CooperationCon | ||
159 | } | 159 | } |
160 | 160 | ||
161 | for _, v := range param.Undertakers { | 161 | for _, v := range param.Undertakers { |
162 | + attachment := v.ContractAttachment | ||
163 | + if len(attachment) == 0 { | ||
164 | + attachment = []domain.Attachment{} | ||
165 | + } | ||
162 | u := ContractUndertaker{ | 166 | u := ContractUndertaker{ |
163 | - Attachment: v.ContractAttachment, | 167 | + Attachment: attachment, |
164 | Department: domain.Department{ | 168 | Department: domain.Department{ |
165 | DepartmentNumber: v.Department.DepartmentNumber, | 169 | DepartmentNumber: v.Department.DepartmentNumber, |
166 | DepartmentId: int(v.Department.DepartmentId), | 170 | DepartmentId: int(v.Department.DepartmentId), |
-
请 注册 或 登录 后发表评论