|
...
|
...
|
@@ -1055,6 +1055,16 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err16.Error())
|
|
|
|
}
|
|
|
|
|
|
|
|
var contractAttachments []*domain.Attachment
|
|
|
|
for _, attachment := range undertaker.ContractAttachment {
|
|
|
|
contractAttachments = append(contractAttachments, &domain.Attachment{
|
|
|
|
FileType: attachment.FileType,
|
|
|
|
Name: attachment.Name,
|
|
|
|
Url: attachment.Url,
|
|
|
|
FileSize: attachment.FileSize,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
undertakers = append(undertakers, &domain.Undertaker{
|
|
|
|
UndertakerId: undertakerId,
|
|
|
|
UserId: undertakerDomain.UserId,
|
|
...
|
...
|
@@ -1070,7 +1080,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC |
|
|
|
Salesman: salesmanDomain,
|
|
|
|
Status: undertakerDomain.Status,
|
|
|
|
Company: undertakerDomain.Company,
|
|
|
|
ContractAttachment: nil,
|
|
|
|
ContractAttachment: contractAttachments,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
// 更新承接人
|
...
|
...
|
|