Commit 2ae312d2 authored by 技术部-韩成龙's avatar 技术部-韩成龙

优先级

parent f9ac0b14
...@@ -9,7 +9,7 @@ import java.util.List; ...@@ -9,7 +9,7 @@ import java.util.List;
public interface IChannelRuleRepository extends JpaRepository<ChannelRuleEntity, Long>, QueryDslPredicateExecutor<ChannelRuleEntity> { public interface IChannelRuleRepository extends JpaRepository<ChannelRuleEntity, Long>, QueryDslPredicateExecutor<ChannelRuleEntity> {
ChannelRuleEntity getByFundProductIdEquals(long fundProductId); ChannelRuleEntity getByFundProductIdEquals(long fundProductId);
List<ChannelRuleEntity> getByChannelIdAndOrderByPriority(long channelId); List<ChannelRuleEntity> getByChannelIdOrderByPriority(long channelId);
List<ChannelRuleEntity> getAllByEnableEquals(Boolean enable); List<ChannelRuleEntity> getAllByEnableEquals(Boolean enable);
......
...@@ -73,7 +73,7 @@ public class CoreFilter { ...@@ -73,7 +73,7 @@ public class CoreFilter {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void coreHandle(AuditResponce auditResponce){ public void coreHandle(AuditResponce auditResponce){
List<ChannelRuleEntity> channelRuleEntityList = channelRuleRepository.getByChannelIdAndOrderByPriority(Long.parseLong(auditResponce.getBizChannel())); List<ChannelRuleEntity> channelRuleEntityList = channelRuleRepository.getByChannelIdOrderByPriority(Long.parseLong(auditResponce.getBizChannel()));
if (CollectionUtils.isEmpty(channelRuleEntityList)){ if (CollectionUtils.isEmpty(channelRuleEntityList)){
throw new RuntimeException("渠道配置产品集不存在,运营人员配置有问题"); throw new RuntimeException("渠道配置产品集不存在,运营人员配置有问题");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment