|
@@ -32,6 +32,8 @@ public class KnowledgeService {
|
|
private IRiskprecService iRiskprecService;
|
|
private IRiskprecService iRiskprecService;
|
|
@Resource
|
|
@Resource
|
|
private IEvaluationdatasourceService evaluationdatasourceService;
|
|
private IEvaluationdatasourceService evaluationdatasourceService;
|
|
|
|
+ @Resource
|
|
|
|
+ private IHealthconfigService healthconfigService;
|
|
|
|
|
|
|
|
|
|
public List<P3DeviceFault> faultKnowledge(String gzjb, String tjlx, String cxnr, String pageNum, String pageSize) {
|
|
public List<P3DeviceFault> faultKnowledge(String gzjb, String tjlx, String cxnr, String pageNum, String pageSize) {
|
|
@@ -227,4 +229,25 @@ public class KnowledgeService {
|
|
boolean b = evaluationdatasourceService.removeById(evaluationdatasource.getTargetid());
|
|
boolean b = evaluationdatasourceService.removeById(evaluationdatasource.getTargetid());
|
|
return b;
|
|
return b;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public List<Healthconfig> health(String wpid, String pageNum, String pageSize) {
|
|
|
|
+ QueryWrapper<Healthconfig> qw = new QueryWrapper<>();
|
|
|
|
+ if (StringUtils.isNotEmpty(wpid)){
|
|
|
|
+ qw.like("wpid",wpid);
|
|
|
|
+ }
|
|
|
|
+ Page<Healthconfig> page = new Page<>(Integer.parseInt(pageNum),Integer.parseInt(pageSize));
|
|
|
|
+ Page<Healthconfig> p3DeviceFaultPage = healthconfigService.getBaseMapper().selectPage(page, qw);
|
|
|
|
+ List<Healthconfig> list = p3DeviceFaultPage.getRecords();
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Boolean healthedit(Healthconfig healthconfig) {
|
|
|
|
+ boolean b = healthconfigService.saveOrUpdate(healthconfig);
|
|
|
|
+ return b;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Boolean healthremove(Healthconfig healthconfig) {
|
|
|
|
+ boolean b = healthconfigService.removeById(healthconfig.getId());
|
|
|
|
+ return b;
|
|
|
|
+ }
|
|
}
|
|
}
|