|
|
@ -18,6 +18,7 @@ import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
@ -54,6 +55,21 @@ public class AlarmConfigServiceImpl extends BaseServiceImpl<AlarmConfigMapper, A |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|
|
|
|
* 删除告警配置 |
|
|
|
|
|
|
|
* @param ids |
|
|
|
|
|
|
|
* @return |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
|
|
|
public boolean config_remove(List<Long> ids) { |
|
|
|
|
|
|
|
if(!this.deleteLogic(ids)){ |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return detailService.remove(Wrappers.<AlarmConfigDetailEntity>lambdaQuery() |
|
|
|
|
|
|
|
.in(AlarmConfigDetailEntity::getStrategyId,ids)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 分页查询 |
|
|
|
* 分页查询 |
|
|
|
* @param page : 分页参数 |
|
|
|
* @param page : 分页参数 |
|
|
|
* @param entity : 查询告警参数 |
|
|
|
* @param entity : 查询告警参数 |
|
|
|