| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.text.ParseException; |
| | |
| | | return service.getListByParam(param); |
| | | } |
| | | |
| | | @GetMapping("getAvgLoadCurr") |
| | | @ApiOperation("获取当前天平均负载电流") |
| | | public Response getAvgLoadCurr(@RequestParam Integer powerId) { |
| | | return service.getAvgLoadCurr(powerId); |
| | | } |
| | | |
| | | } |