@@ -383,24 +383,16 @@ public class ReportItemvService {
startTime=dateVO.getLastMonthStartTime();
endTime=dateVO.getLastMonthEndTime();
StringdfValueSql="select sum(cost) cost from report_electric_cost t where t.month >='"+DateUtils.formatDate(startTime,"yyyy-MM")+"' and t.month<='"+DateUtils.formatDate(endTime,"yyyy-MM")+"' ";
dfValueSql+=" and t.depart_id in ("+JSUtils.quoteEach(departId,",")+")";
StringdfTBValueSql="select sum(cost) cost from report_electric_cost t where t.month >='"+DateUtils.formatDate(DateUtils.getTbDate(startTime),"yyyy-MM")+"' and t.month<='"+DateUtils.formatDate(DateUtils.getTbDate(endTime),"yyyy-MM")+"' ";
dfTBValueSql+=" and t.depart_id in ("+JSUtils.quoteEach(departId,",")+")";
StringdfHBValueSql="select sum(cost) cost from report_electric_cost t where t.month >='"+DateUtils.formatDate(DateUtils.getHbDate(startTime),"yyyy-MM")+"' and t.month<='"+DateUtils.formatDate(DateUtils.getHbDate(endTime),"yyyy-MM")+"' ";
dfHBValueSql+=" and t.depart_id in ("+JSUtils.quoteEach(departId,",")+")";