...
|
...
|
@@ -271,15 +271,15 @@ func (ptr *CooperationStatisticsService) PersonCooperationProjectSharedInfo(quer |
|
|
key := keyfun(u.CooperationContractNumber, u.Undertaker.UserBaseId)
|
|
|
userSorted = append(userSorted, key)
|
|
|
mapUser[keyfun(u.CooperationContractNumber, u.Undertaker.UserBaseId)] = domain.NewContractParticipant(u.Undertaker.ToUser(), key, u.Undertaker.ContractAttachment)
|
|
|
if u.Undertaker.Referrer != nil {
|
|
|
key = keyfun(u.CooperationContractNumber, u.Undertaker.Referrer.UserBaseId)
|
|
|
userSorted = append(userSorted, key)
|
|
|
mapUser[keyfun(u.CooperationContractNumber, u.Undertaker.Referrer.UserBaseId)] = domain.NewContractParticipant(u.Undertaker.Referrer.ToUser(), key, u.Undertaker.ContractAttachment)
|
|
|
}
|
|
|
if u.Undertaker.Salesman != nil {
|
|
|
userSorted = append(userSorted, keyfun(u.CooperationContractNumber, u.Undertaker.Salesman.UserBaseId))
|
|
|
mapUser[keyfun(u.CooperationContractNumber, u.Undertaker.Salesman.UserBaseId)] = domain.NewContractParticipant(u.Undertaker.Salesman.ToUser(), key, u.Undertaker.ContractAttachment)
|
|
|
}
|
|
|
//if u.Undertaker.Referrer != nil {
|
|
|
// key = keyfun(u.CooperationContractNumber, u.Undertaker.Referrer.UserBaseId)
|
|
|
// userSorted = append(userSorted, key)
|
|
|
// mapUser[keyfun(u.CooperationContractNumber, u.Undertaker.Referrer.UserBaseId)] = domain.NewContractParticipant(u.Undertaker.Referrer.ToUser(), key, u.Undertaker.ContractAttachment)
|
|
|
//}
|
|
|
//if u.Undertaker.Salesman != nil {
|
|
|
// userSorted = append(userSorted, keyfun(u.CooperationContractNumber, u.Undertaker.Salesman.UserBaseId))
|
|
|
// mapUser[keyfun(u.CooperationContractNumber, u.Undertaker.Salesman.UserBaseId)] = domain.NewContractParticipant(u.Undertaker.Salesman.ToUser(), key, u.Undertaker.ContractAttachment)
|
|
|
//}
|
|
|
}
|
|
|
|
|
|
// 2.合约的订单金额
|
...
|
...
|
|