|
@@ -728,12 +728,14 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
@@ -728,12 +728,14 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
728
|
cooperationContractNumbers = append(cooperationContractNumbers, orderGood.CooperationContractNumber)
|
728
|
cooperationContractNumbers = append(cooperationContractNumbers, orderGood.CooperationContractNumber)
|
729
|
}
|
729
|
}
|
730
|
|
730
|
|
|
|
731
|
+ newCooperationContractNumbers := utils.RemoveDuplicationString(cooperationContractNumbers)
|
|
|
732
|
+
|
731
|
startFindContracts := time.Now()
|
733
|
startFindContracts := time.Now()
|
732
|
|
734
|
|
733
|
// 查询共创合约
|
735
|
// 查询共创合约
|
734
|
cooperationContractsMap := make(map[string]*domain.CooperationContract, 0)
|
736
|
cooperationContractsMap := make(map[string]*domain.CooperationContract, 0)
|
735
|
if count, cooperationContractsFound, err := cooperationContractRepository.Find(map[string]interface{}{
|
737
|
if count, cooperationContractsFound, err := cooperationContractRepository.Find(map[string]interface{}{
|
736
|
- "cooperationContractNumbers": cooperationContractNumbers,
|
738
|
+ "cooperationContractNumbers": newCooperationContractNumbers,
|
737
|
"companyId": confirmDividendsIncentivesEstimateCommand.CompanyId,
|
739
|
"companyId": confirmDividendsIncentivesEstimateCommand.CompanyId,
|
738
|
"orgId": confirmDividendsIncentivesEstimateCommand.OrgId,
|
740
|
"orgId": confirmDividendsIncentivesEstimateCommand.OrgId,
|
739
|
"offsetLimit": false,
|
741
|
"offsetLimit": false,
|