Commit 0a44d5600a9870820d1d545a9dd41bc60923e620
1 parent
3c81f87a
fix(storage): 修复租户服务中管道查询的状态过滤问题
- 在管道查询条件中添加状态过滤,确保只返回启用状态的管道 - 防止已禁用管道被意外查询到导致的数据异常
Showing
1 changed file
with
1 additions
and
0 deletions
tax-storage/src/main/java/com/diligrp/tax/storage/service/TenantService.java
| ... | ... | @@ -87,6 +87,7 @@ public class TenantService implements ITenantService { |
| 87 | 87 | LambdaQueryWrapper<Pipeline> queryWrapper = new LambdaQueryWrapper<>(); |
| 88 | 88 | queryWrapper.eq(Pipeline::getCode, pipelineCode); |
| 89 | 89 | queryWrapper.eq(Pipeline::getTenantId, tenantId); |
| 90 | + queryWrapper.eq(Pipeline::getState, StateType.ENABLE.value); | |
| 90 | 91 | return Optional.ofNullable(pipelineRepository.selectOne(queryWrapper)).map(taxPipeline -> { |
| 91 | 92 | PipelineDO pipelineDO = JsonUtils.convertValue(taxPipeline, PipelineDO.class); |
| 92 | 93 | pipelineDO.setSystemTypeEnum(SystemType.from(taxPipeline.getSystemType())); | ... | ... |