正在显示
1 个修改的文件
包含
11 行增加
和
1 行删除
| @@ -1055,6 +1055,16 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC | @@ -1055,6 +1055,16 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC | ||
| 1055 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err16.Error()) | 1055 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err16.Error()) |
| 1056 | } | 1056 | } |
| 1057 | 1057 | ||
| 1058 | + var contractAttachments []*domain.Attachment | ||
| 1059 | + for _, attachment := range undertaker.ContractAttachment { | ||
| 1060 | + contractAttachments = append(contractAttachments, &domain.Attachment{ | ||
| 1061 | + FileType: attachment.FileType, | ||
| 1062 | + Name: attachment.Name, | ||
| 1063 | + Url: attachment.Url, | ||
| 1064 | + FileSize: attachment.FileSize, | ||
| 1065 | + }) | ||
| 1066 | + } | ||
| 1067 | + | ||
| 1058 | undertakers = append(undertakers, &domain.Undertaker{ | 1068 | undertakers = append(undertakers, &domain.Undertaker{ |
| 1059 | UndertakerId: undertakerId, | 1069 | UndertakerId: undertakerId, |
| 1060 | UserId: undertakerDomain.UserId, | 1070 | UserId: undertakerDomain.UserId, |
| @@ -1070,7 +1080,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC | @@ -1070,7 +1080,7 @@ func (cooperationContractService *CooperationContractService) UpdateCooperationC | ||
| 1070 | Salesman: salesmanDomain, | 1080 | Salesman: salesmanDomain, |
| 1071 | Status: undertakerDomain.Status, | 1081 | Status: undertakerDomain.Status, |
| 1072 | Company: undertakerDomain.Company, | 1082 | Company: undertakerDomain.Company, |
| 1073 | - ContractAttachment: nil, | 1083 | + ContractAttachment: contractAttachments, |
| 1074 | }) | 1084 | }) |
| 1075 | } | 1085 | } |
| 1076 | // 更新承接人 | 1086 | // 更新承接人 |
-
请 注册 或 登录 后发表评论