| | |
| | | return service.searchmaxId(); |
| | | } |
| | | |
| | | @GetMapping("byCondition") |
| | | @PostMapping("byCondition") |
| | | @ApiOperation(notes = "查capstdolstd/moncount/serstd",value="battgroupid查机房名称和电池组名称") |
| | | public ServiceModelOnce serchByCondition(@RequestBody BattInf bif) { |
| | | public ServiceModelOnce serchByCondition(@RequestParam Integer battGroupId) { |
| | | BattInf bif =new BattInf(); |
| | | bif.setBattGroupId(battGroupId); |
| | | return service.serchByCondition(bif); |
| | | } |
| | | |
| | |
| | | //根据电池id查询电池的基本信息 |
| | | @GetMapping("byBattGroupId") |
| | | @ApiOperation(notes = "",value="电池id查询电池的基本信息") |
| | | public ServiceModel searchBattBybattgroupid(@RequestBody BattInf bif){ |
| | | public ServiceModel searchBattBybattgroupid(@RequestParam Integer battGroupId) { |
| | | BattInf bif = new BattInf(); |
| | | bif.setBattGroupId(battGroupId); |
| | | |
| | | return service.searchBattBybattgroupid(bif); |
| | | } |
| | |
| | | } |
| | | |
| | | //----------根据StationName1(维护区) 查不重复的BattGroupName(蓄电池组) |
| | | @GetMapping("byStationName1") |
| | | @ApiOperation(notes = "",value="StationName1(维护区) 查不重复的BattGroupName(蓄电池组)") |
| | | public ServiceModelOnce serchByStationName1(@RequestBody BattInf bif){ |
| | | @PostMapping("byStationName1") |
| | | @ApiOperation(notes = "stationName1如果无值传String类型的null,底层查询不同",value="StationName1(维护区) 查不重复的BattGroupName(蓄电池组)") |
| | | public ServiceModelOnce serchByStationName1(@ApiParam(value = "维护区",required = false) @RequestParam String stationName1){ |
| | | BattInf bif = new BattInf(); |
| | | // System.out.println("bif ---= " + bif); |
| | | if (stationName1!=null&&!stationName1.equals("null")) { |
| | | bif.setStationName1(stationName1); |
| | | } |
| | | return service.serchByStationName1(bif); |
| | | } |
| | | //----------根据StationName1(维护区) 查不重复的StationName(站点) |
| | | @GetMapping("byStationName") |
| | | @PostMapping("byStationName") |
| | | @ApiOperation(notes = "",value="StationName1(维护区) 查不重复的StationName(站点)") |
| | | public ServiceModelOnce serchByStationName(@RequestBody BattInf bif){ |
| | | public ServiceModelOnce serchByStationName(@RequestParam String stationName1) { |
| | | BattInf bif = new BattInf(); |
| | | bif.setStationName1(stationName1); |
| | | return service.serchByStationName(bif); |
| | | } |
| | | //----------根据StationName1(维护区) 查不重复的StationName(站点)不包含91000000一期设备 |
| | | @GetMapping("byStationNameWithout91") |
| | | @PostMapping("byStationNameWithout91") |
| | | @ApiOperation(notes = "",value="StationName1(维护区) 查不重复的StationName(站点)不包含91000000一期设备") |
| | | public ServiceModelOnce serchByStationNameNot91(@RequestBody BattInf bif){ |
| | | public ServiceModelOnce serchByStationNameNot91(@RequestParam String stationName1) { |
| | | BattInf bif = new BattInf(); |
| | | bif.setStationName1(stationName1); |
| | | return service.serchByStationNameNot91(bif); |
| | | } |
| | | //--查不重复的StationName1(维护区) |
| | |
| | | } |
| | | //-----------查询所有的省份 |
| | | @GetMapping("allStationName1") |
| | | @ApiOperation(notes = "",value="查询所有的省份") |
| | | @ApiOperation(notes = "需要session中的uId",value="查询所有的省份") |
| | | public ServiceModel serchAllStationName1(){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | return service.serchAllStationName1(uinf); |
| | | } |
| | | // ----------查询所有的市 |
| | | @GetMapping("allStationName2") |
| | | @PostMapping("allStationName2") |
| | | @ApiOperation(notes = "",value="查询所有的市") |
| | | public ServiceModel serchAllStationName2(@RequestBody BattInf binf){ |
| | | public ServiceModel serchAllStationName2(@RequestParam String stationName1) { |
| | | BattInf binf = new BattInf(); |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | binf.setNum(uinf.getuId()); |
| | | binf.setStationName1(stationName1); |
| | | return service.serchAllStationName2(binf); |
| | | } |
| | | //--查询所有的区县 |
| | | @GetMapping("allStationName5") |
| | | @PostMapping("allStationName5") |
| | | @ApiOperation(notes = "",value="查询所有的区县") |
| | | public ServiceModel serchAllStationName5(@RequestBody BattInf binf){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | public ServiceModel serchAllStationName5(@ApiParam(value = "省",required = true) @RequestParam String stationName1,@ApiParam(value = "市",required = true) @RequestParam String stationName2) { |
| | | BattInf binf = new BattInf(); |
| | | User_inf uinf = (User_inf) ActionUtil.getUser(); |
| | | binf.setNum(uinf.getuId()); |
| | | binf.setStationName1(stationName1); |
| | | binf.setStationName2(stationName2); |
| | | return service.serchAllStationName5(binf); |
| | | } |
| | | //--查询所有的机房 |
| | | @GetMapping("allStationName") |
| | | @PostMapping("allStationName") |
| | | @ApiOperation(notes = "",value="查询所有的机房") |
| | | public ServiceModel serchAllStationName(@RequestBody BattInf binf){ |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | public ServiceModel serchAllStationName(@ApiParam(value = "省",required = true) @RequestParam String stationName1,@ApiParam(value = "市",required = true) @RequestParam String stationName2,@ApiParam(value = "区",required = true) @RequestParam String stationName5) { |
| | | BattInf binf = new BattInf(); |
| | | User_inf uinf = (User_inf) ActionUtil.getUser(); |
| | | binf.setNum(uinf.getuId()); |
| | | binf.setStationName1(stationName1); |
| | | binf.setStationName2(stationName2); |
| | | binf.setStationName5(stationName5); |
| | | return service.serchAllStationName(binf); |
| | | } |
| | | |
| | | //--查询电池组信息 |
| | | @GetMapping("allBattInf") |
| | | @ApiOperation(notes = "",value="查询电池组信息") |
| | | public ServiceModel serchAllBattinf(@RequestBody BattInf binf){ |
| | | |
| | | @PostMapping("allBattInf") |
| | | @ApiOperation(notes = "参数s1、s2、s5 模糊查询参数",value="查询电池组信息") |
| | | public ServiceModel serchAllBattinf(@ApiParam(value = "省",required = true) @RequestParam String stationName1,@ApiParam(value = "市",required = true) @RequestParam String stationName2,@ApiParam(value = "区",required = true) @RequestParam String stationName5,@ApiParam(value = "机房",required = true) @RequestParam String stationName3) { |
| | | BattInf binf = new BattInf(); |
| | | binf.setStationName1(stationName1); |
| | | binf.setStationName2(stationName2); |
| | | binf.setStationName5(stationName5); |
| | | binf.setStationName3(stationName3); |
| | | return service.serchAllBattinf(binf); |
| | | } |
| | | |
| | | //----------根据StationName(站点) 查不重复的BattGroupName(蓄电池组) |
| | | @GetMapping("byBattGroupName") |
| | | @ApiOperation(notes = "",value="根据StationName(站点) 查不重复的BattGroupName(蓄电池组)") |
| | | public ServiceModelOnce serchByBattGroupName(@RequestBody BattInf bif){ |
| | | |
| | | return service.serchByBattGroupName(bif); |
| | | @PostMapping("byBattGroupName") |
| | | @ApiOperation(notes = "",value="StationName(站点) 查不重复的BattGroupName(蓄电池组)") |
| | | public ServiceModelOnce serchByBattGroupName(@ApiParam(value = "地址",required = true) @RequestParam String stationName,@ApiParam(value = "省",required = true) @RequestParam String stationName1){ |
| | | BattInf binf = new BattInf(); |
| | | binf.setStationName(stationName); |
| | | binf.setStationName1(stationName1); |
| | | return service.serchByBattGroupName(binf); |
| | | } |
| | | //查电池品牌 |
| | | @GetMapping("battProducer") |