|
|
@@ -2,6 +2,7 @@ package api.controller.survey;
|
|
2
|
2
|
|
|
3
|
3
|
import api.entity.database.survey.Survey;
|
|
4
|
4
|
import api.service.survey.ISurveyService;
|
|
|
5
|
+import api.util.annotation.Anonymous;
|
|
5
|
6
|
import api.util.helper.DateHelper;
|
|
6
|
7
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
7
|
8
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
@@ -20,6 +21,7 @@ import io.swagger.annotations.ApiOperation;
|
|
20
|
21
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
21
|
22
|
import org.springframework.web.bind.annotation.*;
|
|
22
|
23
|
import java.util.Arrays;
|
|
|
24
|
+import java.util.Map;
|
|
23
|
25
|
|
|
24
|
26
|
@Api(value = "分数范围,高危低危中危等,设置预警标签",tags = "分数范围,高危低危中危等,设置预警标签")
|
|
25
|
27
|
@RestController
|
|
|
@@ -100,17 +102,16 @@ public class ScoreRangeController extends BaseController {
|
|
100
|
102
|
|
|
101
|
103
|
|
|
102
|
104
|
|
|
103
|
|
-// @ApiOperation("编辑")
|
|
104
|
|
-// @Log(title = "编辑q_score_range",businessType = BusinessType.UPDATE)
|
|
105
|
|
-// @PutMapping
|
|
106
|
|
-// public AjaxResult edit(@RequestBody ScoreRange input) {
|
|
107
|
|
-// boolean result = scorerangeService.update(input);
|
|
108
|
|
-// if (result) {
|
|
109
|
|
-// return Success("成功");
|
|
110
|
|
-// } else {
|
|
111
|
|
-// return Error("修改失败");
|
|
112
|
|
-// }
|
|
113
|
|
-// }
|
|
|
105
|
+ @ApiOperation("test")
|
|
|
106
|
+ @Log(title = "test",businessType = BusinessType.UPDATE)
|
|
|
107
|
+ @GetMapping("/test")
|
|
|
108
|
+ @Anonymous
|
|
|
109
|
+ public AjaxResult test( @RequestParam long surveyid,@RequestParam long total) {
|
|
|
110
|
+ Map<String,Object> map = scorerangeService.selectLabelColorBySurveyIdTotalScore(surveyid,total);
|
|
|
111
|
+
|
|
|
112
|
+ return Success("修改失败",map);
|
|
|
113
|
+
|
|
|
114
|
+ }
|
|
114
|
115
|
|
|
115
|
116
|
@ApiOperation("删除")
|
|
116
|
117
|
@Log(title = "删除q_score_range",businessType = BusinessType.DELETE)
|