| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @Api(tags = "蓄电池对比分析管理") |
| | | @RequestMapping("compare") |
| | |
| | | |
| | | @ApiOperation(value = "蓄电池组对比分析界面(同一品牌同一时间)(1.2.15)") |
| | | @PostMapping("getBattCompare15Statistic") |
| | | public Response getBattCompare15Statistic(@RequestBody BattCompareStic stic){ |
| | | public Response getBattCompare15Statistic(@RequestBody BattCompareStic stic) throws ParseException { |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | if(stic.getInuserYear()!=null){ |
| | | int year=ActionUtil.getNowYear(); |
| | | stic.setInuseStartTime(ActionUtil.sdfwithday.parse(ActionUtil.getDayTime(year+1-stic.getInuserYear(),0,1,5))); |
| | | stic.setInuseEndTime(ActionUtil.sdfwithday.parse(ActionUtil.getDayTime(year,11,31,5))); |
| | | } |
| | | return battTinfService.getBattCompare15Statistic(stic); |
| | | } |
| | | |