| | |
| | | |
| | | 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; |
| | |
| | | } |
| | | 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,"更新完成"); |
| | | } |
| | | } |