作者 yangfu

合约分红统计修改

... ... @@ -425,9 +425,10 @@ func (ptr *CooperationStatisticsService) DividendsStatistics(queryOptions map[st
return nil, err
}
if err := creditAccountDao.DividendsStatistics(map[string]interface{}{
"companyId": request.CompanyId,
"orgId": request.OrgId,
"userBaseId": request.UserBaseId,
"companyId": request.CompanyId,
"orgId": request.OrgId,
"userBaseId": request.UserBaseId,
"cooperationContractNumbers": contractNumbers,
}, allDividends); err != nil {
return nil, err
}
... ... @@ -439,11 +440,12 @@ func (ptr *CooperationStatisticsService) DividendsStatistics(queryOptions map[st
return nil, err
}
if err := creditAccountDao.DividendsStatistics(map[string]interface{}{
"companyId": request.CompanyId,
"orgId": request.OrgId,
"userBaseId": request.UserBaseId,
"paymentBeginTime": queryOptions["beginTime"],
"paymentEndTime": queryOptions["endTime"],
"companyId": request.CompanyId,
"orgId": request.OrgId,
"userBaseId": request.UserBaseId,
"paymentBeginTime": queryOptions["beginTime"],
"paymentEndTime": queryOptions["endTime"],
"cooperationContractNumbers": contractNumbers,
}, annualDividends); err != nil {
return nil, err
}
... ... @@ -454,11 +456,12 @@ func (ptr *CooperationStatisticsService) DividendsStatistics(queryOptions map[st
return nil, err
}
if err := creditAccountDao.DividendsStatistics(map[string]interface{}{
"companyId": request.CompanyId,
"orgId": request.OrgId,
"userBaseId": request.UserBaseId,
"paymentBeginTime": queryOptions["beginTime"],
"paymentEndTime": queryOptions["endTime"],
"companyId": request.CompanyId,
"orgId": request.OrgId,
"userBaseId": request.UserBaseId,
"paymentBeginTime": queryOptions["beginTime"],
"paymentEndTime": queryOptions["endTime"],
"cooperationContractNumbers": contractNumbers,
}, quarterDividends); err != nil {
return nil, err
}
... ...