作者 陈志颖

fix:修复分红订单新增错误

... ... @@ -130,8 +130,9 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD
}
// 查找合约
var cooperationContractsMap map[string]*domain.CooperationContract
cooperationContractsMap := make(map[string]*domain.CooperationContract)
if count, cooperationContracts, err := cooperationContractRepository.Find(map[string]interface{}{
"offsetLimit": false,
"companyId": createDividendsOrderCommand.CompanyId,
"orgId": createDividendsOrderCommand.OrgId,
}); err != nil {
... ... @@ -317,7 +318,7 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD
}
// 查找合约
var cooperationContractsMap map[string]*domain.CooperationContract
cooperationContractsMap := make(map[string]*domain.CooperationContract)
countContracts, cooperationContracts, err := cooperationContractRepository.Find(map[string]interface{}{
"offsetLimit": false,
"companyId": importDividendsOrderCommand.CompanyId,
... ...
... ... @@ -143,8 +143,9 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) CreateDivide
}
// 查找合约
var cooperationContractsMap map[string]*domain.CooperationContract
cooperationContractsMap := make(map[string]*domain.CooperationContract)
if count, cooperationContracts, err := cooperationContractRepository.Find(map[string]interface{}{
"offsetLimit": false,
"companyId": createDividendsReturnedOrderCommand.CompanyId,
"orgId": createDividendsReturnedOrderCommand.OrgId,
}); err != nil {
... ... @@ -366,7 +367,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) ImportDivide
}
// 查找合约
var cooperationContractsMap map[string]*domain.CooperationContract
cooperationContractsMap := make(map[string]*domain.CooperationContract)
countContracts, cooperationContracts, err := cooperationContractRepository.Find(map[string]interface{}{
"offsetLimit": false,
"companyId": importDividendsReturnedOrderCommand.CompanyId,
... ...