|
@@ -506,5 +506,64 @@ public class KnowledgeController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 健康配置
|
|
|
+ * @param wpid
|
|
|
+ * @param pageNum
|
|
|
+ * @param pageSize
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/health")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R health(@RequestParam(value = "wpid",required = true) String wpid,
|
|
|
+ @RequestParam(value = "pageNum",required = true) String pageNum,
|
|
|
+ @RequestParam(value = "pageSize",required = true) String pageSize
|
|
|
+ ) {
|
|
|
+
|
|
|
+ List<Healthconfig> resultlist = knowledgeService.health(wpid,pageNum,pageSize);
|
|
|
+ if (StringUtils.isNotNull(resultlist)) {
|
|
|
+ return R.ok(resultlist.size()).data(resultlist);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 等级评估编辑
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/healthedit")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R healthedit(@RequestBody Healthconfig healthconfig) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.healthedit(healthconfig);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 等级评估删除
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @DeleteMapping("/healthremove")
|
|
|
+ @ResponseBody
|
|
|
+ @CrossOrigin(origins = "*", maxAge = 3600)
|
|
|
+ public R healthremove(@RequestBody Healthconfig healthconfig) {
|
|
|
+
|
|
|
+ Boolean result = knowledgeService.healthremove(healthconfig);
|
|
|
+ if (StringUtils.isNotNull(result)) {
|
|
|
+ return R.ok().data(result);
|
|
|
+ }else{
|
|
|
+ return R.error().message("访问失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|