正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -168,7 +168,7 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD | @@ -168,7 +168,7 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD | ||
168 | // 校验产品关联合约的激励规则是否匹配订单时间 | 168 | // 校验产品关联合约的激励规则是否匹配订单时间 |
169 | if cooperationContractsMap[orderGood.CooperationContractNumber] != nil { | 169 | if cooperationContractsMap[orderGood.CooperationContractNumber] != nil { |
170 | for _, incentivesRule := range cooperationContractsMap[orderGood.CooperationContractNumber].DividendsIncentivesRules { | 170 | for _, incentivesRule := range cooperationContractsMap[orderGood.CooperationContractNumber].DividendsIncentivesRules { |
171 | - if orderTime.Before(incentivesRule.DividendsIncentivesStageStart) && orderTime.After(incentivesRule.DividendsIncentivesStageEnd) { | 171 | + if orderTime.After(incentivesRule.DividendsIncentivesStageStart) && orderTime.Before(incentivesRule.DividendsIncentivesStageEnd) { |
172 | ruleMatchedFlag = true | 172 | ruleMatchedFlag = true |
173 | break | 173 | break |
174 | } | 174 | } |
@@ -753,7 +753,7 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD | @@ -753,7 +753,7 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD | ||
753 | // 校验产品关联合约的激励规则是否匹配订单时间 | 753 | // 校验产品关联合约的激励规则是否匹配订单时间 |
754 | if cooperationContractsMap[orderGood.CooperationContractNumber] != nil { | 754 | if cooperationContractsMap[orderGood.CooperationContractNumber] != nil { |
755 | for _, incentivesRule := range cooperationContractsMap[orderGood.CooperationContractNumber].DividendsIncentivesRules { | 755 | for _, incentivesRule := range cooperationContractsMap[orderGood.CooperationContractNumber].DividendsIncentivesRules { |
756 | - if orderTime.Before(incentivesRule.DividendsIncentivesStageStart) && orderTime.After(incentivesRule.DividendsIncentivesStageEnd) { | 756 | + if orderTime.After(incentivesRule.DividendsIncentivesStageStart) && orderTime.Before(incentivesRule.DividendsIncentivesStageEnd) { |
757 | ruleMatchedFlag = true | 757 | ruleMatchedFlag = true |
758 | break | 758 | break |
759 | } | 759 | } |
-
请 注册 或 登录 后发表评论