|
@@ -47,10 +47,46 @@ public class KnowledgeController {
|
|
|
}else{
|
|
|
return R.error().message("访问失败");
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
+ /**
|
|
|
+ * 故障知识列表编辑
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/faultKnowledgeedit")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R faultKnowledgeedit(@RequestBody P3DeviceFault p3DeviceFault) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.faultKnowledgeedit(p3DeviceFault);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 故障知识列表删除
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @DeleteMapping("/faultKnowledgeremove")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R faultKnowledgeremove(@RequestBody P3DeviceFault p3DeviceFault) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.faultKnowledgeremove(p3DeviceFault);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
* 预警知识
|
|
|
* @param gzjb
|
|
|
* @param bjlx
|
|
@@ -79,6 +115,40 @@ public class KnowledgeController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 预警知识列表编辑
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/earlyKnowledgeedit")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R earlyKnowledgeedit(@RequestBody Alertrule2 alertrule2) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.earlyKnowledgeedit(alertrule2);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 预警知识列表删除
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @DeleteMapping("/earlyKnowledgeremove")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R earlyKnowledgeremove(@RequestBody Alertrule2 alertrule2) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.earlyKnowledgeremove(alertrule2);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 检查修理方案
|
|
|
* @param model
|
|
|
* @param pageNum
|
|
@@ -102,6 +172,40 @@ public class KnowledgeController {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 检查修理方案编辑
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/checkRepairProgrammeedit")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R checkRepairProgrammeedit(@RequestBody Alertrulefailure alertrulefailure) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.checkRepairProgrammeedit(alertrulefailure);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 检查修理方案删除
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @DeleteMapping("/checkRepairProgrammeremove")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R checkRepairProgrammeremove(@RequestBody Alertrulefailure alertrulefailure) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.checkRepairProgrammeremove(alertrulefailure);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 检查修理方案型号list
|
|
@@ -146,6 +250,41 @@ public class KnowledgeController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 特征参数编辑
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/featureParameteredit")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R featureParameteredit(@RequestBody P3DeviceFeatures p3DeviceFeatures) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.featureParameteredit(p3DeviceFeatures);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 特征参数删除
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @DeleteMapping("/featureParameterremove")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R featureParameterremove(@RequestBody P3DeviceFeatures p3DeviceFeatures) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.featureParameterremove(p3DeviceFeatures);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
* 安全措施知识
|
|
|
* @param name
|
|
|
* @param pageNum
|
|
@@ -166,7 +305,39 @@ public class KnowledgeController {
|
|
|
}else{
|
|
|
return R.error().message("访问失败");
|
|
|
}
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 安全措施知识编辑
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/safeMeasureKnowledgeedit")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R safeMeasureKnowledgeedit(@RequestBody Safeprecstard safeprecstard) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.safeMeasureKnowledgeedit(safeprecstard);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 安全措施知识删除
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @DeleteMapping("/safeMeasureKnowledgeremove")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R safeMeasureKnowledgeremove(@RequestBody Safeprecstard safeprecstard) {
|
|
|
|
|
|
+ Boolean result = knowledgeService.safeMeasureKnowledgeremove(safeprecstard);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -191,9 +362,42 @@ public class KnowledgeController {
|
|
|
}else{
|
|
|
return R.error().message("访问失败");
|
|
|
}
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 作业指导知识编辑
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/workGuideKnowledgeedit")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R workGuideKnowledgeedit(@RequestBody Risktype risktype) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.workGuideKnowledgeedit(risktype);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 作业指导知识删除
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @DeleteMapping("/workGuideKnowledgeremove")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R workGuideKnowledgeremove(@RequestBody Risktype risktype) {
|
|
|
|
|
|
+ Boolean result = knowledgeService.workGuideKnowledgeremove(risktype);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
*作业指导知识->安措内容
|
|
|
* @param rsnum
|