Commit f9ac0b14 authored by 王业雄's avatar 王业雄

优先级

parent 2f35fa26
......@@ -9,7 +9,7 @@ import java.util.List;
public interface IChannelRuleRepository extends JpaRepository<ChannelRuleEntity, Long>, QueryDslPredicateExecutor<ChannelRuleEntity> {
ChannelRuleEntity getByFundProductIdEquals(long fundProductId);
List<ChannelRuleEntity> getByChannelId(long channelId);
List<ChannelRuleEntity> getByChannelIdAndOrderByPriority(long channelId);
List<ChannelRuleEntity> getAllByEnableEquals(Boolean enable);
......
......@@ -73,7 +73,7 @@ public class CoreFilter {
@Transactional(rollbackFor = Exception.class)
public void coreHandle(AuditResponce auditResponce){
List<ChannelRuleEntity> channelRuleEntityList = channelRuleRepository.getByChannelId(Long.parseLong(auditResponce.getBizChannel()));
List<ChannelRuleEntity> channelRuleEntityList = channelRuleRepository.getByChannelIdAndOrderByPriority(Long.parseLong(auditResponce.getBizChannel()));
if (CollectionUtils.isEmpty(channelRuleEntityList)){
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