|
@@ -118,7 +118,7 @@ public class DeviceErrorHandleServiceImpl implements DeviceErrorHandleService {
|
|
|
WMeterType wMeterType = wMeterTypeMapper.getChannelIdAndLevel(sysId, 2);
|
|
|
if (wMeterType != null) {
|
|
|
String title = "已处理记录";
|
|
|
- String[] rowsName = new String[]{"序号", "告警类型", "水表档案号", "水表电子号", "水表厂商", "所属客户", "所属小区", "所属建筑", "安装地址", "告警时间", "处理人", "处理时间", "处理结果"};
|
|
|
+ String[] rowsName = new String[]{"序号", "告警类型", "设备编号", "水表档案号", "水表电子号", "水表厂商", "客户", "小区", "建筑", "安装地址", "告警时间", "处理人", "处理时间", "处理结果"};
|
|
|
List<Object[]> dataList = newArrayList();
|
|
|
Object[] objs = null;
|
|
|
DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
@@ -127,17 +127,18 @@ public class DeviceErrorHandleServiceImpl implements DeviceErrorHandleService {
|
|
|
objs = new Object[rowsName.length];
|
|
|
objs[0] = i;
|
|
|
objs[1] = deviceErrorHandleDto.getAlarmTypeName();
|
|
|
- objs[2] = deviceErrorHandleDto.getWaterMeterFileNo();
|
|
|
- objs[3] = deviceErrorHandleDto.getWaterMeterNo();
|
|
|
- objs[4] = deviceErrorHandleDto.getManufacturerName();
|
|
|
- objs[5] = deviceErrorHandleDto.getCustomerName();
|
|
|
- objs[6] = deviceErrorHandleDto.getCommunityName();
|
|
|
- objs[7] = deviceErrorHandleDto.getBuildingName();
|
|
|
- objs[8] = deviceErrorHandleDto.getLocation();
|
|
|
- objs[9] = deviceErrorHandleDto.getDateCreate()!=null?deviceErrorHandleDto.getDateCreate().format(df):"";
|
|
|
- objs[10] = deviceErrorHandleDto.getHandleUsername();
|
|
|
- objs[11] = deviceErrorHandleDto.getHandleTime()!=null?deviceErrorHandleDto.getHandleTime().format(df):"";
|
|
|
- objs[12] = deviceErrorHandleDto.getHandleResultName();
|
|
|
+ objs[2] = deviceErrorHandleDto.getDeviceNo();
|
|
|
+ objs[3] = deviceErrorHandleDto.getWaterMeterFileNo();
|
|
|
+ objs[4] = deviceErrorHandleDto.getWaterMeterNo();
|
|
|
+ objs[5] = deviceErrorHandleDto.getManufacturerName();
|
|
|
+ objs[6] = deviceErrorHandleDto.getCustomerName();
|
|
|
+ objs[7] = deviceErrorHandleDto.getCommunityName();
|
|
|
+ objs[8] = deviceErrorHandleDto.getBuildingName();
|
|
|
+ objs[9] = deviceErrorHandleDto.getLocation();
|
|
|
+ objs[10] = deviceErrorHandleDto.getDateCreate()!=null?deviceErrorHandleDto.getDateCreate().format(df):"";
|
|
|
+ objs[11] = deviceErrorHandleDto.getHandleUsername();
|
|
|
+ objs[12] = deviceErrorHandleDto.getHandleTime()!=null?deviceErrorHandleDto.getHandleTime().format(df):"";
|
|
|
+ objs[13] = deviceErrorHandleDto.getHandleResultName();
|
|
|
dataList.add(objs);
|
|
|
}
|
|
|
ExcelUtil excelUtil = new ExcelUtil(title, rowsName, dataList);
|