|
@@ -85,10 +85,11 @@ public class StatMeterReadRateByCommunityServiceImpl implements StatMeterReadRat
|
|
|
public void exportRateListByCommunity(CommonQueryCondition condition, HttpServletResponse httpServletResponse) {
|
|
|
log.info("begin StatMeterReadRateByCommunityService exportRateListByCommunity , condition = "+JSON.toJSONString(condition));
|
|
|
// 1,查询数据
|
|
|
+ condition.setStatDay(Integer.parseInt(DateTimeUtil.formatDate(DateTimeUtil.beforeNow(1), "yyyyMMdd")));
|
|
|
List<StatMeterReadRateDto> list = baseQuery(condition);
|
|
|
// 2,定义excel格式&内容
|
|
|
String title = "按小区统计抄表率";
|
|
|
- String[] rowsName = new String[]{"序号", "所属客户","所属小区","水表数量", "应抄数量", "实抄数量", "未抄数量", "抄表率(%)"};
|
|
|
+ String[] rowsName = new String[]{"序号", "客户","小区","应抄水表总数", "抄收成功总数", "抄收成功率(%)"};
|
|
|
List<Object[]> dataList = newArrayList();
|
|
|
Object[] objs = null;
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
@@ -97,12 +98,9 @@ public class StatMeterReadRateByCommunityServiceImpl implements StatMeterReadRat
|
|
|
objs[0] = i;
|
|
|
objs[1] = dto.getCustomerName();
|
|
|
objs[2] = dto.getCommunityName();
|
|
|
- objs[3] = dto.getDeviceCount();
|
|
|
- objs[4] = dto.getReadTimes();
|
|
|
- objs[5] = dto.getRealReadTimes();
|
|
|
- objs[6] = dto.getUnReadTimes();
|
|
|
- objs[7] = dto.getReadRate();
|
|
|
- objs[8] = dto.getLastSevenDayReadRate();
|
|
|
+ objs[3] = dto.getReadTimes();
|
|
|
+ objs[4] = dto.getRealReadTimes();
|
|
|
+ objs[5] = dto.getReadRate();
|
|
|
dataList.add(objs);
|
|
|
}
|
|
|
ExcelUtil excelUtil = new ExcelUtil(title, rowsName, dataList);
|