|
@@ -25,6 +25,7 @@ import com.hb.proj.model.EnergyWaterSumVOUtil;
|
|
|
import com.hb.proj.model.Workload;
|
|
|
import com.hb.proj.utils.JsonOutUtils;
|
|
|
import com.hb.proj.utils.MySessionUser;
|
|
|
+import com.hb.proj.utils.RptMonthUtil;
|
|
|
import com.hb.proj.utils.RptOuter;
|
|
|
import com.hb.xframework.util.MapUtils;
|
|
|
import com.hb.xframework.util.SessionThreadLocal;
|
|
@@ -62,10 +63,9 @@ public class EnergyWaterSumController {
|
|
|
|
|
|
if(StringUtils.isEmpty(year)){
|
|
|
year=String.valueOf(ca.get(Calendar.YEAR));
|
|
|
- endMonth=ca.get(Calendar.MONTH)+1; //是当年的话,截至到实际月份
|
|
|
}
|
|
|
- else if(Integer.parseInt(year)==ca.get(Calendar.YEAR)){
|
|
|
- endMonth=ca.get(Calendar.MONTH)+1;
|
|
|
+ else if(Integer.parseInt(year)==ca.get(Calendar.YEAR)){ //等于当前年份,月份就使用足月的月份
|
|
|
+ endMonth=RptMonthUtil.getFullMonthNum(ca);
|
|
|
}
|
|
|
List<Map<String,Object>> mths=new ArrayList<Map<String,Object>>(12);
|
|
|
|