|
@@ -117,6 +117,20 @@ public class SysParameterService extends BaseService {
|
|
|
return sysParameterOptional.map(SysParameter::getSysValue).orElse(null);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据描述查询告警信息
|
|
|
+ *
|
|
|
+ * @return 告警信息
|
|
|
+ */
|
|
|
+ @Transactional(propagation = Propagation.NOT_SUPPORTED, readOnly = true)
|
|
|
+ public Page<SysParameter> getForKeywords(SysParameter sysParameter, Integer page, Integer size, String keywords) {
|
|
|
+ sysParameter.setDescribe(keywords);
|
|
|
+ ExampleMatcher matcher = ExampleMatcher.matching().withMatcher("modelNumber", ExampleMatcher.GenericPropertyMatchers.contains())
|
|
|
+ .withMatcher("describe", ExampleMatcher.GenericPropertyMatchers.contains());
|
|
|
+ Example<SysParameter> example = Example.of(sysParameter, matcher);
|
|
|
+ Pageable pageable = PageRequest.of(page - 1, size);
|
|
|
+ return this.sysParameterRepository.findAll(example, pageable);
|
|
|
+ }
|
|
|
/**
|
|
|
* 查询所有参数信息
|
|
|
*
|