SimpleDateFormat mat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
log.info("开始时间" + mat.format(bean.getBeginTime()));
log.info("截止时间" + mat.format(bean.getEndTime()));
Calendar calendar = Calendar.getInstance();
calendar.setTime(bean.getEndTime());
//是否该日期最后一天
if(calendar.get(Calendar.DAY_OF_MONTH) == calendar.getActualMaximum(Calendar.DAY_OF_MONTH)) {//下个月第一天
calendar.setTime(bean.getEndTime());
calendar.set(Calendar.DAY_OF_MONTH, 1);
calendar.add(Calendar.MARCH, 1);
log.info("最后一天获取下个月第一天:" + mat.format(calendar.getTime()));
bean.setEndTime(calendar.getTime());
}else {//加一天
calendar.setTime(bean.getEndTime());
calendar.add(calendar.DATE, 1);
Date time = calendar.getTime();
log.info("当前时间加一天:" + mat.format(time));



