|
@@ -271,15 +271,6 @@ func (ptr *CooperationStatisticsService) PersonCooperationProjectSharedInfo(quer |
|
@@ -271,15 +271,6 @@ func (ptr *CooperationStatisticsService) PersonCooperationProjectSharedInfo(quer |
271
|
key := keyfun(u.CooperationContractNumber, u.Undertaker.UserBaseId)
|
271
|
key := keyfun(u.CooperationContractNumber, u.Undertaker.UserBaseId)
|
272
|
userSorted = append(userSorted, key)
|
272
|
userSorted = append(userSorted, key)
|
273
|
mapUser[keyfun(u.CooperationContractNumber, u.Undertaker.UserBaseId)] = domain.NewContractParticipant(u.Undertaker.ToUser(), key, u.Undertaker.ContractAttachment)
|
273
|
mapUser[keyfun(u.CooperationContractNumber, u.Undertaker.UserBaseId)] = domain.NewContractParticipant(u.Undertaker.ToUser(), key, u.Undertaker.ContractAttachment)
|
274
|
- //if u.Undertaker.Referrer != nil {
|
|
|
275
|
- // key = keyfun(u.CooperationContractNumber, u.Undertaker.Referrer.UserBaseId)
|
|
|
276
|
- // userSorted = append(userSorted, key)
|
|
|
277
|
- // mapUser[keyfun(u.CooperationContractNumber, u.Undertaker.Referrer.UserBaseId)] = domain.NewContractParticipant(u.Undertaker.Referrer.ToUser(), key, u.Undertaker.ContractAttachment)
|
|
|
278
|
- //}
|
|
|
279
|
- //if u.Undertaker.Salesman != nil {
|
|
|
280
|
- // userSorted = append(userSorted, keyfun(u.CooperationContractNumber, u.Undertaker.Salesman.UserBaseId))
|
|
|
281
|
- // mapUser[keyfun(u.CooperationContractNumber, u.Undertaker.Salesman.UserBaseId)] = domain.NewContractParticipant(u.Undertaker.Salesman.ToUser(), key, u.Undertaker.ContractAttachment)
|
|
|
282
|
- //}
|
|
|
283
|
}
|
274
|
}
|
284
|
|
275
|
|
285
|
// 2.合约的订单金额
|
276
|
// 2.合约的订单金额
|
|
@@ -325,10 +316,11 @@ func (ptr *CooperationStatisticsService) PersonCooperationProjectSharedInfo(quer |
|
@@ -325,10 +316,11 @@ func (ptr *CooperationStatisticsService) PersonCooperationProjectSharedInfo(quer |
325
|
detail := creditAccounts[i].AccountDetail[j]
|
316
|
detail := creditAccounts[i].AccountDetail[j]
|
326
|
key := keyfun(detail.CooperationContractNumber, creditAccounts[i].Participator.UserBaseId)
|
317
|
key := keyfun(detail.CooperationContractNumber, creditAccounts[i].Participator.UserBaseId)
|
327
|
mapCreditAccount[key] = creditAccounts[i]
|
318
|
mapCreditAccount[key] = creditAccounts[i]
|
328
|
- if v, ok := mapUser[key]; ok && len(v.PaymentDocument) == 0 {
|
|
|
329
|
- if len(mapCreditAccount[key].PaymentDocumentAttachments) > 0 {
|
319
|
+ if v, ok := mapUser[key]; ok {
|
|
|
320
|
+ if len(v.PaymentDocument) == 0 && len(mapCreditAccount[key].PaymentDocumentAttachments) > 0 {
|
330
|
v.PaymentDocument = "查看"
|
321
|
v.PaymentDocument = "查看"
|
331
|
}
|
322
|
}
|
|
|
323
|
+ v.PaymentDocuments = append(v.PaymentDocuments, creditAccounts[i].PaymentDocumentAttachments...)
|
332
|
}
|
324
|
}
|
333
|
}
|
325
|
}
|
334
|
}
|
326
|
}
|