From 1d86417a46122271405fe750e309c82d17a862bb Mon Sep 17 00:00:00 2001 From: whycxzp <perryhsu@163.com> Date: 星期二, 20 九月 2022 15:54:19 +0800 Subject: [PATCH] 更新分级评价 --- src/main/java/com/whyc/controller/FileParamController.java | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/whyc/controller/FileParamController.java b/src/main/java/com/whyc/controller/FileParamController.java index bf373f5..e314d28 100644 --- a/src/main/java/com/whyc/controller/FileParamController.java +++ b/src/main/java/com/whyc/controller/FileParamController.java @@ -2,15 +2,13 @@ import com.whyc.dto.ActionUtil; import com.whyc.dto.Response; +import com.whyc.pojo.FileParam; import com.whyc.service.FileParamService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.format.annotation.DateTimeFormat; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.text.ParseException; import java.util.Date; @@ -42,4 +40,18 @@ } return service.getDataByCondition(testTime1,testTime2,battVol); } + + @ApiOperation("鍒嗙骇璇勪环-鏌ヨ绯绘暟/闃堝��") + @GetMapping("factorsAndThreshold") + public Response getFactorsAndThreshold(@RequestParam int fieldId){ + FileParam param = service.getFactorsAndThreshold(fieldId); + return new Response().set(1,param); + } + + @ApiOperation("鍒嗙骇璇勪环-鏇存柊绯绘暟/闃堝��") + @PutMapping("factorsAndThreshold") + public Response updateFactorsAndThreshold(@RequestBody FileParam param){ + service.updateFactorsAndThreshold(param); + return new Response().set(1,"鏇存柊瀹屾垚"); + } } -- Gitblit v1.9.1