|
@@ -30,6 +30,8 @@ public class KnowledgeService {
|
|
private ISafeprecService iSafeprecService;
|
|
private ISafeprecService iSafeprecService;
|
|
@Resource
|
|
@Resource
|
|
private IRiskprecService iRiskprecService;
|
|
private IRiskprecService iRiskprecService;
|
|
|
|
+ @Resource
|
|
|
|
+ private IEvaluationdatasourceService evaluationdatasourceService;
|
|
|
|
|
|
|
|
|
|
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) {
|
|
@@ -204,4 +206,25 @@ public class KnowledgeService {
|
|
List<Riskprec> list = p3DeviceFaultPage.getRecords();
|
|
List<Riskprec> list = p3DeviceFaultPage.getRecords();
|
|
return list;
|
|
return list;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public List<Evaluationdatasource> rating(String type, String pageNum, String pageSize) {
|
|
|
|
+ QueryWrapper<Evaluationdatasource> qw = new QueryWrapper<>();
|
|
|
|
+ if (StringUtils.isNotEmpty(type)){
|
|
|
|
+ qw.like("type",type);
|
|
|
|
+ }
|
|
|
|
+ Page<Evaluationdatasource> page = new Page<>(Integer.parseInt(pageNum),Integer.parseInt(pageSize));
|
|
|
|
+ Page<Evaluationdatasource> p3DeviceFaultPage = evaluationdatasourceService.getBaseMapper().selectPage(page, qw);
|
|
|
|
+ List<Evaluationdatasource> list = p3DeviceFaultPage.getRecords();
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Boolean ratingedit(Evaluationdatasource evaluationdatasource) {
|
|
|
|
+ boolean b = evaluationdatasourceService.saveOrUpdate(evaluationdatasource);
|
|
|
|
+ return b;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Boolean ratingremove(Evaluationdatasource evaluationdatasource) {
|
|
|
|
+ boolean b = ip3DeviceFaultService.removeById(evaluationdatasource.getTargetid());
|
|
|
|
+ return b;
|
|
|
|
+ }
|
|
}
|
|
}
|