作者 tangxuhui

数据结构调整

@@ -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),