| | |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RequestMapping("powerInf") |
| | | @RestController |
| | | @Api(tags = "数据管理-电源信息") |
| | |
| | | station.setStationName2(powerInf.getStationName2()); |
| | | station.setStationName3(powerInf.getStationName3()); |
| | | station.setStationName5(powerInf.getStationName5()); |
| | | station.setStationIdTogether(powerInf.getStationIdTogether()); |
| | | stationInfService.insertStation(station); |
| | | //powerInf.setStationId(String.valueOf(battInfService.searchMaxId_zj())); |
| | | powerInf.setStationId(nextStationId); |
| | |
| | | public Response getPwrProducer() { |
| | | return service.getPwrProducer(); |
| | | } |
| | | |
| | | @GetMapping("modelList") |
| | | @ApiOperation(value = "获取所有的型号") |
| | | public Response getModelList() { |
| | | return service.getModelList(); |
| | | } |
| | | |
| | | @PostMapping("getModelListByPwrProducer") |
| | | @ApiOperation(value = "根据品牌查询型号") |
| | | public Response getModelListByPwrProducer(@RequestBody List<String> producer) { |
| | | return service.getModelListByPwrProducer(producer); |
| | | } |
| | | |
| | | } |