Commit b93fe24b by 杨伟程

[200~平台端-告警中心-告警配置:所属组织搜索无效~

parent bb7e9c38
...@@ -52,7 +52,8 @@ public class PlatAlarmConfigServiceImpl extends ServiceImpl<PlatAlarmConfigMappe ...@@ -52,7 +52,8 @@ public class PlatAlarmConfigServiceImpl extends ServiceImpl<PlatAlarmConfigMappe
public List<PlatAlarmConfigListVO> list(PlatAlarmConfigQueryDTO dto) { public List<PlatAlarmConfigListVO> list(PlatAlarmConfigQueryDTO dto) {
List<PlatAlarmConfig> configList = list(new QueryWrapper<PlatAlarmConfig>().lambda() List<PlatAlarmConfig> configList = list(new QueryWrapper<PlatAlarmConfig>().lambda()
.apply(StringUtils.isNotBlank(dto.getOrgId()), "find_in_set('" + dto.getOrgId() + "',org_path)") //.apply(StringUtils.isNotBlank(dto.getOrgId()), "find_in_set('" + dto.getOrgId() + "',org_path)")
.eq(StringUtils.isNotBlank(dto.getOrgId()), PlatAlarmConfig::getOrgId, dto.getOrgId())
.orderByAsc(PlatAlarmConfig::getAlarmType) .orderByAsc(PlatAlarmConfig::getAlarmType)
); );
...@@ -194,7 +195,7 @@ public class PlatAlarmConfigServiceImpl extends ServiceImpl<PlatAlarmConfigMappe ...@@ -194,7 +195,7 @@ public class PlatAlarmConfigServiceImpl extends ServiceImpl<PlatAlarmConfigMappe
String[] split = orgPath.split(","); String[] split = orgPath.split(",");
TenantIdUtil.execute(org.getTenantId(),()->{ TenantIdUtil.execute(org.getTenantId(), () -> {
configList.forEach(e -> { configList.forEach(e -> {
e.setTenantId(org.getTenantId()); e.setTenantId(org.getTenantId());
e.setId(null); e.setId(null);
......
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 sign in to comment