| | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.Battinf; |
| | | import com.whyc.pojo.PowerInf; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.service.BattInfService; |
| | | import com.whyc.util.ActionUtil; |
| | |
| | | private BattInfService service; |
| | | |
| | | @GetMapping("/searchAllStationName1") |
| | | @ApiOperation("查询省") |
| | | @ApiOperation(tags = "在线监测-历史数据管理",value="查询省",notes = "原接口:BattInfAction!serchAllStationName1") |
| | | public Response searchAllStationName1(){ |
| | | UserInf userInf = (UserInf) ActionUtil.getUser(); |
| | | return service.searchAllStationName1(userInf.getUId().intValue()); |
| | |
| | | //todo process_survey |
| | | return service.updateIp(battinf); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/findByBattGroupId") |
| | | @ApiOperation(value = "通过电池组id获取电池信息") |
| | | public Response findByBattGroupId(@RequestParam int battGroupId){ |
| | | return service.findByBattGroupId(battGroupId); |
| | | } |
| | | |
| | | |
| | | public Response searchNotInBattMapByUid(){ |
| | |
| | | return service.findBattProducer(userInf.getUId().intValue()); |
| | | } |
| | | |
| | | @GetMapping("/findBattProducerInfoByProducerName") |
| | | @ApiOperation(value = "根据电池品牌查询站点及电池品牌基础信息") |
| | | public Response findBattProducerInfoByProducerName(@RequestParam String battProducer){ |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return service.findBattProducerInfoByProducerName(battProducer,userInf.getUId().intValue()); |
| | | } |
| | | @GetMapping("/findBattProducerInfoByYearCode") |
| | | @ApiOperation(value = "根据电池使用年限查询站点及电池品牌基础信息",notes = "yearCode: ,1:3年以内 ,2:3-5年 ,3:5到7年 ,4:7年以上") |
| | | public Response findBattProducerInfoByYearCode(@RequestParam int yearCode){ |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return service.findBattProducerInfoByYearCode(yearCode,userInf.getUId().intValue()); |
| | | } |
| | | |
| | | @GetMapping("/findBattInfByStationId") |
| | | @ApiOperation("根据机房id获取电池信息") |
| | | public Response findBattInfByStationId(@RequestParam String stationId){ |
| | | return service.findBattInfoByStationId(stationId); |
| | | } |
| | | |
| | | @GetMapping("stationList8059") |
| | | @ApiOperation(tags = "在线监测-一体机导入记录",value = "站点列表") |
| | | public Response<List<Battinf>> getStationList8059(){ |
| | | Long uId = ActionUtil.getUser().getUId(); |
| | | List<Battinf> stationList = service.getStationList8059(uId); |
| | | return new Response<List<Battinf>>().set(1,stationList); |
| | | } |
| | | |
| | | @GetMapping("battInfByStationId") |
| | | @ApiOperation(tags = "在线监测-一体机导入记录",value = "站点下的电池组信息") |
| | | public Response findBattInfByStationId2(@RequestParam String stationId){ |
| | | return service.findBattInfoByStationId(stationId); |
| | | } |
| | | |
| | | @GetMapping("/searchByMonNum") |
| | | @ApiOperation(value = "根据电池组id查询不重复的单体编号") |
| | | public Response searchByMonNum(int battGroupId){ |
| | | return service.searchByMonNum(battGroupId); |
| | | } |
| | | |
| | | } |