|  | @@ -125,6 +125,8 @@ public class ResumptionReportController {
 | 
	
		
			
				|  |  |  //            request.setStartTime(beginOfQuarter);
 | 
	
		
			
				|  |  |  //            request.setEndTime(endOfQuarter);
 | 
	
		
			
				|  |  |  //        }
 | 
	
		
			
				|  |  | +        request.setStartTime(DateUtil.beginOfMonth(DateUtils.parseDate(request.getDate().get(0))));
 | 
	
		
			
				|  |  | +        request.setEndTime(DateUtil.endOfMonth(DateUtils.parseDate(request.getDate().get(1))));
 | 
	
		
			
				|  |  |          String dateTitle=getStandbyPowerExportTitle(request);
 | 
	
		
			
				|  |  |          request.setExportDateTitle(dateTitle);
 | 
	
		
			
				|  |  |          resumptionReportService.standbyPowerExport(request, response);
 | 
	
	
		
			
				|  | @@ -134,6 +136,8 @@ public class ResumptionReportController {
 | 
	
		
			
				|  |  |      @RequiresPermissions("core:resumptionReport:list")
 | 
	
		
			
				|  |  |      @GetMapping("/standbyPower")
 | 
	
		
			
				|  |  |      public AjaxResult standbyPower(ResumptionDTO resumptionDTO) throws ExecutionException, InterruptedException, TimeoutException {
 | 
	
		
			
				|  |  | +        resumptionDTO.setStartTime(DateUtil.beginOfMonth(DateUtils.parseDate(resumptionDTO.getDate().get(0))));
 | 
	
		
			
				|  |  | +        resumptionDTO.setEndTime(DateUtil.endOfMonth(DateUtils.parseDate(resumptionDTO.getDate().get(1))));
 | 
	
		
			
				|  |  |          String time=getStandbyPowerExportTitle(resumptionDTO);
 | 
	
		
			
				|  |  |          AjaxResult ajaxResult = AjaxResult.success();
 | 
	
		
			
				|  |  |          List<IntrusionTestReportVO> intrusionTestReportVOList = resumptionReportService.standbyPower(resumptionDTO);
 | 
	
	
		
			
				|  | @@ -146,20 +150,23 @@ public class ResumptionReportController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private String getStandbyPowerExportTitle(ResumptionDTO resumptionDTO)
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | -        if (null == resumptionDTO.getSearchTime()) {
 | 
	
		
			
				|  |  | -            DateTime beginOfQuarter = DateUtil.beginOfQuarter(new java.util.Date());
 | 
	
		
			
				|  |  | -            DateTime endOfQuarter = DateUtil.endOfQuarter(new Date());
 | 
	
		
			
				|  |  | -            resumptionDTO.setStartTime(beginOfQuarter);
 | 
	
		
			
				|  |  | -            resumptionDTO.setEndTime(endOfQuarter);
 | 
	
		
			
				|  |  | -            LocalDate currentDate = LocalDate.now();
 | 
	
		
			
				|  |  | -            int month = currentDate.getMonthValue();
 | 
	
		
			
				|  |  | -            int quarter = (month - 1) / 3 + 1;
 | 
	
		
			
				|  |  | -            return currentDate.getYear() + "年第" + quarter + "季度";
 | 
	
		
			
				|  |  | -        } else {
 | 
	
		
			
				|  |  | -            String[] split = resumptionDTO.getSearchTime().split("-");
 | 
	
		
			
				|  |  | -            Integer month = (Integer.valueOf(split[1]) - 1) / 3 + 1;
 | 
	
		
			
				|  |  | -            return  split[0] + "年第" + month + "季度";
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +//        if (null == resumptionDTO.getSearchTime()) {
 | 
	
		
			
				|  |  | +//            DateTime beginOfQuarter = DateUtil.beginOfQuarter(new java.util.Date());
 | 
	
		
			
				|  |  | +//            DateTime endOfQuarter = DateUtil.endOfQuarter(new Date());
 | 
	
		
			
				|  |  | +//            resumptionDTO.setStartTime(beginOfQuarter);
 | 
	
		
			
				|  |  | +//            resumptionDTO.setEndTime(endOfQuarter);
 | 
	
		
			
				|  |  | +//            LocalDate currentDate = LocalDate.now();
 | 
	
		
			
				|  |  | +//            int month = currentDate.getMonthValue();
 | 
	
		
			
				|  |  | +//            int quarter = (month - 1) / 3 + 1;
 | 
	
		
			
				|  |  | +//            return currentDate.getYear() + "年第" + quarter + "季度";
 | 
	
		
			
				|  |  | +//        } else {
 | 
	
		
			
				|  |  | +//            String[] split = resumptionDTO.getSearchTime().split("-");
 | 
	
		
			
				|  |  | +//            Integer month = (Integer.valueOf(split[1]) - 1) / 3 + 1;
 | 
	
		
			
				|  |  | +//            return  split[0] + "年第" + month + "季度";
 | 
	
		
			
				|  |  | +//        }
 | 
	
		
			
				|  |  | +        String title = DateUtil.year(resumptionDTO.getStartTime()) + "Q" + DateUtil.quarter(resumptionDTO.getStartTime())
 | 
	
		
			
				|  |  | +                + "~" + DateUtil.year(resumptionDTO.getEndTime()) + "Q" + DateUtil.quarter(resumptionDTO.getEndTime()) + ")";
 | 
	
		
			
				|  |  | +        return title;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "离行式自助银行巡检报表导出")
 |